Panasonic FP Series Programming Manual page 498

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

In this example, the same POU header is used for all programming languages. For an example
Example 1
using IL (instruction list), please refer to the online help.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
When the variable start is set to TRUE, the function is carried out. The data in the lower addresses
is compressed toward the higher addresses, and the value defined at the highest address, i.e. 10,
is shifted out.
LD
In combination with the F99_ CMPW/ P99_CMPW instruction, this can be used to construct an
Example 2
optional buffer. (Use a FIFO buffer for non-zero values.)
When data items are written to the first address of the buffer (the area of the specified range), they are
stored and accumulated in the buffer in sequential order. The oldest data will be stored in the last
address of the buffer.
2. Executing the F98_CMPR/ P98_CMPR instruction
When the data in the last address of the buffer (the area of the specified range) has been read, data
can be extracted in sequential order, starting from the oldest data.
The rest of the data in the buffer is shifted in the direction of the first address, so normally, the
oldest data at that point is stored in the last address of the buffer.
POU header
1. Executing the F99_CMPW/ P99_CMPW instruction
Arithmetic instructions
497

Advertisement

Table of Contents
loading

Table of Contents