I_Pa1508_Set8Digitaloutputoff - Addi-Data PA 1508 Technical Description

Digital i/o board, optically isolated
Table of Contents

Advertisement

Chapter 9
Exception:
When the output memory is active, (function i_PA1508_SetOutputMemoryON),
the binary code changes.
"1": Sets the outputs to 0 V ext.
"0": The switching position of the outputs does not change
Example:
b_Port = 1
b_Value = 245 (= F5 Hex)
Output number
Binary value / State
Hex value
The outputs 1, 3, 5, 6, 7, 8 are set to 0 V ext.
The outputs 2 and 4 are separated from 0 V ext.
Return value:
0: No error
-1: The handle parameter of the board is wrong

6) i_PA1508_Set8DigitalOutputOff (...)

Syntax:
<Return value> = i_PA1508_Set8DigitalOutputOff
Parameters:
BYTE
BYTE
Task:
Sets all outputs to the switching position coded in the parameter "b_value"
"1": Separates the outputs from 0 V ext.
"0": The switching position of the outputs does not change
Example:
b_Port = 1
b_Value = 245 (= F5 Hex)
Output number
Binary value / State
Hex value
The outputs 1, 3, 5, 6, 7, 8 are set to 0 V ext.
The switching position of the outputs 2 and 4 does not change.
IMPORTANT!
You can use this function only if the digital output memory is
ON. See function i_PA1508_SetOutputMemoryOn (..).
Return value:
1
1
b_BoardHandle
b_Value
1
1
2
3
4
5
0
1
0
1
5
(BYTE b_BoardHandle,
BYTE b_Value)
Handle of the PA 1508
Output value (0 to 255)
2
3
4
5
0
1
0
1
5
PA 1508
6
7
8
1
1
1
F
6
7
8
1
1
1
F
37

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents