EasyManua.ls Logo

Siemens S5-100U - Page 261

Siemens S5-100U
512 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
S5-100U Interrupt Processing
Reading Out the Interrupt PII
If a process interrupt occurs, only the signal states of the interrupt inputs in slots 0 and 1 are read
out to the interrupt PII.
This data in the interrupt PII is the only data provided to the interrupt-driven program for evaluation.
The interrupt PII can be scanned in OB2 by means of the following load operations:
Overview:
Operation Operand Description
L PY0 Load byte 0 of the interrupt PII into ACCU 1
L PY1 Load byte 1 of the interrupt PII into ACCU 1
L PW0 Load word 0 of the interrupt PII into ACCU 1
If you enter other parameters, the CPU goes into the STOP mode and enters the “NNN” error
message in the ISTACK (see section 5.2). When data is read into the interrupt PII, the normal PII is
not written to simultaneously.
Writing to the Interrupt PIQ
Data from time-controlled or interrupt-driven programs to I/O modules are written to the interrupt PIQ
and simultaneously to the “normal” PIQ.
After OB2 is finished, the data that has been transferred to the interrupt PIQ is output to the
peripheral I/Os in an interrupt output data cycle (before “normal” program processing).
After the OB1 program cycle, the PIQ is copied to the interrupt PIQ.
The interrupt output data cycle is executed only if the interrupt PIQ has been written to. Use
transfer statements to write data for I/O modules to the interrupt PIQ. When data is written to the
interrupt PIQ, data is written simultaneously to the normal PIQ.
Overview:
Operation Operand Description
T PY0 to 127 Transfer contents of ACCU 1 into the interrupt PIQ
T PW0 to 126 Transfer contents of ACCU 1 into the interrupt PIQ
EWA 4NEB 812 6120-02
10-3

Table of Contents

Related product manuals