GX5150
Set the output state for a range of specified number of steps and channels.
Object.FillOutputEnable ([enDioOutputState], [vFirstStep], [dwSteps], [vFirstChannel], [vLastChannel])
The FillOutputEnable method syntax has the following parts:
Name |
Type |
Description |
Object |
DioBlock |
DioBlock object |
enDioOutputState |
enumDioOutputState |
Optional – Integer specifying the out put state. Default is dioOutputEnable. |
vFirstStep |
Variant |
Optional - Starting step number in the block. Step number specified by either the step label or the step number. Default is the first step. |
dwSteps |
DWORD |
Optional - Number of steps. Default is all steps |
vFirstChannel |
Variant |
Optional - First channel number in the block. Channel number specified by either channel label or the channel number. Default is the first channel. |
vLastChannel |
Variant |
Optional - Last channel number in the block. Channel number specified by either channel label or the channel number. Default is the last channel. |
Channels are arranged in-group of eight as follow:
● Channels 0-7 are group 0.
● Channels 8-15 are group 1.
● Channels 16-23 are group 2.
● Channels 24-31 are group 3.
Disable/Enable any channel in any group will affect all the channels in that group. E.g. enabling the outputs of channels 0-10 will enable channels 0-15.
All the board direction needs to be set to Output prior calling this function.