Axis oscillating motion
- serdigi
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 3
03 Sep 2020 07:52 #180501
by serdigi
Axis oscillating motion was created by serdigi
Greetings and respect everyone...
I built a five-axis machine.I'm welding with this machine.
As most of you know, in some welding jobs, the welding torch is oscillated and the filling is made between the two parts.While the other axes move according to the g code, I could not put an axis I wanted on my oscillation.According to my research, external offset can do this job.But I use Linuxcnc 2.7.15 because it is stable.Therefore I cannot use the external offset.
1- Could it be with offset component from the Hal library? (I could not find an example with the offset component. I also could not understand what I read.)
I am waiting for your help, best regards...
Thanks for taking your time and reading.
I built a five-axis machine.I'm welding with this machine.
As most of you know, in some welding jobs, the welding torch is oscillated and the filling is made between the two parts.While the other axes move according to the g code, I could not put an axis I wanted on my oscillation.According to my research, external offset can do this job.But I use Linuxcnc 2.7.15 because it is stable.Therefore I cannot use the external offset.
1- Could it be with offset component from the Hal library? (I could not find an example with the offset component. I also could not understand what I read.)
I am waiting for your help, best regards...
Thanks for taking your time and reading.
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11311
- Thank you received: 3792
03 Sep 2020 10:16 #180510
by rodw
Replied by rodw on topic Axis oscillating motion
2.8 is stable and in the verge of becoming the release version. I'd just adopt it a couple of weeks early and use external offsets.
Then you could apply a sine wave generated by sigggen linuxcnc.org/docs/2.8/html/man/man9/siggen.9.html
to the offsets for that axis.
There are some sims on 2.8 that demonstrate external offsets.
I've been using 2.8 and 2.9 for about 4 years and never really had an issue.
Then you could apply a sine wave generated by sigggen linuxcnc.org/docs/2.8/html/man/man9/siggen.9.html
to the offsets for that axis.
There are some sims on 2.8 that demonstrate external offsets.
I've been using 2.8 and 2.9 for about 4 years and never really had an issue.
Please Log in or Create an account to join the conversation.
- serdigi
- Offline
- New Member
-
Less
More
- Posts: 15
- Thank you received: 3
03 Sep 2020 11:02 - 03 Sep 2020 11:08 #180518
by serdigi
Replied by serdigi on topic Axis oscillating motion
Hello Rodw.
Thank you for your time.I will follow your advice.I didn't want to tamper with the working system because I have CAN BUS in my configuration.It is not difficult to guess that it is reliable on Linuxcnc 2.8.
As you said, I solved my problem with siggen and offset component.Thanks for the quick response and correct guidance.
maybe I am writing the solution I obtained to set an example for others.
loadrt offset count=1
loadrt siggen num_chan=1
addf offset.0.update-output servo-thread
addf siggen.0.update servo-thread
setp siggen.0.amplitude 0.5
setp siggen.0.frequency 5
setp siggen.0.offset 0
net offset_sine siggen.0.sine offset.0.offset
#net offset_sine siggen.0.square offset.0.offset
net x_axis_cmd axis.0.motor-pos-cmd => offset.0.in
net x_axis_off_cmd offset.0.out => lcec.0.0.poscommand
net x_axis_fb lcec.0.0.pos => axis.0.motor-pos-fb
Thank you.
Best Regards...
Thank you for your time.I will follow your advice.I didn't want to tamper with the working system because I have CAN BUS in my configuration.It is not difficult to guess that it is reliable on Linuxcnc 2.8.

As you said, I solved my problem with siggen and offset component.Thanks for the quick response and correct guidance.
maybe I am writing the solution I obtained to set an example for others.
loadrt offset count=1
loadrt siggen num_chan=1
addf offset.0.update-output servo-thread
addf siggen.0.update servo-thread
setp siggen.0.amplitude 0.5
setp siggen.0.frequency 5
setp siggen.0.offset 0
net offset_sine siggen.0.sine offset.0.offset
#net offset_sine siggen.0.square offset.0.offset
net x_axis_cmd axis.0.motor-pos-cmd => offset.0.in
net x_axis_off_cmd offset.0.out => lcec.0.0.poscommand
net x_axis_fb lcec.0.0.pos => axis.0.motor-pos-fb
Thank you.
Best Regards...
Last edit: 03 Sep 2020 11:08 by serdigi.
The following user(s) said Thank You: rodw, Aciera
Please Log in or Create an account to join the conversation.
Time to create page: 0.080 seconds