Points To Check In Program - Panasonic FP E Series User Manual

Table of Contents

Advertisement

9.4.4 Points to Check in Program

1. 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 modifies the address of data register DT0. If data in I0 is too large, it will
exceed the addressable range of the data register. The last address of the data register is DT32764, so
if the contents of I0 exceeds 32764, an operation error will occur. The same is true when the contents of
I0 are a negative value.
2. 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.
3. Check if the divisor of a division instruction is "0".
<Example>
In this case, if the content of DT100 is "0", an operation error will occur.
9-8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents