Points To Check In Program - Panasonic FP0 User Manual

Programmable controller
Hide thumbs Also See for FP0:
Table of Contents

Advertisement

Precautions During Programming
8.4
Operation Errors
8.4.4

Points to Check in Program

Check if an extraordinarily large value or negative value was stored in the index register.
Example:
When a data register is modified using an index register
In this case, index register (IX) modifies the address of data
register DT0. If data in IX is larger than the last address of the
data register, an operation error will occur. If the PLC you are
using is of the FP0 16-point type, the last address of the data
register is DT1659. If the data in IX exceeds the range of K0 to
K255, an operation error will occur. The same is true when the
contents of IX are negative.
Is there any data which cannot be converted using BCD ↔ BIN data conversion?
Example:
When BCD−to−BIN conversion is attempted
In this case, if DT0 contains a hexadecimal number with one of
the digits A through F such as 12A4, conversion will be
impossible and an operation error will result.
Example:
When BIN−to−BCD conversion is attempted
In this case, if DT1 contains a negative value or a value
greater than K9999, an operation error will occur.
Check if the divisor of a division instruction is K0.
Example:
In this case, if the content of DT100 is K0, an operation error
will occur.
8 − 12
R0
F0 MV, DT0, IXDT0
R0
F81 BIN, DT0, DT100
R0
F80 BCD, DT1, DT101
R0
F32 %, DT0, DT100, DT200
FP0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents