I_Pa1500_Set8Digitaloutputon - Addi-Data ADDINUM PA 1500 Technical Description

Digital input and output board
Table of Contents

Advertisement

PA 1500
5)

i_PA1500_Set8DigitalOutputOn (...)

Syntax:
<Return value> = i_PA1500_Set8DigitalOutputOn
Parameters:
BYTE
b_BoardHandle
BYTE
b_Port
BYTE
b_Value
Task:
Sets one or several outputs of a port. Setting an output means setting on
high. If you have switched off the digital output memory (OFF), the inputs
are set to "0".
Example:
Switching on the digital output memory (ON)
see function "i_PA1500_SetOutputMemoryOn (...)
b_Port
= 1
b_Value = 55 Hex
The outputs 1, 3, 5, 7 are set. The other outputs hold their state.
Switching off the digital output memory (OFF)
see function "i_PA1500_SetOutputMemoryOff (...)
b_Port
= 1
b_Value = 55 Hex
The outputs 1, 3, 5, 7 are set. The other outputs are reset.
Return value:
0: No error
-1: The handle parameter of the board is wrong
-2: The port number is not 1 or 2
(BYTE b_BoardHandle,
BYTE b_Port,
BYTE b_Value)
Handle of the board PA 1500
Number of the output port (1 or 2)
Output value (0 to 255)
Standard software
67

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