Download Print this page

Omron NS Reference Manual page 73

Hide thumbs Also See for NS:

Advertisement

Section3 Error Message List
NS series Macro Reference
Error Message List
Error messages are displayed in the error list box after checking the error as shown below.
Error Message
Format error
Variable name error
( is missing
No. of ( )does not agree
Position of , is incorrect
Function argument error
= Command error
End of program is incomplete
If sentence error
,or; is missing
FOR Statement is mismatch
Nest of FOR statement is
exceeded the max. (Single
loop only)
Details
The program contains description besides
variable name, function name, or
programming terms that cannot be
recognized. Check whether the input
function is correct.
Variable name is incorrect
The ((left parentheses symbol ) is missing
from a function or sentence
The number of ( ) (parentheses) in the
program does not agree
The position of the , (comma) is incorrect
The program contains an incorrect
function argument, such as word memory
being set in a position that permits bit
memory only.
Refer to "Section 2 Explanation for the
function "-"Correspondence Table of
Function and Argument" and check the
argument.
The program contains an incorrect
substitution statement, such as 3=10,
$B0=3
The program that was input is incomplete
The program contains an incorrect
IF,ELSE or ENDIF is statement
The number of ,(comma) that divides the
argument is insufficient. The program is
not divided by a ;(semicolon).
FOR statement is not closed by NEXT
BREAK or CONTINUE is placed outside
of FOR loops.
FOR is nested too deep. Nesting of loops
is not supported.
53
Example
$W0=ABC+100;
$B0:3=1;
IF$W0==1)
IF($W0=1)!($W1=0
IF($W0==1),($W1==0)
$W0=BCD($B0);
$W0="ABCDE"
$W10=10+;
IF($W0==1)!($W1==0)
$W10=1;
ELSE
$W10=10;
$W10=1
FOR(3)
$W0=$W0+1;
FOR(3)
$W0=$W0+1;
NEXT;
BREAK;
FOR(3)
$W0=$W0+1;
FOR(5)
$W10=$ W 10+10;
NEXT;
NEXT;

Advertisement

loading

This manual is also suitable for:

Ns-series