FillDirection Method (DioBlock)

Applies To

GC5050, GX5050, GX5055, GX5290

Purpose

Sets the direction for the specified number of steps and channels.

Syntax

Object.FillDirection ([enDioDirection], [vFirstStep], [dwSteps], [vFirstChannel], [vLastChannel])

The FillDirection method syntax has the following parts:

Name

Type

Description

Object

DioBlock

DioBlock object

enDioDirection

enumDioDirection

Optional - Integer specifying the DIO direction value. Default is dioDirectionInput.

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.

Where

enumDioDirection can be one of the following:

Name

Value

Description

dioDirectionInput

0

Input

dioDirectionOutput

1

Output.

 

See Also

FileFirstStep