'***************************************************************************
'Description:
'The #AUTO label is a special label that tells the controller to
'automatically start running the program as soon as power is applied.
'BP must be issued in order to save the program into nonvolatile memory.
'***************************************************************************
#AUTO
'this code will move the X motor back and forth as soon as power is applied
SH A
PRA= 1000;BG A;AM A
WT 1000
PRA= -1000;BG A;AM A
EN