I have a project set up as below. I'm controlling it with visualizations. The odd thing is that when I try to phase it starts accelerating and seems to continue to accelerate until I'm forced to halt the motor.
These parameters all give the same result. The servo seems to accelerate at 10.0000, but accelerates until its wrecking effects and I have to halt it. My GearIn is at a 1:48, if that matters. Note, I've also tried to put in negative shift, and it still accelerates int he positive direction.
If I set up the phasing with a virtual axis in the middle (as is in the codesys docs) I get no phasing:
I tried the same parameters here and got no phasing on the axis.
Any idea what I might be doing wrong here? Or does this seem like a bug?
MC_Phasing cannot be used on the same master and slave as MC_GearIn.
Your idea with the virtual axis is good, however, as mentioned here [0], please use the virtual axis as the slave of MC_Phasing and the master of MC_GearIn.
Two other points: you should only use one instance of MC_GearIn, and you need MC_Power for the virtual axis.
Thank you for the reply. I have a few follow up questions
"Your idea with the virtual axis is good, however, as mentioned here [0], please use the virtual axis as the slave of MC_Phasing and the master of MC_GearIn."
Is this not how I have it configured above? I want to double check because as far as I'm seeing the picture above is doing this. Am I missing something?
How is it that the Virtual Axis follows the Master if not GearedIn. Is MC_Phasing by itself supposed to create a 1:1 positional "GearIn" between master and slave?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
@gseidl I tested the theory that MC_Phasing creates a 1:1 gearing and sure enough that's what it does. With that my understanding corrected on this, I was able to get phasing working. Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a project set up as below. I'm controlling it with visualizations. The odd thing is that when I try to phase it starts accelerating and seems to continue to accelerate until I'm forced to halt the motor.
I've experimented with parameters such as:
and:
These parameters all give the same result. The servo seems to accelerate at
10.0000
, but accelerates until its wrecking effects and I have to halt it. My GearIn is at a 1:48, if that matters. Note, I've also tried to put in negative shift, and it still accelerates int he positive direction.If I set up the phasing with a virtual axis in the middle (as is in the codesys docs) I get no phasing:
I tried the same parameters here and got no phasing on the axis.
Any idea what I might be doing wrong here? Or does this seem like a bug?
Hi jmarshal9120,
MC_Phasing cannot be used on the same master and slave as MC_GearIn.
Your idea with the virtual axis is good, however, as mentioned here [0], please use the virtual axis as the slave of MC_Phasing and the master of MC_GearIn.
Two other points: you should only use one instance of MC_GearIn, and you need MC_Power for the virtual axis.
[0] https://content.helpme-codesys.com/en/libs/SM3_Basic/Current/SM3_Basic/POUs/Movement/MasterSlave/MC_Phasing.html
Best regards,
Georg
Hi @gseidl,
Thank you for the reply. I have a few follow up questions
Is this not how I have it configured above? I want to double check because as far as I'm seeing the picture above is doing this. Am I missing something?
MC_Phasing
by itself supposed to create a 1:1 positional "GearIn" between master and slave?@gseidl I tested the theory that
MC_Phasing
creates a 1:1 gearing and sure enough that's what it does. With that my understanding corrected on this, I was able to get phasing working. Thanks.