Download FP2 Positioning Unit Manual, ARCT1F282E5

Transcript
Sample Programs
16.1
FP2 Positioning Unit
Sample Programs
R9010
Always on
F1 DMV
,
1
,
F312
F*
, DT 26
Ratio of
X axis
,
F312
F*
DT 30
Control code
of X axis
#DT 0 ,
Startup
speed
#DT 32
Startup speed
of X axis
#DT 2 ,
Target
speed
#DT 34
Target speed
of X axis
F1 DMV
, DT 26 ,
Ratio of
X axis
, DT
4 ,
Acceleration/
deceleration
time
F1 DMV
,
DT
38
X axis movement
destination
coordinates
F1 DMV
,
F312
F*
, DT 28
Ratio of
Y axis
F312
F*
R9010
Always on
H
DT
6 ,
X axis
movement
destination
H
1
,
DT
36
Acceleration/
deceleration
time of X axis
DT 40
Control code
of Y axis
, #DT 0 , #DT 42
Startup
Startup speed
speed
of Y axis
, DT 28 , #DT 2 , #DT 44
Target
Target speed
Ratio of
speed
of Y axis
Y axis
F1 DMV , DT
4 , DT
46
Acceleration/ Acceleration
deceleration /deceleration time of Y axis
time
F1 DMV , DT
8 , DT
48
Y axis movement
Y axis
destination
movement
coordinates
destination
F151 WRT , K 1 , DT 30 , K 10 , H 100
R9010
Always on
F151 WRT , K 1 , DT 40 , K
D
D
=
=
DT
34
,
Target speed
of X axis
K
DT
44
,
Target speed
of Y axis
K
0
10 , H 110
R0
X axis condition
0
R1
Y axis condition
RET
The meaning of the “#” symbol in the program
The “#” symbol is specified when a real number operation instruction is used, to convert
(integer data) to (real number data), or (real number data) to (integer data).
16 − 12