beautypg.com

ADLINK EOS-1200 User Manual

Page 63

background image

Function Library

51

EOS-1200

I16 DO_ReadLine (U16 CardNumber, U16 Port, U16
Line, U16 *State)

Visual Basic

DO_ReadLine (ByVal CardNumber As Integer,
ByVal Port As Integer, ByVal Line As Integer,
State As Integer) As Integer

VB.Net

DO_ReadLine (ByVal CardNumber As Short, ByVal
Port As Short, ByVal Line As Short, ByRef State
As Short) As Short

C#

short DO_ReadLine (ushort CardNumber, U16 ush-
ort, 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, 0 or 1, of the specified line.

Return Code(s)

NoError
ErrorInvalidCardNumber
ErrorCardNotRegistered
ErrorFuncNotSupport
ErrorInvalidIoChannel