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

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:
  • Logical '1': pin used as output
  • Logical '0': pin used as input
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).
  • When a port is configured as input:
    • '0': Port is configured as tri-state
    • '1': port is pulled up at 5V
  • When a port is configured as output:
    • '0': 0V
    • '1': 5V (default state, corresponds to the initial state of the output port)
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