Moog Animatics SmartMotor™ Developer's Guide,Rev. L
Page 612 of 909
EXAMPLE:
'Patterning a move can be done using the same routine
'by simply shifting the origin between moves.
PT=0 'Move to the origin.
G TWAIT
GOSUB(30) 'Run a subroutine to perform a set of absolute
'position moves.
OSH=40000 'Shift the origin.
PT=0 'Move to the origin.
G TWAIT
GOSUB(30) 'Run the same subroutine with shifted origin.
OFF 'Turn off motor.
END 'End of program.
C30
'Absolute position motion profile.
RETURN
RELATED COMMANDS:
R
EA Error Actual (see page 394)
O=formula, O(trj#)=formula Origin (see page 597)
R
PA Position, Actual (see page 615)
R
PC, PC(axis) Position, Commanded (see page 619)
Part 2: Commands: OSH=formula, OSH(trj#)=formula