mixing CoE and mailing

More
3 years 1 month ago - 3 years 1 month ago #279806 by bkt
Replied by bkt on topic mixing CoE and mailing
Ok an other solution can be using pyton routines for launch reg_read istance every 500ms so we can update 2 or 3 interesting register whitout using EoE or other complicated stuff like make new one Lcnc Ethercat drive for read SDO  (because that register was object and not pdos entry) .... plus I can read during OP mode i think .... NEW problem, command:

Code:
ethercat download -p1 0x607A -t float


return every time these error on terminal ....

Code:
'download' takes 2 or 3 arguments!


think because bad usages .... how make wrong?

regards
Last edit: 3 years 1 month ago by bkt.

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

More
3 years 1 month ago #279816 by endian
Replied by endian on topic mixing CoE and mailing
Very interesting reading..

I had common problem of reading some PDO but it did not want to add without cyclic communication over ethercat... there is object for startup but no for any source of read only during cyclic operation....

I am currently pinning myselft here 

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

More
3 years 1 month ago #279817 by bkt
Replied by bkt on topic mixing CoE and mailing
I solve .... these is the currect comand (upload instead download) ..
Code:
ethercat upload -p 1 -t string 0x1009 00

for example and obtain manufactorer custom string

regards

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

More
3 years 1 month ago #279818 by bkt
Replied by bkt on topic mixing CoE and mailing
In these case if you would read only at startup (preop) .... see link for read SDOs object .... but personally would check that object sometime ... so prefer send a terminal command like these above and grab value ....
Code:
ethercat upload -p 1 -t string 0x1009 00

No time for develop EoE comunication ... and upload commend can launch during moovement whtout problem ...

regards

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

More
3 years 1 month ago #279924 by endian
Replied by endian on topic mixing CoE and mailing
nice!

but when we should use more slaves as for joint 0 1 2 etc... it will looks like how please? 
Code:
ethercat upload -p 1 -t string 0x1009 00
1 - slave number ?
0x1009 - register ?
00 - is subindex ?

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

More
3 years 1 month ago #279925 by bkt
Replied by bkt on topic mixing CoE and mailing
all right plus "string" is data type .... you can obtain these reply:

0x1010 (or right register container) your register value (because you ask for string)

but in these example:

ethercat upload -p 2 -t in16 0x2646 00

you can obtain a reply like these:

0x2647 8 (an integer value)

for grab value you must use qProcess, obtain a qString and cut 5 character after "x" (because there are a space trought register and value) than convert it on float value or string value based on your request ..... can be 15 row of code c++ or less .... if you use qDragon or other QTinterfaces can be quite easy .... I use a custom qt c++ interfaces ....

p.s. if you insert a wrong data type you obtain an error as reply ... if you insert a wrong register you obtain an error as reply .... so try sometime with terminal command .... and after bouild your own routines ....

regards

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

Time to create page: 0.293 seconds
Powered by Kunena Forum