Download ManualV3 - Electromate
Transcript
Application Example: Array Data Storage This example makes a coordinated linear move in the XY plane. The Arrays VX and VY are used to store 750 incremental distances which are filled by the program #LOAD. Instruction Interpretation #LOAD DM VX [750],VY[750] CONT=0 N=0 #LOOP VX [COUNT]=N VY [COUNT]=N N=N+10 COUNT=COUNT+1 JP #LOOP,COUNT<750 #A LM XY CONT=0 #LOOP2;JP#LOOP2,_LM=0 JS#C,COUNT=500 Load Program Define Array Initialize Counter Initialize position increment Loop Fill Array VX Fill Array VY Increment position Increment counter Loop if array not full Label Specify linear mode for XY Initialize array counter If sequence buffer full, wait th Begin motion on 500 segment Specify linear segment Increment array counter Repeat until array done End linear Move After Move sequence done Send Message End program Begin Motion Subroutine LI VX[COUNT],VY[COUNT] COUNT=COUNT+1 JP#LOOP2,COUNT<750 LE AMS MG”DONE” EN #C;BGS;EN 150 ELECTROMATE INDUSTRIAL SALES LTD. TOLL FREE PHONE (877) SERVO98 • TOLL FREE FAX (877) SERVO99 [email protected] • WWW.ELECTROMATE.COM