I_Pa1500_Read16Digitalinput - Addi-Data ADDINUM PA 1500 Technical Description

Digital input and output board
Table of Contents

Advertisement

PA 1500
Example:
b_Port = 1
pb_PortValue = 55 Hex
A voltage is present on the inputs 1, 3, 5, 7
A voltage is not present on the inputs 2, 4, 6, 8.
Return value:
0: No error
-1: Handle parameter of the board is wrong
-2: The parametered port number is wrong (parameter 1 or 2)
3)

i_PA1500_Read16DigitalInput (...)

Syntax:
<Return value> = i_PA1500_Read16DigitalInput
Parameters:
BYTE
b_BoardHandle
PLONG
pl_InputValue
Task:
Indicates the state of both ports. Reads the 16 inputs at once.
Example:
pl_InputValue = 5555 Hex
A voltage is present on the inputs 1, 3, 5, 7, 9, 11, 13, 15 .
A voltage is not present on the inputs 2, 4, 6, 8, 10, 12, 14, 16.
Return value:
0: No error
-1: The handle parameter of the board is wrong
(BYTE b_BoardHandle,
PLONG_ pl_InputValue)
Handle of the PA 1500
State of the digital inputs of both ports
(0 to 65535)
Standard software
61

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ADDINUM PA 1500 and is the answer not in the manual?

Questions and answers

Table of Contents