197
6-4. Hints for Programming High-level Instructions
4) Steps to Take When an Operation Error Occurs
■
Searching the errors
• First, confirm that K45 (H2D) is stored in the special data register DT9000 by using the NPST-GR Software or FP
Programmer II. This means that an operation error occurred.
• Then check the content of special data register DT9017 to search for the address where the operation error occurred.
• Finally, check the instruction at the address that you got from the step above referring to following examples:
Example 1: Check if an extraordinarily large value or negative value was stored in the index register (IX) used as an
address modifier.
Example 2: Check if data not in BCD is stored in the data area when executing the BCD instruction.
Example 3: Check if the data stored in the divisor is not K0.
Notes:
■
How to escape from error status
• After correcting the program, you can cancel the error status in the following ways:
- turn the power OFF and then ON.
- cancel the error status using the NPST-GR Ver 3.1 or the FP Programmer II (see notes below).
Notes:
• The error cancellation function is available only for FP1s with CPU Ver. 2.7 or later. (All FP1s with the
suffix “B” on the part number have this function.)
• To perform this function, use OP 112 of the FP Programmer
II
or STATUS DISPLAY of the NPST-GR
Ver. 3.1 Software. (This function is not available with a conventional FP Programmer or with NPST-
GR Ver. 3.0 or earlier.)
• FP1s with the error address storage function (the DT9017 and the DT9018 are available) have CPU
version 2.7 or later (all FP1s with the suffix “B” on the part number have this function). If your FP1’s CPU
version is eariler than 2.7, use the following procedure.
- First, confirm that K45 (H2D) is stored in special data register DT9000 by using the NPST-GR Software
or FP Programmer
II
. This means that an operation error occurred.
- Then, check the instructions, instruction by instruction, referring to the examples above. If it is not easy
to find the error, reexamine the program dividing it with ED instructions.
In this case, if the content of DT100 is K0, an operation
error will occur.
X0
F32 %, DT0, DT100, DT200
In this case, if each 4-bit of the DT0 exceeds the range of K0
to K9, an operation error will occur.
X0
F81 BIN, DT0, DT100
In this case, index register IX modifies the address of data
register DT0. If data in the IX is larger than the last address
of the data register, an operation error will occur.
If the programmable controller you are using is of the FP1
C14 series, the last address of the data register is DT255. If
the data in IX exceeds the range of K0 to K255, an operation
error will occur.
X0
F0 MV, DT0, IXDT0
Summary of Contents for FP1
Page 1: ...PROGRAMMABLE CONTROLLER FP1 is a global brand name of Matsushita Electric Works Hardware ...
Page 28: ...20 ...
Page 98: ...90 ...
Page 150: ...142 ...
Page 208: ...200 ...
Page 226: ...218 ...
Page 280: ...272 ...