Using the MAG Instruction

Tweeker

Lifetime Supporting Member
Join Date
Nov 2007
Location
Smalltown
Posts
79
I needed some help understanding and using the Motion Axis Gear instruction in a CompactLogix system. As I understand it that instruction will synchronize a slave servo axis to an axis I designate as master. My question is when in my code do I use the instruction? Do I need to home each axis individually then run the MAG instruction? After running it, can I then only issue one MAM instruction to the master axis and the slave will follow?

Thanks.
 
The MAG instruction can be called at any time when the slave axis is ready to move
When it is called it "Locks" the Slave axis to the Master Axis using the Ratio in the instruction. The "Locking" functionality means that whenever the master axis moves (MAM, MAH, MAJ, manually etc) so does the slave axis.

If the Either axis is moving at the time MAG is enabled then you can enable the "clutch" so the slave axis ramps to the correct speed

Active Homing cancels MAG
Passive Homing permits the MAG to continue
neither axis is required to be homed before MAG is called
 
When you explain it like that, the clutch function makes more sense. What is the difference between passive and active homing?
 
passive - you control the servo movement ie you must program your own MAJ, MAM etc
active - the MAH command controls the servo movement


Active is when you use the inbuilt homing routine and home proximity - simple to program
Passive is when you have a machine that cannot use the inbuilt routine eg
slave axis that must follow a master axis while homing for mechanical reasons
or have to home while monitoring something else or the axis is feedback only
or cannot use the home input for homing​
 
Last edited:

Similar Topics

I have a project to automate four generator sets. The system will monitor and store the load demand of the factory. Once there's Power outage, the...
Replies
0
Views
55
Adding ethernet equipment to an existing panel that has none. We have some solid ethernet cables coming from other remote cabinets that I plan to...
Replies
3
Views
116
I'm trying to control a device via MODBUS RTU and the ModbusRtuMasterV2_PcCOM in Twincat 3. I've configured a device with the right com port and...
Replies
7
Views
221
Hi, I'm trying to use the IO Device Library (Product Versions) which is configured to work with the 1756-EN4TR & 1756-EN2TR but my system uses...
Replies
0
Views
59
Hello, As part of our project, we are using an M241 controller. This controller interfaces with an industrial computer and a router via a switch...
Replies
2
Views
105
Back
Top Bottom