2-10
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
HC=5
MS=256
A=250000
D=250000
PG 1
S1=0,0
LB SU
LB AA
MR 104400
H
LB DD
BR DD,I1=0
4PR "Bex 1"
H 2000
PR "Cex 1"
H 2000
BR AA
E
PG
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
HC=5
MS=256
A=250000
D=250000
PG 1
LB BB
MR 208000
H
E
PG
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
HC=5
MS=256
A=250000
D=250000
PG 1
LB CC
MR 300000
H
E
PG
'Run current
'Hold current
'Microstep selection
'Acceleration
'Deceleration
'Enter program mode
'Setup I/O 1 as an input low true
'Start program upon power up
'Label program AA
'Move relative 104400 counts
'Hold program execution to complete the move
'Label program DD
'Branch to DD if I1=0
'Print device name B to execute program
'at address 1
'Hold program execution 2000 milliseconds
'Print device name C to execute program at
'address 1
'Hold program execution 2000 milliseconds
'Branch to label AA
'Exit program, return to immediate mode
'Run current
'Hold current
'Microstep selection
'Acceleration
'Deceleration
'Enter program mode
'Label program BB
'Move relative 208000 counts
'Hold program execution to complete the move
'Exit program, return to immediate mode
'Run current
'Hold current
'Microstep selection
'Acceleration
'Deceleration
'Enter program mode
'Label program CC
'Move relative 300000 counts
'Hold program execution to complete the move
'Exit program, return to immediate mode
MDI Hardware Manual Revision R050406
Need help?
Do you have a question about the MDrive17Plus and is the answer not in the manual?