Example – Yaskawa SMC–4000 User Manual
Page 324
Advertising
314
SMC–4000 User Manual
Example:
Move the A motor to absolute position 1000 counts and back to zero ten times. Wait 100 msec between
moves.
#BEGIN
Begin Program
COUNT=10
Initialize loop counter
#LOOP
Begin loop
PA 1000
Position absolute 1000
BGA
Begin move
AMA
Wait for motion complete
WT 100
Wait 100 msec
PA 0
Position absolute 0
BGA
Begin move
AMA
Wait for motion complete
WT 100
Wait 100 msec
COUNT=COUNT-1
Decrement loop counter
JP #LOOP,COUNT>0
Test for 10 times thru loop
EN
End Program
Advertising