User manual

46
Program syntax error status register SR30 (W2590)
Indicates the result of the automatic check on the user program syntax
when the programmer or GPC executes a syntax check, and when the
operation mode is switched from the Stop state to the Run state. If the
value of W2590 is not zero, F004 bit turns On. The error lamp also turns
On.
Error correction method:
Find the error in the CPU online mode and then correct the program.
Word Bit Description
SR30
0
On if the I/O number range of bit process instruction is beyond the specified range or
designates an external contact/output module which is not installed.
1 On if the channel number of the timer or the counter exceeds 255 or is duplicated.
2
On if the bit or word number in the advanced instruction is beyond the specified range or if
it designates a module which is not installed.
3
On if a word number in the refresh instruction (INPR, OUTR) is beyond the specified range,
or if it designates a module which is not installed.
4 On if an undefined instruction exists.
5 On in event of a user program memory writing error.
6 On in event of miscellaneous errors.
7 On if the user program memory is abnormal.
8
On if an error on external I/O address and bit/word/double word numbers used occurs. For
example, the first slot is set with an input module and OUT R00001 is designated.
9
On if the label numbers of the JMP or CALL instructions exceed 63, the corresponding
instruction LBL or SBR does not exist, and/or the corresponding LBL/SBR instructions exist
prior to JMP/CALL instructions.
10 On if the label number of the LBL instruction exceeds 63 and/or is duplicated.
11 On if the JMPS/JMP instructions are mistakenly combined and/or used.
12
On if the FOR/NEXT instructions are mistakenly combined and/or used more than four
times. (Loop)
13
On if SBR/RET instructions are not combined and/or used and/or the SBR instructions
overlap or exceed 63.
14
On if NT/RETI instructions are not combined and/or used and/or more than two sets of INT
instructions are used.
15 On if no END instruction inserted automatically.