Example to demonstrate a simple product burn-in tester. Sets up the device (the input/output polarity, general purpose I/O configuration, and values for I/O, as well as global motion control settings). This program then moves each of the three motors through their ranges of motion. The end point is the same as the start, allowing this script to be cycled indefinitely with an auto-control script.



' Test Setup

EO=0,OK

ABS,OK

POLX=168,OK

POLY=168,OK

POLZ=168,OK

POLU=168,OK

IOCFG=4294967295,OK

IO=4294967295,4294967295

ACC=10,OK

DEC=10,OK

LSPD=100,OK

EO=7,OK

CLRX,OK

CLRY,OK

CLRZ,OK

X=0,OK

Y=0,OK

Z=0,OK


' Move gripper to Test location 1

HSPD=32000,OK

DELAYS

Z=32000,OK


'Load test

DELAY=10000


' Gripper test

Z=83200,OK

DELAYL

MSTU,0


' Buffer test

HSPD=32000,OK

DELAYS

X=122048,OK

DELAY=4000


' Low speed buffer crush test

HSPD=448,OK

DELAYS

X=128576,OK

DELAY=21000


' Home Buffer motor

HSPD=32000,OK

DELAYS

HX-0,OK

DELAYM

IO20=0,OK

DELAYS

IO20=1,OK

STOPX,OK

X=-16000,OK

DELAY=16000


' Swing axis

HSPD=32000,OK

DELAYS

Y=117792,OK

DELAY=4000


' Low speed swing test

HSPD=448,OK

DELAYS

Y=122240,OK

DELAY=50000


' Reset to next test

HSPD=32000,OK

DELAYS

Y=-16000,OK

Z=-16000,OK

DELAYL