FF_Digital_IO Function
Acquires the digital I/O status.
Format
FF_Digital_IO Setting value 1, Setting value 2
Parameter
- Setting value 1: Specifies digital input or digital output.
- FC_DIOOUTPUT: Acquires the digital output.
- FC_DIOINPUT: Acquires the digital input.
- Setting value 2: Specifies I/O number.
- A: Acquires all the inputs and outputs.
- 0 to 5: Acquires the specified digital output.
- 0 to 15: Acquires the specified digital input.
Returned value
- 0: Disabled
- 1: Enabled
Example of use
Acquire the status of all digital outputs.
The returned third element "1" indicates that only output 3 is enabled.
> FF_Digital_IO FC_DIOOUTPUT, A
0, 0, 1, 0, 0
Acquires the digital input 2 status.
The returned value "1" indicates that it is enabled.
> FF_Digital_IO FC_DIOINPUT, 2
1