2-10
MDrive34Plus Motion Control Hardware Revision R080106
MDrivePlus Motion Control Party Mode Sample Codes
1. Download this segment of code into the first MDrivePlus Motion Control. After downloading the program
to the unit, follow the Set Up instructions described earlier. Be sure to set your first unit with the unique
Device Name of A (DN=”A”). The device name is case sensitive.
RC=25
‘Run current
HC=5
‘Hold current
MS=256
‘Microstep selection
A=250000
‘Acceleration
D=250000
‘Deceleration
PG 1 ‘Enter program mode
S1=0,0
‘Setup I/O 1 as an input low true
LB SU
‘Start program upon power up
LB AA
‘Label program AA
MR 104400
‘Move relative 104400 counts
H ‘Hold program execution to complete the move
LB DD ‘Label program DD
BR DD,I1=0
‘Branch to DD if I1=0
4PR “Bex 1”
‘Print device name B to execute program
‘at address 1
H 2000 ‘Hold program execution 2000 milliseconds
PR “Cex 1”
‘Print device name C to execute program at
‘address 1
H 2000 ‘Hold program execution 2000 milliseconds
BR AA
‘Branch to label AA
E
PG ‘Exit program, return to immediate mode
2. Download this segment of code into your second MDrivePlus Motion Control. After downloading the
program to the unit, follow the previous party mode instructions. Be sure to set your second unit with the
unique address of B (device name is case sensitive).
RC=25
‘Run current
HC=5
‘Hold current
MS=256
‘Microstep selection
A=250000
‘Acceleration
D=250000
‘Deceleration
PG 1
‘Enter program mode
LB BB
‘Label program BB
MR 208000
‘Move relative 208000 counts
H
‘Hold program execution to complete the move
E
PG
‘Exit program, return to immediate mode
3. Download this segment of code into your third MDrivePlus Motion Control. After downloading the
program to the unit, follow the previous party mode instructions. Be sure to set your third unit with the
unique address of C (device name is case sensitive).
RC=25
‘Run current
HC=5
‘Hold current
MS=256
‘Microstep selection
A=250000
‘Acceleration
D=250000
‘Deceleration
PG 1
‘Enter program mode
LB CC
‘Label program CC
MR 300000
‘Move relative 300000 counts
H
‘Hold program execution to complete the move
E
PG
‘Exit program, return to immediate mode
Summary of Contents for MDrive 34 Plus Series
Page 12: ...1 6 MDrive34Plus Motion Control Hardware Revision R080106 Page Intentionally Left Blank ...
Page 24: ...1 18 MDrive34Plus Motion Control Hardware Revision R080106 Page Intentionally Left Blank ...
Page 26: ...2 2 MDrive34Plus Motion Control Hardware Revision R080106 ...
Page 50: ...2 26 MDrive34Plus Motion Control Hardware Revision R080106 Page Intentionally Left Blank ...