Accessing The Interrupt Piq - Siemens SIMATIC S5-95F Manual

Table of Contents

Advertisement

Addressing
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).
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
L PY 21
15
ACCU 1
High byte
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
L PW 76
15
ACCU 1
High 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
0
Low byte
0
Low byte
Figure 6-9. Accesses to the Interrupt PII
Interrupt PII
Byte 21
Byte 76
Byte 77
S5-95F
EWA 4NEB 812 6210-02

Advertisement

Table of Contents
loading

Table of Contents