Accessing The Interrupt Piq - Siemens S5-100U User Manual

Simatic s5 programmable controller
Hide thumbs Also See for S5-100U:
Table of Contents

Advertisement

Addressing
6.6.2

Accessing the Interrupt PIQ

When accessing the interrupt PIQ, the following rules apply.
Data can be written to the interrupt PIQ only within time-controlled or interrupt-driven program
processing.
Data from a time-controlled or interrupt-driven program to external outputs is written during time-
controlled or interrupt-driven 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.
Note
The interrupt output data cycle is executed only after the interrupt PIQ has been written
to.
Access to the interrupt PIQ is expressed by the "PB" or "PW" operand identifiers in a statement in
the time-controlled or interrrupt-driven program.
The letter "T" identifies the "Transfer" operation (see chapter 8).
Byte-by-byte writing
"PB <byte address>"
Example: Writing signal states to all
channels of an 8-channel digital output
module in slot 13
ACCU 1
Word-by-word writing
"PW <word address>"
Example: Writing an analog value to channel 3
of a 4-channel analog output module in slot 5
ACCU 1
*
depending on the programmer you have
6-14
T PB/PY
13
*
15
High byte
T PW 110
15
High byte
Figure 6-11. Accesses to the Interrupt PIQ
Interrupt PIQ
0
Low byte
0
Low byte
S5-100U
Byte 13
Byte 110
Byte 111
EWA 4NEB 812 6120-02

Advertisement

Table of Contents
loading

Table of Contents