News:

  • September 29, 2026, 03:44:03 PM

Login with username, password and session length

Author Topic: AXCam  (Read 11710 times)

MBAutomation

  • Sr. Member
  • ****
  • Posts: 60
AXCam
« on: September 15, 2020, 11:44:53 PM »
Hello,

I am needing some help with two motors running on an X-axis, and a Y-Axis.  The X-axis is running on a pulley with a timing belt, the Y-axis is running a lead screw.  They sit on top of each other and they are supposed to work together.  Both are using Pulse burst positioning with the HSIO card.

The move I am currently trying to do is a circular motion, I am using the AXSCRIPT to do so.

I am getting more of an oblong shape due to the differences in lead screw and belt.

What I need is a move that will allow me to basically have an AXSCRIPT that allows 2 axis to run synchronously with two different speeds.

Will the AXCAM allow me to do this?    I currently have about 30 commands that each axis hits in order to pull this move off, but, again the difference in both won't allow it.   I have tried the AXGEAR, but this cuts short my Y-Axis moves almost to a 1/3 of the length it needs to travel.

Any help is very appreciated.

Thank you

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: AXCam
« Reply #1 on: September 15, 2020, 11:53:05 PM »
I?d probably need more info to say definitively, but yes, AXCAM can do circles.
"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

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: AXCam
« Reply #2 on: September 16, 2020, 01:19:29 AM »
Isn't there a count /unit scale factor per axis that keeps the gear ratios under the hood and lets you program in people scale and not motor scale?
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: AXCam
« Reply #3 on: September 16, 2020, 11:38:27 AM »
The best way to do this is to use Axis0 (virtual axis) as the "angle" of your circle.  Then use 2 AXCAM instructions w/the 2 X/Y axis being mastered by Axis0 (the angle).

You can then use an AXPOSTRAP/SCRV/AXVEL/AXSCRIPT on the Axis0 to "move" the angle as desired, with the X/Y Axis "camming" to Axis0's "angle" position.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3847
    • Host Engineering
Re: AXCam
« Reply #4 on: September 16, 2020, 11:46:04 AM »
I did one (no actual mechanics or wired I/O, just the ladder logic running in the PLC) a couple years ago.

It uses an offset circle.  Center is at (10000, 10000) with radius of 10000, so the range is from 0 to 20000 in both X and Y directions.

Attached is the X (SIN) AXCAM using Axis1.  Note that the green "velocity" curve approximates COS (derivative of SIN is +COS).

The "Master" Axis0 is rotary of hundredths of a degree (0 to 36000, or technically 35999, since it wraps around back to 0 in rotary mode).

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: AXCam
« Reply #5 on: September 16, 2020, 12:01:20 PM »
I did one (no actual mechanics or wired I/O, just the ladder logic running in the PLC) a couple years ago.

It uses an offset circle.  Center is at (10000, 10000) with radius of 10000, so the range is from 0 to 20000 in both X and Y directions.

Attached is the X (SIN) AXCAM using Axis1.  Note that the green "velocity" curve approximates COS (derivative of SIN is +COS).

The "Master" Axis0 is rotary of hundredths of a degree (0 to 36000, or technically 35999, since it wraps around back to 0 in rotary mode).

And if I recall, building the profile without using 0, 90, 180, and 270 as reference points produces a smoother result. I think some of the single precision trig functions get crunchy.
"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

MBAutomation

  • Sr. Member
  • ****
  • Posts: 60
Re: AXCam
« Reply #6 on: September 16, 2020, 11:41:48 PM »
The best way to do this is to use Axis0 (virtual axis) as the "angle" of your circle.  Then use 2 AXCAM instructions w/the 2 X/Y axis being mastered by Axis0 (the angle).

You can then use an AXPOSTRAP/SCRV/AXVEL/AXSCRIPT on the Axis0 to "move" the angle as desired, with the X/Y Axis "camming" to Axis0's "angle" position.

Could I talk you into making a mockup of this?  I'm not exactly sure how to do this, or what you mean by this.

I'm trying to make about a 6 inch circle.    Can you make a theoretical layout?

MBAutomation

  • Sr. Member
  • ****
  • Posts: 60
Re: AXCam
« Reply #7 on: September 16, 2020, 11:48:32 PM »
Thanks for the replies, I do appreciate the help.
Is there some kind of informational text I can read on this?  I can do simple moves, but when it comes to stuff like a circle... its a little too complex for me.
Thanks again.
I can provide more information on this if it will help, like the excel spread sheet of moves. Or screen shots.