Accessing The Process Image Input Table (Pii) - Siemens SIMATIC S5-95F Manual

Table of Contents

Advertisement

Addressing
6.6.1

Accessing the Process Image Input Table (PII)

During a data cycle, data is read into the process image input table (PII) from input modules.
This data is available to the control program for evaluation in the next program processing cycle.
Access to the PII is expressed by the operand identifiers "I", "IB", or "IW" in a statement in the
control program.
The letter "L" identifies the "Load" operation (see Chapter 8). The letter "A" identifies the "AND
logic" operation (see Chapter 8).
Note
Failsafe external I/Os may be accessed only via even-numbered byte addresses. Word-
by-word accessing of failsafe external I/Os is rejected by the S5-95F with an error
message.
Bit-by-bit reading "I <bit address>"
Example: Reading in the signal state of
channel 2 of a 4-channel digital input module
in slot 2
Byte-by-byte reading "IB <byte address>"
Example: Reading in the signal states of all
channels of an 8-channel digital input module
in slot 12
Word-by-word reading "IW <word address>"
Example: Reading in the analog value of channel
3 of a 4-channel analog input module in slot 4
6-10
A I 2.2
L IB 12
15
ACCU 1
High byte
L IW 102
15
ACCU 1
High byte
Figure 6-6. Accesses to the PII
PII
Bit number
7 6 5 4 3 2 1 0
0
Low byte
0
Low byte
S5-95F
Byte 2
Byte 12
Byte 102
Byte 103
EWA 4NEB 812 6210-02

Advertisement

Table of Contents
loading

Table of Contents