Chapter 9 NC Control Function
- A value exceeding the maximum command value set for each address cannot be specified.
Ex.) #L140 = 1000
G[#L140] ; Maximum command value OVER.
- The value of the variable that is not yet defined is 0
1-2) Global variable
For the global variables, # followed by a device type, M with a variable type and a number. The range of input
values available for each variable type is different. The constraints on using variables are the same as the
local variable.
1-3) System variable
For the system variables, # followed by a device type, M with a variable type and a number. The range of
input values available for each variable type is different. The constraints on using variables are as follows.
- For the system variable, read only.
2) Usage according to the range of variables
The range of the variable is limited by the variable's number. It is divided into the local variable, global variable,
and system variable according to the range, and the details are as follows.
2-1) Size of each variable
Size per program (10 program)
#MNi (N = X, D, W, L; i= 1, 2, 3, …)
#MN[ Expression]
#FNi (N = X, D, W, L; i= 1, 2, 3, …)