Appendix B : Software Functions - Vecow ECS-9210 User Manual

Fanless embedded system ecs-9200 series; ecs-9100 series
Table of Contents

Advertisement

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)
Appendix B
101

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ecs-9210mEcs-9201Ecs-9201mEcs-9101Ecs-9110

Table of Contents