IAI America XSEL-S User Manual
Page 133

Chapter 3 Programs
125
[Example]
This program example immediately starts synchronization to the main axis of the main CPU control axis. It is
executed repeatedly until the main axis reaches the stroke end. A program is required for each slave axis.
LET
200
1
Set “synchronization type = 1 (immediate start/repetitive
movement)” to variable No. 200.
LET
201
0
Set “master axis type = 0 (main CPU control axis)” to variable
No. 201.
LET
202
1
Set “master axis No. = 1” to variable No. 202.
LET
203
0
Set “electronic CAM table No. = 0” to variable No. 203.
LET
204
1
Set “stroke type = 1 (master axis stroke end position
specification)” to variable No. 204.
LET
205
2
Set “master axis stroke end position storage position No. = 2”
to variable No. 205.
LET
206
0
Set “slave axis stroke length storage position No. = 0” to
variable No. 206.
LET
207
0
Set 0 to variable No. 207 (unused data).
LET
208
0
Set 0 to variable No. 208 (reserved area).
LET
209
0
Set 0 to variable No. 209 (reserved area).
XAXS
0
11
Specify extension motion control board axis 0.
XSON
Turn the servo of extension motion control board axis 0 ON.
XHOM
Perform home return on extension motion control board axis
0.
XCAS
0
200
Start synchronous electronic CAM movement of extension
motion control board axis 0 with the synchronous electronic
CAM movement settings specified in variable No. 200 to 209.
LET
203
1
Set “electronic CAM table No. = 1” to variable No. 203.
LET
206
1
Set “slave axis stroke length storage position No. = 1” to
variable No. 206.
XCAS
1
200
Start synchronous electronic CAM movement of extension
motion control board axis 1 with the synchronous electronic
CAM movement settings specified in variable No. 200 to 209.
TAG
1
MOVP
2
Move X-SEL control master axis to position No. 2.
MOVP
1
Move X-SEL control master axis to position No. 1.
GOTO
1