Saia-Burgess Controls AG
Manual I/O-modules for PCD1 │ PCD2 series │ Document 27-600 – Release ENG09 │ 2019-05-01
7-11
PCD2.B160 & PCD3.B160
Direct input or output access in IL
7
7.5
Direct input or output access in IL
With IL commands it is possible to do accesses to the module independent of the
media mapping.
7.5.1
Symbol name & description
7.5.1.1 RD_DIGITAL_IO_0TO15
This symbol returns the states of each I/O whatever their configuration.
15:0
RD_DIGITAL_IO_0TO15
I/O
0
I/O
1
I/O
2
I/
O
3
I/O
4
I/O
5
I/O
6
I/O
7
I/O
8
I/O
9
I/O
1
0
I/O
1
1
I/O
1
2
I/O
1
3
I/O
1
4
I/O
1
5
IL example:
RDPW
IO.Slot0.IOAccess.RD_DIGITAL_IO_0TO15
IO_0_15
7.5.1.2 MASK_RD_DIGITALOUTPUT_0TO15
This symbol gives us which I/O are configured in outputs. In case you want have only
the outputs value from the symbol RD_DIGITAL_IO_0TO15, you can do a mask.
15:0
MASK_RD_DIGITAL_OUTPUT_0TO15
M
AS
K
O
0
M
AS
K
O
1
M
AS
K
O
2
M
AS
K
O
3
M
AS
K
O
4
M
AS
K
O
5
M
AS
K
O
6
M
AS
K
O
7
M
AS
K
O
8
M
AS
K
O
9
M
AS
K
O
1
0
M
AS
K
O
1
1
M
AS
K
O
1
2
M
AS
K
O
1
3
M
AS
K
O
1
4
M
AS
K
O
1
5
IL example:
RDPW
IO.Slot0.IOAccess.RD_DIGITAL_IO_0TO15
IO_0_15
LD
MASK
O.Slot0.IOAccess.MASK_RD_DIGITAL_OUTPUT_0TO15
AND
IO_0_15
MASK
OUT_0_15