Panasonic FP-E Programming Manual page 175

Fp series
Table of Contents

Advertisement

Description
When the execution condition (trigger) turns on, 1 is subtracted from the contents of S and if the result is other
than 0, the program jumps to the label (LBL instruction) that has the same number as the specified number.
The program then continues with the instructions starting from the address of the label that is the loop
destination.
Set the number of times to execute the program with the LOOP instruction. When the number of times set in S
(K constant) reaches 0, the jump will not occur even if the execution condition (trigger) turns on.
X0
F0 MV, K5 , DT 0
(LBL 1 )
X1
LOOP 1 , DT 0
If the contents of memory area specified by S is 0 from the beginning, the jump operation is not executed (it is
ignored).
A label is common for the JP instruction, the LOOP instruction and the F19 (SJP) instruction. One can be
used as the destination for all instructions as many times as required.
X0
R20
X20
LOOP 1, DT0
Two or more LBL instructions with the same number cannot be specified in a program.
With the FP2, FP2SH and FP10SH, index modification of the number specified by the LOOP instruction is
possible.
If a label for the loop destination is not programmed, a syntax error will occur.
Flag conditions
・ Error flag (R9007): Turns on and remains on when the specified value in the data area "S"
・ Error flag (R9008): Turns on for an instant when the specified value in the data area becomes
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
If the value of DT0 is K5, then after performing the jump 5 times,
even if X1 is set to on, the jump operation is not executed.
JP
1
JP
1
LBL 1
becomes less than "0" (when the most significant bit (bit position 15) of the
specified data area becomes "1").
less than "0" (when the most significant bit (bit position 15) of the specified
data area becomes "1").
Basic Instructions
2 − 65

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents