Download Print this page

Omron NS Reference Manual page 4

Hide thumbs Also See for NS:

Advertisement

Section 1 Outline of Macro Function
NS series Macro Reference
1-1 What is Macro?
Macro is the function which can be executed by users original program. User can add functions,
such as arithmetic operations and distinction of conditions, which are not supported by standard
functions in CX-Designer. This function allows the PT to process screen display or data, which
is performed by PLC before. It is also possible to reduce a load of PLC. In this manual, the
timing for executing macro is called "Macro Execution Condition". Macro can be made by
roughly divided three execution conditions as shown below.
-Execution condition for the project
-Execution condition for the screen
-Execution condition for the functional objects
There is no restriction on the number of macros for 1 project/1screen.
Up to 3000 characters can be used for one macro. Line feed is counted as two characters.
There is also no restriction on the number of lines.
Example:
'Number of inputting characters 11 characters+line
b feed (2characters), including comment
$W0=10;
STRCPY($W10",ABCDE");
In this case, 43 characters are used.
7characters+line feed (2characters)
21characters
1-2

Advertisement

loading

This manual is also suitable for:

Ns-series