Accumulated travel distance for axes

More
9 years 9 months ago #85533 by perra_e
It looks like it is possible to solv the persistance with this component. I will give it a try.
In worst case one can reset the counters to zero by editing the file!
--Per

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #85545 by perra_e
And here we have a solution that works in gmoccapy sim:
Code:
loadrt abs names=abs_spindle_feedback,abs_motion loadrt integ names=motion_tot loadrt not count=1 loadrt and2 count=1 loadusr -W paramsaver f=1 s=0 b=0 filename=persist onstart=0 onexit=0 addf abs_spindle_feedback servo-thread addf abs_motion servo-thread addf motion_tot servo-thread addf not.0 servo-thread addf and2.0 servo-thread # estop loopback net estop-loop iocontrol.0.user-enable-out => iocontrol.0.emc-enable-in paramsaver.readtrigger and2.0.in0 net motion_in abs_motion.in <= axis.0.joint-vel-cmd net motion_1a abs_motion.out => motion_tot.in comp_moved.in1 net motion_1b paramsaver.invalueF-000 <= motion_tot.out net motion_2 motion_tot.min <= paramsaver.outvalueF-000 net motion_3 axis.0.amp-enable-out => not.0.in net motion_4 not.0.out => and2.0.in1 net motion_5 and2.0.out => paramsaver.writetrigger

thanks a lot for the help!!!
--Per

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #85581 by perra_e
I thought this was solved. It works perfect in simulation on a virtual PC, but on my mill the paramsaver does not save anything when I trigger writetrigger! Any ideas on this one?
I'm running RIP-Environment.

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #85585 by Todd Zuercher
Does your persist file exist? In your vm test where was the persist file saved? Maybe the rip config can not access that location?
You might have better luck asking this question on the mailing list.

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #85587 by perra_e
It was created by the Component in my vm under /home/per/linuxcnc/persist.sav. I'm looking at the source code right now, and it should work from what I see. I have a linuxcnc folder on my mill pc as well, but maybe it is some kind of rights. I will try to create a file manually.

--Per

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #85589 by perra_e
Creating a file manually helped :)
Now every thing works perfect even on the mill!
--Per

Please Log in or Create an account to join the conversation.

Time to create page: 0.201 seconds
Powered by Kunena Forum