Addressing
S5-95F
Time-Controlled Program Processing
Access to the interrupt PII is expressed by the "PB" or "PW" operand identifiers in a statement in a
time-controlled program.
The letter "L" represents the "Load" operation (see Chapter 8).
Figure 6-9. Accesses to the Interrupt PII
L PW 76
Interrupt PII
•
Byte-by-byte reading "PB <byte address>"
Example: Reading in the signal states of all
channels of an 8-channel digital input module
in slot 21
•
Word-by-word reading "PW <word
address>"
Example: Reading in the analog value of
channel 2 of a 4-channel analog input module
in slot 1
Byte 21
Byte 76
Byte 77
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
a a a a
High byte
0
15
L PY 21
a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a
ACCU 1
Low byte
0
15
ACCU 1
High byte
Low byte
6.7.2
Accessing the Interrupt PIQ
•
Data can be written to the interrupt PIQ only within time-controlled program processing. Use the
transfer operations T PY/T PW.
•
Data from a time-controlled program to external outputs is written during time-controlled program
processing both to the "normal" PIQ and the interrupt PIQ.
•
Data from the interrupt PIQ is read out to the outputs in the next interrupt output data cycle.
•
The PIQ is copied to the interrupt PIQ after the OB1 program cycle (interrupt PIQ is
overwritten).
Note
The interrupt output data cycle is executed only after the interrupt PIQ has been written
to.
6-14
EWA 4NEB 812 6210-02