If you put an analogue card in the process output image, e.g. PQW1, then won't it get overwritten with OW1 at the end of the scan ?
Aha, the question is:
"what is the difference between the
normal i/o (I and Q) and the
periferial i/o (PI and PQ) ?".
The normal i/o (I and Q) is a memory area in the CPU, just like the merkers. But the CPU automatically fills the I area with the status of the digital inputs, and it automatically reads the status of Q area and updates the outputs accordingly.
But (here it comes) this will only happen up to a certain limit of the size of the I and Q area. On a S7-315 the automatic updating of the I and Q area ends at I127.7 and Q127.7. The limits differ from CPU type to CPU type.
The periferial i/o (PI and PQ) is updated immediately by the CPU when it encunters an instruction that uses PI or PQ. This obviously puts a penalty on the scantime.
The advantage is that addresses outside the limited
normal I and Q area can be accessed.
A secondary advantage is that if faster input and output updating is required, then accesses to i/o can be done in the middle of the program scan (rarely used, but probably extremely valuable to some).
It is possible to assign the PI and PQ addresses atomatically to the I and Q addresses. This is done in the hardware configuration of each i/o card by assigning a
Proces Image to the addresses.
In the S7-300 this happens automatically if the PI and PQ addresses lie within the limits for the I and Q area. You cannot select or deselect it, it happens automatically.
(This answers the original question above - Yes, PQW1 will be overwritten by QW1).
In the S7-400 it is possible to manually specify the Proces Image.
And what is the use of this assigning of PI and PQ to the Proces Image of I and Q ?
This also pussles me. The comfort of not using PI and PQ ?
For analog i/o, nobody (or almost nobody) uses the direct unscaled values. It is common to use a scaling function (like FC105 and FC106) once per scan, and use PIW and PQW with these scaling functions. In the main program the scaled values are used.
If you choose system selection in the hardware configuration of the analog cards, then notice that it automatically suggests values outside the I and Q area (and thus no Proces Image is assigned).