EtherCAT driver for a 6 axis robot

More
4 years 3 months ago - 4 years 3 months ago #247938 by db1981
Replied by db1981 on topic EtherCAT driver for a 6 axis robot
yes, checking the whole ec-bus is an good thing.

this is a part from out standart safty/error handling comp, this comp works together with the safty-plc in the cabinet.
Code:
ec_slaves_responding_ok = (ec_slaves_responding == ec_slaves); if (!ec_slaves_responding_ok) {   emc_enable_out = 0;   if (data.last_ec_slaves_responding_ok) {     rtapi_print_msg(RTAPI_MSG_ERR, "EtherCAT: Not all %d slaves responding!\n",    ec_slaves); }} data.last_ec_slaves_responding_ok = ec_slaves_responding_ok;  if (!ec_link_up) {   emc_enable_out = 0;   if (data.last_ec_link_up) {     rtapi_print_msg(RTAPI_MSG_ERR, "EtherCAT: Link down!\n"); }} data.last_ec_link_up = ec_link_up;  if (!ec_all_op) {   emc_enable_out = 0;   if (data.last_ec_all_op)   {rtapi_print_msg(RTAPI_MSG_ERR, "EtherCAT: Not all slaves in OP mode!\n"); }} data.last_ec_all_op = ec_all_op;
Last edit: 4 years 3 months ago by db1981. Reason: hating windows formatting

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

More
4 years 3 months ago #247940 by db1981
Replied by db1981 on topic EtherCAT driver for a 6 axis robot
Code:
[quote]I don't know if this is practicable in the whole system but my way of implementation would be:[/quote] 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.

with whole system, i am thinking about the safty regulations, hardware design of the complete machine.

If you're available for contract work let me know 


this is my daily business, which country you are living?

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

More
4 years 3 months ago #247956 by ftree
Replied by ftree on topic EtherCAT driver for a 6 axis robot
Nottingham, UK.

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

More
4 years 3 months ago - 4 years 3 months ago #247997 by ftree
Replied by ftree on topic EtherCAT driver for a 6 axis robot
In the meantime I've tidied the folder and now attempting to get the vismach starting, at least. I have two versions of DH/DH(modified) to try for the kins. Working on the best way to orientate and save the obj links too and set up correct WRF/HOME placement.

github.com/djsftree/linuxcnc-ethercat/tree/master/wip-meca500
Last edit: 4 years 3 months ago by ftree.

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

More
4 years 3 months ago #248021 by andypugh
Replied by andypugh on topic EtherCAT driver for a 6 axis robot
To do a timed sequence in a HAL component, you use a state machine.
Code:
{normal .comp headers, as you have} pin out signed state; pin out float timer; ... FUNCTION(_){ ... switch (state){ case 0: // waiting if (! enable) return; output_1 = 1; timer = 1000; state = 1; break; case 1: timer -= fperiod; if (timer > 0) return; output_2 = 1; timer = 1500; state = 2; break; case 2: timer -= fperiod; if (timer > 0) return; output_3 = 1; timer = 500; state = 3; . break; case 3: ...
The following user(s) said Thank You: tommylight

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

More
4 years 3 months ago - 4 years 3 months ago #248028 by ftree
Replied by ftree on topic EtherCAT driver for a 6 axis robot
Thanks Andy. This is very much out of comfort zone. If anyone can help on a contract basis for the underlying code work please do let me know.

I have managed to assemble the obj models within vismach. I'm now figuring out the correct XYZ orientation to export obj files out as as well as the correct translations.

github.com/djsftree/linuxcnc-ethercat/bl...eca500/meca500gui.py
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.222 seconds
Powered by Kunena Forum