- 47 -
Chapter 2. MC Programming
2.3 MC program variable details
Variables used for a MC program can be largely divided into 4 types.
1) P variable: Used to designate position data.
2) F variable: Used to designate velocity data.
3) D(E) variable: Used to designate dwell data.
4) L variable: Used to designate position, velocity, time and pulse data as a variable
having a multi-purpose function.
Table 2.2 List of MC program variable functions
Division Variable
Function
Area
Example of use
Data
classifi
cation
P
variable
Used to designate 2-dimensional
position data
Input range:
-2,147,483,648 ~ 2,147,483,647
P0 ~
P99
MOV P0, IMOV P1, SET2
P99, ..
F
variable
Used to designate velocity data
F0 ~ F9
VEL 0, VEL 1, VEL 2, ~ VEL
9
D(E)
variable
Used to designate dwell data
Used to designate acceleration
time data
Used to designate deceleration
time data
-------------------------
Used as comparison data for a
comparative
conditional
expression
Used as operation data for a
variable operator
Used to indirectly designate
position data
D0 ~ D9
(E0 ~
E9)
DWL 0, DWL 1, DWL 2, ~ DWL
9
A0, A1, A2, ~ A9
D0, D1, D2, ~ D9
IF E8 .LT E9 LB1
E0=E8-E9
MOV PE0
L
variable
Used to designate position data
Used to designate velocity data
Used to designate dwell data
Used to designate acceleration
time data
Used to designate deceleration
time data
Used as comparison data for a
comparative
conditional
expression
Used as operation data for a
variable operator
Used to indirectly designate data
L0~
L1999
MOV L0 L1, IMOV L1 L2, SET2
L1998 L1999..
VEL L0, VEL L1, ~ VEL L1999
DWL L0, DWL L1, ~ DWL L1999
A L0, A L1, A L2, ~ A L1999
D L0, D L1, D L2, ~ D L1999
IF L0 .LT L1999 LB1
L0=L0-L1999
MOV PL0, MOV LL0 LL1,
VEL LL0, ..
Содержание MCU 2 Axis
Страница 1: ...User s Manual 2 AXES...