- 49 -
Chapter 2. MC Programming
4)
L variable
Type
L<0~1999>
Function
Can store a position, velocity, time and pulse value as a variable having a multi-
purpose function.
A macro(operation, comparison) function is possible.
This is used as a function to indirectly designate a variable.
Related
command
SET,SET2,MOV,IMOV,PTP,IPTP,VEL,DWL, A, D, macro command
Explanation
Can set 2000 values as a variable to set a position, velocity, time and pulse value.
In case of a position variable function, the arbitrary portions can be used as a P
variable and its value is stored in a um unit.
Arbitrary portions can be used like an F variable during a velocity variable function,
and the value is stored in a mm/min unit.
In case of a time or pulse variable function, arbitrary portions can be used as a D
variable, and the time value is stored in a msec unit.
This is a variable enabling operation functions such as addition, subtraction,
multiplication and division like an E variable, and can be used in combination with an
IF statement.
This can be used to indirectly designate a variable in a position and macro function.
Example 1
Example of position variable functions
L100 = 10
L101 = 11
VEL 0
MOV L0 L1
This is a command to move to a position value set at a L0 variable(X) and
L1 variable(Y).
MOV PL100
A command to move to a position value set to a P10 variable by using a
L100 variable value as indirect designation(if L100 contains ‘10’).
MOV LL100 LL101
This is a command to move to a position value set to a L10
variable(X) and L11 variable(Y) by using the L100 or L101 variable value as an indirect
point(if L100 contains ‘10’ and L101 contains ‘11’).
Example 2
Example of velocity variable functions
VEL L0
MOV L1 L2
A command to apply to a feed command at a velocity set in the L0 variable
Example 3
Example of time/pulse variable functions
DWL L10
MOV P0
A command to pause during the time and external pulse set to a L10 variable
Example 4
Example of operational macro functions
L0 = 1000 Substitute‘1000’into a L0 variable.
L1 = 100 Substitute‘100’into a L1 variable.
L2 = L0 * L1 Multiply L0 by L1, and then store the result‘100000’in L2.
Example of operational macro functions using indirect designation
L0 = 10 Substitute ‘10’into a L0 variable.
LL0 = 100 Sibstitute‘100’ into a L10 variable by using indirect designation.
L2 = L0 * LL0
Multiply L0 by L10 by using indirect designation, and then store the
result ‘1000’ in L2.
Содержание MCU 2 Axis
Страница 1: ...User s Manual 2 AXES...