User Manual

Logical I/O blocks
Addressing the I/O blocks
19
268 | 351 CM110664en_07
The multistate value from the program is converted in the Multistate Output block into a switching
command. Addressing is via [IOAddr]. For PX modular, the syntax is as follows:
Syntax: T=Module.channel
Examples:
Q-M1: T=1.1
Q-M2: T=1.1
Q-M3: T=1.1
Q-M4: T=1.1
Q250-P3: T=10.1
DOS: T=24.7
Values with up to four stages can be processed. The signals to be registered, which are addressed via
Module.Channel, must always be of the same hardware signal type. In the case of a multistate output on
the hardware side, there is one address only (this is only possible with PXC modular automation stations).
Error handling
If an automation station does not support a given address (e.g., incorrect syntax) or a given I/O system, this
will lead to a reliability error, which will be displayed at the [Rlb] pin.
Advanced mapping (Multistate Input)
The manual switch can be encoded on the PX Compact in various ways, e.g.:
(Auto/Off/On) or (Off/Auto/On)
(Auto/Off/S1/S2) or (Off/Auto/S1/S2)
So avoid having to keep adapting the data types and text groups in the system, the manual switch must
always be represented in the same way within the system:
(Auto/Off/On)
(Auto/Off/S1/S2)
A prerequisite for this approach is that it must be possible in the multistate input block to configure the
hardware coding and mapping to the standardized manual switch. This is made possible with parameters in
the address.
1_n-Mapping (Multistate Input and Output)
Syntax:
T = Module.channel
C=Module.channel;Module.channel;Module.channel;Module.channel (signal type, a,b,c,d,e)
a represents [PrVal] for HW-I/O (0,0,0,0)
b represents [PrVal] for HW-I/O (1,0,0,0)
c represents [PrVal] for HW-I/O (0,1,0,0)
d represents [PrVal] for HW-I/O (0,0,1,0)
e represents [PrVal] for HW-I/O (0,0,0,1)
Example: T=2.1
For the TX I/O addressing no additional information in the address string is added. All information (signal
type, mapping table, mapping rules, e.g., up-down, etc.) is configured in the I/O Address Editor and loaded
in the automation station with the IOC file.
Example: C=2.1;2.2;2.3;2.4 (D20,
2
,
1
,
3
,
4
,
5
)
[PrVal] Addr1 Addr2 Addr3 Addr4 Comment / Text
group
2
0 0 0 0 Off
1 1
0 0 0 Auto
3
0
1
0 0 Stage 1
4
0 0
1
0 Stage 2
5
0 0 0
1
Stage 3
Example: C=2.1;2.2;2.3;2.4 (D20,
2
,
1
,
5
,
7
,
9
) ;-- with holes