Mforce Party Mode Sample Codes - IMS Mforce micro drive Reference

Motion control
Table of Contents

Advertisement

2-18
MForce MicroDrive Party Mode Sample Codes
1.
Download this segment of code into the first MForce MicroDrive. 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 MForce MicroDrive. 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 MForce MicroDrive. 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
Motion Control MForce MicroDrive Hardware Manual Revision R112706

Advertisement

Table of Contents
loading

Table of Contents