MDrive Example Program
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | '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 'Motion Sample 'CODE DESCRIPTION PG 100 'Enter program mode at address 100 LB M1 'Label program M1 P=0 'Set position counter to 0 MR 200000 'Set motion mode to relative, 'move relative 200000 H 'Hold until motion is complete PR P 'Print position to terminal E 'End program PG 'Exit program mode |