Master period /Slave period of a cam must be an integer

I am getting error, Master period /Slave period of a cam must be an integer. How do I get rid of this error. I am using MpAxisCoupling function block to configure the Cam.

Hi,

try making the cam 0/0 → 1/1

An then Scale it via the FB:
Coupling FB

Scaling could be for example:
Master 36000(360°)
Slave 72000(720°)

depening on your scaling of the axes

That way the slaveaxis makes 2 revolutions while the master makes one.

1 Like

Thanks for the help. I could not put any CamID value . It shows error in the logger as , Value”1” for CamID is invalid.

Hi,

The CAM must be transfered to the ACOPOS Axis were it will be used.
This can be done via a ChannelFeature or during Runtime via a Functionblock.

Functionblock
CamPrepare

ChannelFeature

  1. Cam must be part of the Software Configuration

  2. Add Cam List
    CamList

  3. Add Cam List Channel Feature
    Channel Feature CAMList

  4. Add Cam List Channel Feature to Slave Axis

Greetings
Michael

Hi Michael,

Thanks for the help. The slave axis(gAxis_2) synchronize with the master axis(gAxis_1), but I am not getting the correct position wave form and the velocity goes to negative.

Hello,

good to hear that you were now be able to get to Synchronised Motion.

First about you CAM Curve
The Y-Axis is the Slave Position at a spezific X-Axis Master Position.
In the first half of you curve you move the slave in a positive direction as long as the master reaches the 0,5 units mark. At this Position the Slave has 0 Velocity. In the next half of the curve you move the slave in a negative direction to 0 as long as the master reaches 1 unit mark.


This means if you couple your slave into the master, and then the master has a constant positive movement, the slave will go forward , backward, forward, backward, …
If the master will change its movement, this will alter also the slave movment, so it is important that we allways know also the master movement which is used.


For better diagnosis i would recoment to use the trace section of the mapp cockpit.
So you can have all relevant Data on one screen.

Configuration Window

Analysis Window
(Sample Values not related to this topic!)

Detail for XY-Configuration


About your movement issues…

  • The Master/Slave Scaling of the curve is wrong?
    You have to consider ACOPOS Units when working with CAM Curves. They depend on the Measurement resolution of you axis, and are different to the Measurement units normaly used in the Axis API.
    ACOPOS Units * Measurement resolution = Measurement units
    image

  • How did the master moved?
    The master movement can also influence the slave movement

Greetings
Michael

Thanks Michael,
I am able to trace one cycle of the slave position in one cycle of the master position as seen below.


How can I get 3 cycles of slave position in one master position cycle.

Hi,

Option 1.
Change the CAM to contain 3 Periods.
0,1666666667. → 1
0,3333333333 → 0
…
1 → 0

Option 2.
Adapt the Masterscaling with a Factor *1/3

As 1/3 is 0.3333333 this is a bad value for this option. 1/2 = 0.5 would be better, but this is not what you desired.

You always have to be carefull that you stay within defined periods.

CAMs normaly run in a long positive periodic run… so small units can sum up, at every cycle and end up in larger errors. So the periods should be considered.

Greetings
Michael