
Programmable Serial-to-Ethernet Device Server
PDS Series User Manual, Version 2.5, Mar. 2019
-
143 -
7.3.5
DCON_Write_DO_Bit()
This function sends one bit of digital output data to the PDS series module.
Syntax:
DCON_Write_DO_Bit
(unsigned char
cComPort
, short
iAddress
, short
iSlot
, short
iChannel
,
short
iDO_TotalCh
, short
iBitValue
, short
iCheckSum
, short
iTimeOut
);
Parameters:
cComPort
COM Port number 1 to 255
iAddress
Module address
1
for the PDS series module
iSlot
–1
for the PDS series module
iChannel
The digital output channel No.
iDO_TotalCh
Total DO channel count on the PDS series module
lBitValue
1
bit of digital output data
0:
OFF
1:
ON
iCheckSum
0:
disabled
1:
enabled
iTimeout
Timeout setting
Default = 100 (Unit: ms)
Returns:
0
No error
Others
Error codes