- Posts: 116
- Thank you received: 10
EtherCAT driver for a 6 axis robot
- ftree
- Offline
- Premium Member
-
Less
More
4 years 3 months ago #247849
by ftree
Replied by ftree on topic EtherCAT driver for a 6 axis robot
Current output of halshow
github.com/djsftree/linuxcnc-ethercat/bl...-meca500/halshow.txt
github.com/djsftree/linuxcnc-ethercat/bl...-meca500/halshow.txt
Please Log in or Create an account to join the conversation.
- db1981
- Offline
- Platinum Member
-
Less
More
- Posts: 790
- Thank you received: 276
4 years 3 months ago #247867
by db1981
Replied by db1981 on topic EtherCAT driver for a 6 axis robot
yes, similar to this but only for the robots complete control pins and the axis enables...
Please Log in or Create an account to join the conversation.
- db1981
- Offline
- Platinum Member
-
Less
More
- Posts: 790
- Thank you received: 276
4 years 3 months ago #247922
by db1981
Replied by db1981 on topic EtherCAT driver for a 6 axis robot
oh, i have not noticed a few of the last posts.
-initial values would be set with the inital data at variable initialization in c.
I don't know if this is practicable in the whole system but my way of implementation would be:
safty chain (estop btn, power_on btn implemented in Hardware)
estop case : ctrl.deactivate = 1; motion.set-point 0
safty chain on (estop disabled) :
-ctrl.deactivate = 0;ctrl.activate = 1
-wait for status.activated -> set ctrl.home
-wait for status.homed -> reset ctrl.home, at this moment in time first set emc-enable-in true (the power on btn in gui will gets accesable)
-now set this
setp lcec.0.Meca500.vel-command 21
setp lcec.0.Meca500.motion.set-point 1
setp lcec.0.Meca500.motion.move-id 0
for lcnc homing use absolute encoders...
-initial values would be set with the inital data at variable initialization in c.
I don't know if this is practicable in the whole system but my way of implementation would be:
safty chain (estop btn, power_on btn implemented in Hardware)
estop case : ctrl.deactivate = 1; motion.set-point 0
safty chain on (estop disabled) :
-ctrl.deactivate = 0;ctrl.activate = 1
-wait for status.activated -> set ctrl.home
-wait for status.homed -> reset ctrl.home, at this moment in time first set emc-enable-in true (the power on btn in gui will gets accesable)
-now set this
setp lcec.0.Meca500.vel-command 21
setp lcec.0.Meca500.motion.set-point 1
setp lcec.0.Meca500.motion.move-id 0
for lcnc homing use absolute encoders...
Please Log in or Create an account to join the conversation.
- ftree
- Offline
- Premium Member
-
Less
More
- Posts: 116
- Thank you received: 10
4 years 3 months ago #247928
by ftree
Replied by ftree on topic EtherCAT driver for a 6 axis robot
Please Log in or Create an account to join the conversation.
- ftree
- Offline
- Premium Member
-
Less
More
- Posts: 116
- Thank you received: 10
4 years 3 months ago #247929
by ftree
Replied by ftree on topic EtherCAT driver for a 6 axis robot
This is where my experience and knowlege of the workings of lcnc falls off a cliff. If you're available for contract work let me know. The resulting work would be open source.I don't know if this is practicable in the whole system but my way of implementation would be:
Please Log in or Create an account to join the conversation.
- ftree
- Offline
- Premium Member
-
Less
More
- Posts: 116
- Thank you received: 10
4 years 3 months ago - 4 years 3 months ago #247931
by ftree
Replied by ftree on topic EtherCAT driver for a 6 axis robot
Would you also check for the robot existence on the EtherCAT bus as part of the safety chain?
lcec.0.Meca500.slave-online
lcec.0.Meca500.slave-oper
lcec.0.Meca500.slave-state-op
lcec.0.Meca500.slave-state-preop
lcec.0.Meca500.slave-state-safeop
lcec.0.Meca500.slave-online
lcec.0.Meca500.slave-oper
lcec.0.Meca500.slave-state-op
lcec.0.Meca500.slave-state-preop
lcec.0.Meca500.slave-state-safeop
Last edit: 4 years 3 months ago by ftree.
Please Log in or Create an account to join the conversation.
Time to create page: 0.244 seconds