Chapter 12 Error Code List and Special Internal Outputs

12.3 Operation Error Codes

If an error occurs when a control instruction is executed, “1” is set in the operation error (ERR) special internal output “R7F3” and an error code (hexadecimal) indicating the description of the error is set in WRF015.

To clear the operation errors to zeros, execute “R7F3=0” using a forced setting from a program or peripheral unit. To clear the error codes to zeros, execute “WRF015=0” using a forced setting from a program or peripheral unit.

Error code

Error name

Description of error

Originating

instruction

 

 

 

H0013

SB undefined

SBn instruction corresponding to the instruction

CAL

 

 

number n in the CALn instruction is not

 

 

 

programmed

 

H0015

LBL undefined

LBLn instruction corresponding to the instruction

JMP

 

 

number n in the JMPn and CJMPn instructions is

CJMP

 

 

not programmed

 

H0016

FOR undefined

FORn instruction corresponding to the instruction

NEXT

 

 

number n in the NEXTn instruction is not

 

 

 

programmed

 

H0017

NEXT undefined

NEXTn instruction corresponding to the

FOR

 

 

instruction number n in the FORn instruction is

 

 

 

not programmed

 

H0040

LBL area error

LBLn instruction corresponding to the instruction

JMP

 

 

number n in the JMPn and CJMPn instructions is

CJMP

 

 

not programmed in the same program area

 

H0041

CAL nesting overflow

There are more than 6 levels of subroutine nesting

CAL

H0042

CAL undefined

RTS instruction was executed without executing

RTS

 

 

the CAL instruction

 

H0043

FOR to NEXT error

There is a NEXTn with the same instruction

FOR

 

 

number n prior to the FORn instruction

 

H0044

NEXT area error

There is no NEXTn instruction with the same

FOR

 

 

instruction number n as the FORn instruction in

 

 

 

the same program area

 

H0045

FOR to NEXT nesting

The FORn and NEXTn instructions are not nested

FOR

 

overflow

 

 

H0046

FOR nesting overflow

There are more than 6 nesting levels of FOR to

FOR

 

 

NEXT

NEXT

12-4

Page 267
Image 267
Hitachi NJI-350B manual Operation Error Codes, Cal, Jmp, Cjmp, 12-4