Function
Sets or gets direction settings for dual direction devices.
Variable type
[ C#: short ] [ VB.NET: Short ]
Initial value
0
Setting value
The values that can be set depend on the device.
For 32DM series
Values |
Description |
1 |
32-bit input |
2 |
32-bit output |
3 |
16-bit input and 16-bit output |
For DIO-24DY-USB
Bit No. |
Description |
D2 |
Determine the input/output direction of Port2. (0: Input, 1: Output) |
D1 |
Determine the input/output direction of Port1. (0: Input, 1: Output) |
D0 |
Determine the input/output direction of Port0. (0: Input, 1: Output) |
Setting Example
・Port0: Output, Port1: Input, Port2: Input
Setting value: 1
・Port0: Input, Port1: Output, Port2: Input
Setting value: 2
・Port0 to 3: Output
Setting value: 7
For AIO-121602LN-USB, AIO-120802LN-USB
Bit No. |
Description |
D1 |
Determine the input/output direction of Port1. (0: Input, 1: Output) |
D0 |
Determine the input/output direction of Port0. (0: Input, 1: Output) |
Setting Example
・Port0: Output, Port1: Input
Setting value: 1
・Port0: Input, Port1: Output
Setting value: 2
・Port0 to 1: Output
Setting value: 3
Remarks
Sets or gets the digital I/O direction.
DncDaq task settings and device property changes are reflected during DncDaq Init.