Vecow ECS-9000 User Manual page 117

Hide thumbs Also See for ECS-9000:
Table of Contents

Advertisement

BYTE Isolate_Type, BYTE DI_NPN, BYTE DO_NPN, WORD Mask
Set DIO configuration
Isolate_Type: DIO type
DI_NPN ([7:0]): DI type, pin setting by hexadecimal bitmask
DO_NPN: DO type
Mask ([15:0]): In / Out, pin setting by hexadecimal bitmask
Return:
TRUE (1): Success;
FALSE (0): Fail (Initial error, or hardware problem)
BOOL GetDI1(BYTE *DI)
Get isolated DIO input (DI)
DI ([7:0]): Input state, pin setting by hexadecimal bitmask
Return:
TRUE (1): Success;
FALSE (0): Fail (Initial error, or call by pointer error, or hardware
problem)
BOOL GetDO1(BYTE *DO)
Get isolated DIO output (DO)
DO ([7:0]): Output state, pin setting by hexadecimal bitmask
Return:
TRUE (1): Success;
FALSE (0): Fail (Initial error, or call by pointer error, or hardware
problem)
BOOL SetDO1(BYTE DO)
Set isolated DIO output (DO)
DO ([7:0]): Output state, pin setting by hexadecimal bitmask
Return:
TRUE (1): Success;
FALSE (0): Fail (Initial error, or hardware problem)
BOOL GetDIO1(WORD *DI)
Get non-isolated DIO input (DIO input)
DI ([15:0]): Input state, pin setting by hexadecimal bitmask
Return:
TRUE (1): Success;
FALSE (0): Fail (Initial error, or call by pointer error, or hardware
©Vecow ECS-9000 User Manual
1: Isolated DIO; 0: Non-Isolated DIO
1: PNP (Source) mode for European rule;
0: NPN (Sink) mode for Japanese rule
1: PNP (Source) mode for European rule;
0: NPN (Sink) mode for Japanese rule
1: Output; 0: Input
1: High; 0: Low
1: High; 0: Low
1: High; 0: Low
1: High; 0: Low
Appendix B
110

Advertisement

Table of Contents
loading

Table of Contents