2 Functions of Devices in DVP-PLC 2.13 Error Codes After you write the program into the PLC, the illegal use of operands (devices) or incorrect syntax in the program will result in flashing of ERROR indicator and M1004 = On. In this case, you can find out the cause of the error by checking the error code (hex) in special register D1004. The address where the error occurs is stored in the data register D1137. If the error is a general loop error, the address stored in D1137 will be invalid.
DVP-PLC Application Manual 2-146 Error Cause of error code 0001 Use of device S exceeds the range 0002 Using P* repeatedly or use of P* exceeds the range 0003 Use of KnSm exceeds the range 0102 Using I* repeatedly or use of I* exceeds the range 0202 Use of MC N* exceeds the range 0302 Use of MCR N* exceeds the range 0401 Use of device X exceeds the range 0403 Use of KnXm exceeds the range 0501 Use of device Y exceeds the range 0503 Use of KnYm exceeds the range 0601 Use of device T exceeds the range 0604 Use of register T exceeds the range 0801 Use of device M exceeds the range 0803 Use of KnMm exceeds the range 0B01 Incorrect use of KH 0D01 Improper use of operands of DECO instruction 0D02 ES/EX/SS/EH2/SV/EH3/SV2:
improper use of operands of ENCO instruction SA/SX/SC:
illegal use of the first operand of ANS instruction 0D03 Improper use of operands of DHSCS instruction 0D04 Improper use of operands of DHSCR instruction 0D05 Improper use of operands of pulse output instruction 0D06 Improper use of operands of PWM instruction 0D07 Improper use of operands of FROM/TO instruction 0D08 Improper use of operands of PID instruction 0D09 Improper use of operands of SPD instruction 0D0A Incorrect operands in DHSZ instruction 0D0B Improper use of operands in IST instruction 0E01 Use of device C exceeds the range Error Cause of error code 0F0A Times of using TTMR, STMR instruction exceed the range 0F0B Times of using SORT instruction exceed the range 0F0C Times of using TKY instruction exceed the range 0F0D Times of using HKY instruction exceed the range 1000 Improper use of operands of ZRST instruction 10EF Incorrect use of E, F, or the modification exceeds the range 2000 Times of using TTMR, PR, HOUR instructions exceed the range.
Improper use of operands of MRT, ARWS instructions C400 Illegal instruction C401 General loop error C402 Continuously using LD/LDI instructions for more than 9 times C403 Continuously using MPS for more than 9 times C404 More than 6 steps in FOR – NEXT C405 Using STL/RET between FOR – NEXT Using SRET/IRET between FOR – NEXT Using MC/MCR between FOR – NEXT Using END/FEND between FOR – NEXT C407 Continuously using STL for more than 9 times C408 Using MC/MCR in STL, using I/P in STL C409 Using STL/RET in subroutine Using STL/RET in interruption subroutine C40A Using MC/MCR in subroutine Using MC/MCR in interruption subroutine C40B MC/MCR does not start from N0, or is not continuous C40C Corresponding N of MC and MCR are different C40D Improper use of I/P C40E IRET does not appear after the last FEND.
SRET does not appear after the last FEND. C40F PLC program and data in parameters have not been initialized. C41B Invalid RUN/STOP instruction to extension module