All BASIC commands
Section 4-2
191
/i
Example
Axes 3, 4 and 5 must move independently, that is, without interpolation.
Each axis moves at its own programmed
SPEED
,
ACCEL
and
DECEL
etc.
'setup axis speed and enable
BASE(3)
SPEED=5000
ACCEL=100000
DECEL=150000
SERVO=ON
BASE(4)
SPEED=5000
ACCEL=150000
DECEL=560000
SERVO=ON
BASE(5)
SPEED=2000
ACCEL=320000
DECEL=352000
SERVO=ON
WDOG=ON
MOVE(10) AXIS(5) 'start moves
MOVE(10) AXIS(4)
MOVE(10) AXIS(3)
WAIT IDLE AXIS(5) 'wait for moves to finish
WAIT IDLE AXIS(4)
WAIT IDLE AXIS(3)
Example
An X-Y plotter can write text at any position within its working envelope.
Individual characters are defined as a sequence of moves relative
to a start point. Therefore, the same commands can be used regardless
of the plot origin. The command subroutine for the letter M is:
write_m:
MOVE(0,12) 'move A > B
MOVE(3,-6) 'move B > C
MOVE(3,6) 'move C > D
MOVE(0,-12)'move D > E
RETURN
A
B
C
D
E
Содержание SYSMAC CJ Series
Страница 2: ......
Страница 70: ...Specifications Section 2 4 58...
Страница 84: ...FINS commands Section 3 4 72...
Страница 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...Section 265 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 370: ...Section 358...