3 Functions of NB-Designer
3-260
NB-series Programmable Terminals NB-Designer Operation Manual(V106)
3-9
Macro Function
Macro is the function allows the user to create and execute the simple and original programs.
The user can add the functions such a arithmetical operations or discriminant of the conditions which
are not be supported by the basic functions of the NB-Designer. Using the Macro function, the user also
convert the display processing in the screen or the data processing used to be performed in the PLC.
This function allows the PC loading reduced. The Macro of the NB-Designer conforms to C Language
(ANSI C89).
This section provides a brief of the Macro variables.
The Macro variables are classified into two types such as internal variables and external variables.
•
Internal variables: The variables are available only within the Macro Program. The internal variables
can be defined in the [Macro Variable Table] or the [Macro Editing Window].
•
External variables: The variables are to read and write the values with the external controllers. The
external variables are necessary to be defined in the [Macro Variable Table] in
advance. The defined external variables can be used in the [Macro Editing Win-
dow].
Storage Format of the variables used in the [Macro Variables Table]
Read/Write type of Macrocode Variable
3-9-1
Create a Simple Macro Program
Storage Format
Data length
Descriptions
Bit
1bit
Bit variable with 2 statuses of 0 and 1.
Signed short
1 word (16 bits)
Signed short-integer variable with a range of -32768 to 32767.
Unsigned short
1 word (16 bits)
Unsigned short-integer variable with a range of 0 to 65535.
Signed int
2 word (32 bits)
Signed-integer variable with a range of -2147483648 to
2147483647.
Unsigned int
2 word (32 bits)
Unsigned-integer variable with a range of 0 to 4294967295.
Float
2 word (32 bits)
Single-precision floating-point variable with a range of
-3.4E+38 to +3.4E38
Double
4 word (64 bits)
Double-precision floating-point variable with a range of
-1.79E+308 to +1.79E+308
Read/Write Type
Descriptions
Read
The values of Macro are read before being executed, and reading operation is not
performed during Macrocode execution.
Write
The values of Macro are written to the specified variable at one time after being
executed, and writing operation is not performed during Macrocode execution.
Read/Write
The values of Macro are read before being executed, and written after being executed.
Summary of Contents for NB10W-TW01B
Page 4: ......
Page 10: ...Terminology 6 NB series Programmable Terminals NB Designer Operation Manual V106 ...
Page 528: ...8 Web Interface 8 10 NB series Programmable Terminals NB Designer Operation Manual V106 ...
Page 544: ...Appendices A 16 NB series Programmable Terminals NB Designer Operation Manual V106 ...
Page 546: ...Revision 2 NB series Programmable Terminals NB Designer Operation Manual V106 ...
Page 547: ......