
Programmable Serial-to-Ethernet Device Server
PDS Series User Manual, Version 2.5, Mar. 2019
-
144 -
7.3.6
DCON_Read_DIO()
This function reads the DO and DI lines status.
Syntax:
DCON_Read_DIO
(unsigned char
cComPort
, short
iAddress
, short
iSlot
, short
iDI_TotalCh
,
short
iDO_TotalCh
, short
iCheckSum
, short
iTimeOut
, unsigned long
*lDI_Value
, unsigned long
*lDO_Value
, char
*cDI_BitValue
, char
*cDO_BitValue
);
Parameters:
cComPort
COM Port number 1 to 255
iAddress
Module address
1
for the PDS series module
iSlot
–1
for the PDS series module
iDI_TotalCh
Total DI channel count on the PDS series module
iDO_TotalCh
Total DO channel count on the PDS series module
iCheckSum
0:
disabled
1:
enabled
iTimeout
Timeout setting
Default = 100 (Unit: ms)
iDI_Value
Read digital input data
iDO_Value
Read digital output data
cDI_BitValue
Read digital input data, Boolean array format
cDO_BitValue
Read digital output data, Boolean array format
Returns:
0
No error
Others
Error codes