lostcontrol
Lifetime Supporting Member
Hi,
The current application I am working is a 3axis machine, with 2 of the axis 'slaved' to the master.
When I say slaved, they can only move relative to a certain position on the master, that is it. All they need to do is move xx amount as fast as possible when the Master reaches the set position. No interpolation or camming required, IMO anyway. This is an indexing machine. Adjustment of the move start position is a nice feature to maintain though.
What I have done, is setup a MAW for the master axis with the move start position as the Watch Point. I then have an Event task that triggers when the MAW activates.
The Event task then enables the slave axis via a MAM. The problem I encountered, was that the MAM needs to see a transition, so would only activate on the initial Event entry.
To solve this, & this is the point for discussion, I unlatched the MAM.EN bit when the MAW.PC bit was set. Does anyone see any issues with this.?
My other thought to try tomorrow, is to just unlatch the MAM.EN bits on the first rung of the Event task, that way there will be always a transition when the MAM is executed.
Whilst this worked & did everything that I wanted it to do, I am not sure if this is a good technique or not?
Cheers
LC
The current application I am working is a 3axis machine, with 2 of the axis 'slaved' to the master.
When I say slaved, they can only move relative to a certain position on the master, that is it. All they need to do is move xx amount as fast as possible when the Master reaches the set position. No interpolation or camming required, IMO anyway. This is an indexing machine. Adjustment of the move start position is a nice feature to maintain though.
What I have done, is setup a MAW for the master axis with the move start position as the Watch Point. I then have an Event task that triggers when the MAW activates.
The Event task then enables the slave axis via a MAM. The problem I encountered, was that the MAM needs to see a transition, so would only activate on the initial Event entry.
To solve this, & this is the point for discussion, I unlatched the MAM.EN bit when the MAW.PC bit was set. Does anyone see any issues with this.?
My other thought to try tomorrow, is to just unlatch the MAM.EN bits on the first rung of the Event task, that way there will be always a transition when the MAM is executed.
Whilst this worked & did everything that I wanted it to do, I am not sure if this is a good technique or not?
Cheers
LC