94
©Vecow ECS-9200/9100 GTX950 User Manual
Appendix B
B
APPENDIX B : Software Functions
B.1 ECS9K2.Dll API
In Runtime folder, on ECS9K2.h:
BOOL Initial(BYTE Isolate_Type, BYTE DIO_NPN);
Install driver and initial machine for DIO access
Isolate_Type: DIO Isolate Type
1: Isolated DIO; 0: Non-Isolated DIO
DIO_NPN: DIO NPN mode
1: PNP (Source) mode for European rule; 0: NPN (Sink) mode for Japanese
rule
Return:
TRUE (1): Success; FALSE (0): Fail (Install error (privilege error, or driver not
work), or Initial error, or Parameter format error)
BOOL GetDI1(BYTE *DI);
Get DIO1 input
DI: DIO1 input (DI[7:0])
Return:
TRUE (1): Success; FALSE (0): Fail (driver not work, or hardware problem)
BOOL SetDO1(BYTE DO);
Set DIO1 output
DO: DIO1 output (DO[7:0])
Return:
TRUE (1): Success; FALSE (0): Fail (driver not work, or hardware problem)
BOOL GetDO1(BYTE *DO);
Get DIO1 output
DO: DIO1 output (DO[7:0])
Return:
TRUE (1): Success; FALSE (0): Fail (driver not work, or hardware problem)
BOOL GetDI2(BYTE *DI);
Get DIO2 input
DI: DIO2 input (DI[7:0])
Return:
TRUE (1): Success; FALSE (0): Fail (driver not work, or hardware problem)