
INPUT
/
OUTPUT MODULE
CR2513
PAGE
46
■
Structure components (ConfigStruct; continued)
■
Data structure:
CR2513 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
TYPE CR2513 InOutStruct
STRUCT
BinOut1: BOOL;
BinOut2: BOOL;
BinOut3: BOOL;
BinOut4: BOOL;
AnaOut1: INT;
AnaOut2: INT;
AnaOut3: INT;
AnaOut4: INT;
BinIn1: BOOL;
BinIn2: BOOL;
BinIn3: BOOL;
BinIn4: BOOL;
AnaIn1: INT;
AnaIn2: INT;
AnaIn3: INT;
AnaIn4: INT;
END_STRUCT
END_TYPE
Name
Data type
Description
BinOut1
BOOL
binary output status, channel 1
(if configuration = 2)
0 = output status „FALSE“
1 = output status „TRUE“
BinOut2
BOOL
binary output status, channel 2
(if configuration = 2)
0 = output status „FALSE“
1 = output status „TRUE“
BinOut3
BOOL
binary output status, channel 3
(if configuration = 2)
0 = output status „FALSE“
1 = output status „TRUE“
BinOut4
BOOL
binary output status, channel 4
(if configuration = 2)
0 = output status „FALSE“
1 = output status „TRUE“
Name
Data type
Description
Output
BYTE
0b 0000 000
1
Monitoring of the outputs generally ON/OFF
monitoring
(all "IN/OUT" has top priority)
0b 000
1
000
1
monitoring channel 1
= 0x10 + 0x01
0b 00
1
0 000
1
monitoring channel 2
= 0x20 + 0x01
0b 0
1
00 000
1
monitoring channel 3
= 0x40 + 0x01
0b
1
000 000
1
monitoring channel 4
= 0x80 + 0x01
examples:
0b
1111
0000
all channels OFF
= 0xF0 + 0x00
0b
1111
000
1
all channels ON
= 0xF0 + 0x01
0 = OFF; short circuit, overload, output open (no load), undervoltage,
overvoltage or too high a temperature is not indicated by EMCY.
1 = ON; if one of the above-mentioned errors occurs on an output
the respective EMCY object is transferred.