beautypg.com

12 error codes, 2 functions of devices in dvp-plc – Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 153

background image

2 Functions of Devices in DVP-PLC

DVP-PLC Application Manual

2-125

2.12 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.

Error
code

Cause of error

Error

code

Cause of error

0001

Use of device S exceeds the range

0F0A

Times of using TTMR, STMR instruction
exceed the range

0002

Using P* repeatedly or use of P* exceeds the
range

0F0B

Times of using SORT instruction exceed the
range

0003

Use of KnSm exceeds the range

0F0C

Times of using TKY instruction exceed the
range

0102

Using I* repeatedly or use of I* exceeds the
range

0F0D

Times of using HKY instruction exceed the
range

0202

Use of MC N* exceeds the range

1000

Improper use of operands of ZRST instruction

0302

Use of MCR N* exceeds the range

10EF

Incorrect use of E, F, or the modification
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

2000

Times of using TTMR, PR, HOUR instructions
exceed the range.
Improper use of operands of MRT, ARWS
instructions

0503

Use of KnYm exceeds the range

C400

Illegal instruction

0601

Use of device T exceeds the range

C401

General loop error

0604

Use of register T exceeds the range

C402

Continuously using LD/LDI instructions for
more than 9 times

0801

Use of device M exceeds the range

C403

Continuously using MPS for more than 9 times

0803

Use of KnMm exceeds the range

C404

More than 6 steps in FOR – NEXT

0B01

Incorrect use of KH

0D01 Improper use of operands of DECO instruction

0D02

ES/EX/SS/EH: improper use of operands of
ENCO instruction
SA/SX/SC: illegal use of the first operand of
ANS instruction

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

0D03

Improper use of operands of DHSCS
instruction

C407

Continuously using STL for more than 9 times

0D04

Improper use of operands of DHSCR
instruction

C408

Using MC/MCR in STL, using I/P in STL

0D05

Improper use of operands of pulse output
instruction

C409

Using STL/RET in subroutine
Using STL/RET in interruption subroutine

0D06 Improper use of operands of PWM instruction

C40A

Using MC/MCR in subroutine
Using MC/MCR in interruption subroutine

0D07

Improper use of operands of FROM/TO
instruction

C40B

MC/MCR does not start from N0, or is not
continuous

0D08 Improper use of operands of PID instruction

C40C

Corresponding N of MC and MCR are different

0D09 Improper use of operands of SPD instruction

C40D

Improper use of I/P

0D0A Incorrect operands in DHSZ instruction

C40E

IRET does not appear after the last FEND
SRET does not appear after the last FEND