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 | 'MDRIVE DEMO PROGRAM 'Last modified 08/25/2016 'Sample test program for demonstration purposes only 'Not tested or verified for safety or any function CP 'preclear program memory '****Global Setup Variables**** S5=9,0 '****Main Program**** PG 1 'will call subroutines LB aa 'that will initiate a CL za, I5<485 'move command based on CL zb, I5>515 'ain voltage level 600mv BR aa 'deadband '****Subroutines***** LB za 'ma to point if ain MA 200000 'voltage less than 2.5v H RT LB zb 'ma to point if ain MA -200000 'voltage more than 2.5v H RT E PG |