■
Data structure:
CR2011 InOutStruct
■
Purpose:
The current I/O data of the module
are read or written.
The data structure is assigned to the
function input "IO_DATA" via the ADR
operator.
■
Structure components
OUTPUT MODULE
CR2011
PAGE
42
TYPE CR2011 InOutStruct
STRUCT
BinOut1: BOOL;
BinOut2: BOOL;
BinOut3: BOOL;
BinOut4: BOOL;
BinOut5: BOOL;
BinOut6: BOOL;
BinOut7: BOOL;
BinOut8: BOOL;
AnaOut1_2: INT;
AnaOut3_4: INT;
AnaOut5_6: INT;
AnaOut7_8: INT;
AnaIn1_2: INT;
AnaIn3_4: INT;
AnaIn5_6: INT;
AnaIn7_8: INT;
END_STRUCT
END_TYPE
Name
Data type
Description
BinOut1
BOOL
output status
channel 1
(if Ch1_2 configuration = 2)
BinOut2
BOOL
channel 2
"
BinOut3
BOOL
output status
channel 3
(if Ch3_4 configuration = 2)
BinOut4
BOOL
channel 4
"
BinOut5
BOOL
output status
channel 5
(if Ch5_6 configuration = 2)
BinOut6
BOOL
channel 6
"
BinOut7
BOOL
output status
channel 7
(if Ch7_8 configuration = 2)
BinOut8
BOOL
channel 8
"
AnaOut1_2
INT
analog output value
(if Ch1_2 config. = 4 or 5)
channel 1 or 2
AnaOut3_4
INT
analog output value
(if Ch3_4 config. = 4 or 5)
channel 3 or 4
AnaOut5_6
INT
analog output value
(if Ch5_6 config. = 4 or 5)
channel 5 or 6
AnaOut7_8
INT
analog output value
(if Ch7_8 config. = 4 or 5)
channel 7 or 8
Note:
The odd-numbered channels 1, 3, 5, 7 are active if the variable
contains a positive value.
The even-numbered channels 2, 4, 6, 8 are active if the variable
contains a negative value.
AnaIn1_2
INT
actual current value [mA], channel 1 or 2
AnaIn3_4
INT
actual current value [mA], channel 3 or 4
AnaIn5_6
INT
actual current value [mA], channel 5 or 6
AnaIn7_8
INT
actual current value [mA], channel 7 or 8
Note:
The actual current value can only be read if connection is made via
the outputs with current monitoring. (see also page 27,
Electrical connection).