'================================================================================ '******SmartMotor 4-Axis Gantry Demo****** '================================================================================ 'This assumes 4 axis gantry with motors set up as: ' Motor Address ' X 1 ' Y 2 ' Z 3 ' X' 4 'This code is for example only. 'Homing and error handling code should be added. END '================================================================================ '================================================================================ C1 'Make sync move of 4 motors VTS=v 'Set path velocity ADTS=a 'Set path accel/decel PTS(x;1;4,y;2,z;3) 'Set position to move to IF PTSD!=0 GS ENDIF 'Go TSWAIT 'Wait for moves to complete RETURN '================================================================================ '================================================================================ C500 ' Build-A-Pallet Subroutine GOSUB(501) 'Get sample pallet values GOSUB(502) 'Z up x=g 'Set X pick position y=h 'Set Y pick position GOSUB(1) 'Go and linear interpolate the move GOSUB(503) 'Z down WAIT=w GOSUB(502) 'Z up ' Go to pick subroutine HERE c=0 'Zero X loop counter WHILE c