Kaiyi — 7.1.1 CPU Modules

Chapter 7 Error Codes 7-5 Error code Description CPU Status LED indicator status ERROR BUS FAULT 16#2003 The devices used in the program exceed the range. (SM0/SM5) Self-defined Blink OFF 16#2004 The part of the program specified by the label used in CJ/JMP is incorrect, or the label is used repeatedly. (SM0/SM5) Stop Blink OFF 16#2005 The N value used in MC is not the same as the corresponding N value used in MCR, or the number of N values used in MC is not the same as the number of N values used in MCR. (SM5) Stop Blink OFF 16#2006 The N values used in MC do not start from 0, or the N values used in MC are not continuous.

(SM5) Stop Blink OFF 16#2007 The operands used in ZRST are not used properly. (SM5) Stop Blink OFF 16#200A Invalid instruction (SM5) Stop Blink OFF 16#200B The operand n or the other constant operands exceed the range. (SM0/SM5) Self-defined Blink OFF 16#200C The operands overlap. (SM0/SM5) Self-defined Blink OFF 16#200D An error occurs when the binary number is converted into the binary-coded decimal number. (SM0/SM5) Self-defined Blink OFF 16#200E The string does not end with 0x00. (SM0/SM5) Self-defined Blink OFF 16#200F The instruction does not support the modification by an index register. (SM5) Stop Blink OFF 16#2010 1. The instruction does not support the device. 2. Encoding error 3.

The instruction is a 16-bit instruction, but the constant operand is a 32-bit code. (SM5) Stop Blink OFF 16#2011 The number of operands is incorrect. (SM5) Stop Blink OFF 16#2012 Incorrect division operation (SM0/SM5). Self-defined Blink OFF 16#2013 The value exceeds the range of values which can be represented by the floating-point numbers. (SM0/SM5) Self-defined Blink OFF 16#2014 The task designated by TKON/YKOFF is incorrect, or exceeds the range. (SM5) Stop Blink OFF 16#2015 There are more than 32 levels of nested program structures supported by CALL. (SM0) Self-defined Blink OFF 16#2016 There are more than 32 levels of nested program structures supported by FOR/NEXT.

(SM0/SM5) Self-defined Blink OFF 16#2017 The number of times FOR is used is different from the number of times NEXT is used. (SM5) Stop Blink OFF 16#2018 There is a label after FEND, but there is no SRET. There is SRET, but there is no label. (SM5) Stop Blink OFF 16#2019 The interrupt task is not after FEND. (SM5) Stop Blink OFF 16#201A IRET/SRET is not after FEND. (SM5) Stop Blink OFF 16#201B There is an interrupt task, but there is no IRET. There is IRET, but there is not interrupt task. (SM5) Stop Blink OFF 16#201C End is not at the end of the program. (SM5) Stop Blink OFF