Applies To
GC5050, GX5050, GX5055, GX5150, GX5280, GX5290
Purpose
Set or return the output pins state.
Syntax
Object.OutputState [ = enDioOutputState]
Or
[enOutputState = ] Object.OutputState
The OutputState method syntax has the following parts:
Name |
Type |
Description |
Object |
DioFileBoard |
DioFileBoard object |
enDioOutputState |
enumDioOutputState |
Integer specifying the output pins state. Default is dioOutputEnable. |
Where
enumDioIoInterface can be one of the following:
Name |
Value |
Description |
dioOutputEnable |
0 |
Outputs retain last value on HALT. |
dioOutputDisabledOnHalt |
1 |
Outputs are set to Tri-state only when the board is in HALT. |
dioOutputDisable |
2 |
Outputs will be set to Tri-state. |
dioOutputZero |
3 |
Outputs are set to zero. |
Example
The following disable the outputs:
diofileboard.OutputState = dioOutputDisable