News:

  • October 14, 2025, 12:55:13 PM

Login with username, password and session length

Author Topic: AXFOLLOW instruction with offset  (Read 10446 times)

scottsutton

  • Full Member
  • ***
  • Posts: 44
AXFOLLOW instruction with offset
« on: August 12, 2019, 12:47:34 PM »
I am using the AXFOLLOW instruction to sync a servo puncher to a product coming down a conveyor belt. The conveyor belt has an encoder on it and is configured as the Master Axis. The product has a target position where the punch occurs and 90% of the time the target is very accurate. However, once in a while the part gets molded slightly off causing the punch location to have to move on the part. The puncher servo is in continuous motion once it starts to punch a new part and it uses the Gear Ratio Multiplier to space the punches correctly.

I can sense when punch target moves slightly and I would like to send an offset location into the slave axis while its in motion to correct the punch location. Is that what the offset function does in the AXFOLLOW command? If so, does it offset the Master Register location so the slave updates?

Please explain.

Thank you,
Scott Sutton

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: AXFOLLOW instruction with offset
« Reply #1 on: August 12, 2019, 01:47:16 PM »
This is indeed what the Offset Position is for. You set the Offset Position and then turn the Goto Offset Signal on. The thing you must remember is, if you are using the AXFOLLOW instruction, it is a requirement that your following axis be faster than your Master Register. In other words, that axis must have a faster Maximum Velocity and Accel/Decel rates. Otherwise, it cannot go to the offset you tell it to go to.

To answer your question, no it does not offset the Master Register location at all; that remains exactly what it is. It merely offsets its own CurrentPosition.
There are two types of people in the world; those that can extrapolate from incomplete data sets.

scottsutton

  • Full Member
  • ***
  • Posts: 44
Re: AXFOLLOW instruction with offset
« Reply #2 on: August 12, 2019, 03:05:41 PM »
Greg,
Thank you!

A couple of more details if you will.

1. Do I apply the offset once and with the goto offset bit? Or, do I hold the bit on while the offset is in place and removing the bit returns to the Slave to the non-offset position?

2. Can I use a D register for the offset value and can I use a negative or position offset value?

Thanks again, this will lower our current scrap rate by a significant margin!

Scott



BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: AXFOLLOW instruction with offset
« Reply #3 on: August 12, 2019, 05:00:40 PM »
Greg,
Thank you!

A couple of more details if you will.

1. Do I apply the offset once and with the goto offset bit? Or, do I hold the bit on while the offset is in place and removing the bit returns to the Slave to the non-offset position?

2. Can I use a D register for the offset value and can I use a negative or position offset value?

Thanks again, this will lower our current scrap rate by a significant margin!

Scott

Set the relative offset and velocity, then set the Goto Offset bit. When the axis is at the new offset, the instruction will clear the bit.

Offset value can be negative or positive.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

scottsutton

  • Full Member
  • ***
  • Posts: 44
Re: AXFOLLOW instruction with offset
« Reply #4 on: August 13, 2019, 10:31:07 AM »
Is there an example program using the AXFOLLOW with an offset available to look at? I am not getting the expected results when I use this feature. The slave axis bogs down with either a positive or negative offset. Even as small as 1 step of offset. I am setting the goto bit and letting the AXFOLLOW reset it as instructed. Also, my excel/decel and maximum velocity on the slave are more than adequate to gain-lose steps to meet the offset target.

Thanks,
Scott

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: AXFOLLOW instruction with offset
« Reply #5 on: August 13, 2019, 10:35:59 AM »
Is there an example program using the AXFOLLOW with an offset available to look at? I am not getting the expected results when I use this feature. The slave axis bogs down with either a positive or negative offset. Even as small as 1 step of offset. I am setting the goto bit and letting the AXFOLLOW reset it as instructed. Also, my excel/decel and maximum velocity on the slave are more than adequate to gain-lose steps to meet the offset target.

Thanks,
Scott

Please define "bogs down".

What is the accel/decel/max velocity settings of the master?

What is the accel/devel/max velocity settings of the slave?

What is your offset velocity set to?

What velocity is the master running at?

Is the master velocity changing at the time you adjust the slave?

"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: AXFOLLOW instruction with offset
« Reply #6 on: August 13, 2019, 10:45:35 AM »
...and what is the scale factor between the master and slave?
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

scottsutton

  • Full Member
  • ***
  • Posts: 44
Re: AXFOLLOW instruction with offset
« Reply #7 on: August 13, 2019, 10:52:06 AM »
Bogs down: The slave slows way down no matter what the offset is set to

What is the accel/decel/max velocity settings of the master?
The Master is an encoder input on X0 ($BeltPulsesPerf) configured as an up counter
It operates at 1600 pulses per second at max speed

What is the accel/devel/max velocity settings of the slave?
Max Velocity = 250000
Accel = 900000000
Decel = 900000000

What is your offset velocity set to?
0

Is the master velocity changing at the time you adjust the slave?
no





Gear Ratio
-8.4
« Last Edit: August 13, 2019, 11:03:51 AM by scottsutton »

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: AXFOLLOW instruction with offset
« Reply #8 on: August 13, 2019, 10:57:56 AM »
-8.4

Is this the gear ratio, and did you see my previous post?

Not sure how I feel about a negative gear ratio or whether it was even tested and should be allowed.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

scottsutton

  • Full Member
  • ***
  • Posts: 44
Re: AXFOLLOW instruction with offset
« Reply #9 on: August 13, 2019, 11:04:22 AM »
Yes, Ratio. No, did not see at first. See Reply above

scottsutton

  • Full Member
  • ***
  • Posts: 44
Re: AXFOLLOW instruction with offset
« Reply #10 on: August 13, 2019, 11:06:26 AM »
The Negative Ratio is to reverse the direction of the slave. I could modify the servo config and set for positive if this is the issue.

Thanks

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: AXFOLLOW instruction with offset
« Reply #11 on: August 13, 2019, 11:15:57 AM »
The Negative Ratio is to reverse the direction of the slave. I could modify the servo config and set for positive if this is the issue.

Thanks

I'm not sure if the negative is a problem or not.

The offset velocity must be set to a non-zero value. That defines the max relative velocity between the master and slave. I'm following a car down the road...it's the master, I'm the slave. If I want to pass, I have to go faster than him. The offset velocity is how much faster than the master that the slave is allowed to go to get to the new offset.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

scottsutton

  • Full Member
  • ***
  • Posts: 44
Re: AXFOLLOW instruction with offset
« Reply #12 on: August 13, 2019, 11:26:42 AM »
Quote
The offset velocity must be set to a non-zero value

Direct from the help file on the AXFOLLOW instruction:

Relative Offset Velocity is the additional velocity the Follower Axis will use when moving to the Relative Offset Position. This value specifies how much faster ( in pulses / second) the Follower Axis can move than the Master Axis when attempting to move to the Relative Offset Position. A value of 0 will cause the Follower Axis to move at the Axis's maximum Velocity to get to the specified offset position. This value can be any constant between 0 and 250,000 or any numeric location containing a value in that range.

 

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6126
  • Yes Pinky, Do-more will control the world!
Re: AXFOLLOW instruction with offset
« Reply #13 on: August 13, 2019, 11:33:17 AM »
Quote
The offset velocity must be set to a non-zero value

Direct from the help file on the AXFOLLOW instruction:

Relative Offset Velocity is the additional velocity the Follower Axis will use when moving to the Relative Offset Position. This value specifies how much faster ( in pulses / second) the Follower Axis can move than the Master Axis when attempting to move to the Relative Offset Position. A value of 0 will cause the Follower Axis to move at the Axis's maximum Velocity to get to the specified offset position. This value can be any constant between 0 and 250,000 or any numeric location containing a value in that range.

My bad. I've slept since that work was done.

The issue may be due to the negative ratio. I'll have one of the guys here check that out. I do not remember explicitly testing that so it may well be breaking some math.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

scottsutton

  • Full Member
  • ***
  • Posts: 44
Re: AXFOLLOW instruction with offset
« Reply #14 on: August 13, 2019, 11:37:27 AM »
Ok Thanks,
Once working correctly this will help us tremendously!