MDrive Example Program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 'MDRIVE DEMO PROGRAM 'Last modified 08/25/2016 'Sample test program for demonstration purposes only 'Not tested or verified for safety or any function S1=0,0,0 'I/O setup GP,LOW Active Sinking S2=0,0,0 S3=0,0,0 PG 1 'Call subs based on input LB aa CL zx, I1=1 CL zy, I2=1 CL zz, I3=1 BR aa LB zx 'perfom move on input 1=true MR 51200 H MR -51200 H PR "Been there" RT LB zy 'perform series of moves: input 2=true MR 20000 H MR 50000 H MR 70000 H PR "Done that" RT LB zz 'perform series of moves: input 3=true MR -20000 H MR -50000 H MR -70000 H PR "Don't Need Tshirt..GOT MOD!" RT E PG |