A.1.2 di_readport, A.1.2, Di_readport – ADLINK EOS-1200 User Manual
Page 61
Advertising
![background image](/manuals/733457/61/background.png)
Function Library
49
EOS-1200
DI_ReadLine (ByVal CardNumber As Short, ByVal
Port As Short, ByVal Line As Short, ByRef State
As Short) As Short
C#
short DI_ReadLine (ushort CardNumber, ushort
Port, ushort Line, out ushort State)
Parameter(s)
CardNumber
ID of the card for release.
Port
Digital input port number. Valid values: PCMe-1432 0, 1
Line
Digital line to be read. Valid values:PCMe-1432 0 to 15 (for
port 0 and port 1)
State
Returns the digital logic state of the specified line to 0 or 1
Return Code(s)
NoError
ErrorInvalidCardNumber
ErrorCardNotRegistered
ErrorFuncNotSupport
ErrorInvalidIoChannel
A.1.2
DI_ReadPort
Description
Reads the digital data from the specified digital input port.
Syntax
C/C++
I16 DI_ReadPort (U16 CardNumber, U16 Port, U32
*Value)
Advertising