
96
APROTECH GmbH
Rathsbergstrasse 17
90411 Nuremberg / Germany
Trade register:
Nuremberg HRB 23727
USt.-Id-No.: DE 256 058 089
D-U-N-S: 31-260-0530
phone: +49 911 / 65 00 79-50
fax:
+49 911 / 65 00 79-79
eMail: [email protected]
Web: www.aprotech.de
Managing Director:
Peter Jung
Industrial Panel- and Box-PCs
Syntax
BOOL InitDIO(void);
Description
Initialize the DIO function. You should always invoke InitDIO()
before write/read any DIO port/channel.
Parameter
None
Return Value
TRUE:
Successfully initialized
FALSE:
Failed to initialize
Usage
BOOL bRet = InitWDT()
Syntax
BOOL DIReadLine(BYTE ch);
Description
Read a single channel of isolated digital input.
Parameter
ch
BYTE value specifies the DI channel to be read.
ch
should be a value of 0 ~ 3.
Return Value
The status (TRUE or FALSE) of the specified DI channel.
Usage
BYTE ch=3; //DI channel #3
BOOL DIChValue = DIReadLine(ch); //read DI channel #3
Syntax
WORD DIReadPort(void);
Description
Read the entire isolated digital input port (4 channels).
Parameter
None
Return Value
The status (TRUE or FALSE) of the specified DI channel.
Usage
WORD DIPortValue = DIReadPort ();