Sys.ConfigPort
Configures generic I/O ports for input/output.
Some ports are unidirectional (only usable either as an input or as an output). Only bidirectional ports can be reconfigured via this command.
I/O Port configuration can also be performed via scripts in the configuration editor. See the BaltechScript documentation for further details.
Properties
- Command code: 0x000E
- Command timeout: 100 ms
- Possible status codes: General status codes
Parameters (request frame)
| Name | Type/Size | Description | |
|---|---|---|---|
| InpOutp | Bit mask (16 bits) |
Bit mask describing if I/O pins should be
configured for input or output use:
|
|
| Gpio7 | Boolean (bit 0x8000) | - | |
| Gpio6 | Boolean (bit 0x4000) | - | |
| Gpio5 | Boolean (bit 0x2000) | - | |
| Gpio4 | Boolean (bit 0x1000) | - | |
| Gpio3 | Boolean (bit 0x0800) | - | |
| Gpio2 | Boolean (bit 0x0400) | - | |
| Gpio1 | Boolean (bit 0x0200) | - | |
| Gpio0 | Boolean (bit 0x0100) | - | |
| TamperAlarm | Boolean (bit 0x0080) | - | |
| BlueLed | Boolean (bit 0x0040) | - | |
| Input1 | Boolean (bit 0x0020) | - | |
| Input0 | Boolean (bit 0x0010) | - | |
| Relay | Boolean (bit 0x0008) | - | |
| Beeper | Boolean (bit 0x0004) | - | |
| RedLed | Boolean (bit 0x0002) | - | |
| GreenLed | Boolean (bit 0x0001) | - | |
| DefaultState | Bit mask (16 bits) |
Bit mask describing the initial state of I/O pins.
The specified values have to be interpreted in
combination with the I/O pins' direction (according
to the InpOutp variable).
|
|
| Gpio7 | Boolean (bit 0x8000) | - | |
| Gpio6 | Boolean (bit 0x4000) | - | |
| Gpio5 | Boolean (bit 0x2000) | - | |
| Gpio4 | Boolean (bit 0x1000) | - | |
| Gpio3 | Boolean (bit 0x0800) | - | |
| Gpio2 | Boolean (bit 0x0400) | - | |
| Gpio1 | Boolean (bit 0x0200) | - | |
| Gpio0 | Boolean (bit 0x0100) | - | |
| TamperAlarm | Boolean (bit 0x0080) | - | |
| BlueLed | Boolean (bit 0x0040) | - | |
| Input1 | Boolean (bit 0x0020) | - | |
| Input0 | Boolean (bit 0x0010) | - | |
| Relay | Boolean (bit 0x0008) | - | |
| Beeper | Boolean (bit 0x0004) | - | |
| RedLed | Boolean (bit 0x0002) | - | |
| GreenLed | Boolean (bit 0x0001) | - | |
Returned values (response frame)
None