CIA402 out of range?

More
24 Jan 2024 19:35 #291549 by zmrdko
Replied by zmrdko on topic CIA402 out of range?
I was able to solve this issue by changing P3.012 to 0100 - to persist E-gear settings

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

More
24 Jan 2024 20:00 #291550 by TimP
Replied by TimP on topic CIA402 out of range?
do you still have same resolution reported in linuxcnc?
you can also setup gear in sdo

<sdoConfig idx="6093h" subIndx="1"><sdoDataRaw data="00 00 00 00"/></sdoConfig>

data should be set in hex, less significant byte first

so it will be set each time before start
The following user(s) said Thank You: zmrdko

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

More
25 Jan 2024 07:21 - 25 Jan 2024 07:25 #291579 by zmrdko
Replied by zmrdko on topic CIA402 out of range?
Yes, you're right it should be possible to configure E-gear ratio with PDO 6093.
Can you share how do you set up sdo within config?

Also: do you read some PDO's? (for example Digital inputs 60FD). I'm trying to figure out, how to access Digital Input values within linuxcnc.
Last edit: 25 Jan 2024 07:25 by zmrdko.

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

More
25 Jan 2024 08:51 - 25 Jan 2024 08:53 #291583 by TimP
Replied by TimP on topic CIA402 out of range?
there is good example from rodw-au

github.com/rodw-au/linuxcnc-cia402/blob/main/ethercat-conf.xml

yes read of pdo's also covered there, also if it is complex data type (int value split to bits to have designated names)
Last edit: 25 Jan 2024 08:53 by TimP.
The following user(s) said Thank You: zmrdko

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

More
08 Feb 2024 17:32 #292863 by bob8020
Replied by bob8020 on topic CIA402 out of range?
Big thanks for all these practical details - currently configuring LinuxCNC with Delta B3 and EtherCAT.

We'd like to have say 10000 steps/rev and *think* the way to do this is to use e-gear setting.

From the excellent explanation in this threads messages, I think one way would be to load up Windows (sigh), use Delta sw to verify that P1.044 has the correct steps for this motor's absolute encoder, and then set P1.045 to say 10000 or whatever virtual steps/rev we want.

And then the secret sauce (thanks @zmtdko) to set P3.012 to 0100 - to persist E-gear settings.

But this leads to wondering... if the point of setting P3.012 is to make the drive ignore whatever CIA402 driver is sending to drive... maybe just go with the flow and set value for 0x6093 sub 2 to the desired 10000 denominator and let the drive continue to use its default (configured automagically when drive talks over T+ T- to encoder) for numerator?

What seems nice about this is it moves configuration of (four servo drives) from poking at Windows sw to editing with one xml file.

And it leaves P3.012 at default. We load up the drive with settings each time, why not e-gear too?

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

More
19 Feb 2024 23:42 #293809 by zmrdko
Replied by zmrdko on topic CIA402 out of range?

Big thanks for all these practical details - currently configuring LinuxCNC with Delta B3 and EtherCAT.

We'd like to have say 10000 steps/rev and *think* the way to do this is to use e-gear setting.

From the excellent explanation in this threads messages, I think one way would be to load up Windows (sigh), use Delta sw to verify that P1.044 has the correct steps for this motor's absolute encoder, and then set P1.045 to say 10000 or whatever virtual steps/rev we want.

And then the secret sauce (thanks @zmtdko) to set P3.012 to 0100 - to persist E-gear settings.

But this leads to wondering... if the point of setting P3.012 is to make the drive ignore whatever CIA402 driver is sending to drive... maybe just go with the flow and set value for 0x6093 sub 2 to the desired 10000 denominator and let the drive continue to use its default (configured automagically when drive talks over T+ T- to encoder) for numerator?

What seems nice about this is it moves configuration of (four servo drives) from poking at Windows sw to editing with one xml file.

And it leaves P3.012 at default. We load up the drive with settings each time, why not e-gear too?
 

If you keep P3.012 at 0000, you have to set both numerator and denominator to desired values, since the default for P3.012 = 0000 is 1 for both.
have a look here:
github.com/zmrdko/3dworks_ethercat_lcec/...in/ethercat-conf.xml

 
The following user(s) said Thank You: bob8020

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

More
20 Feb 2024 17:34 #293852 by bob8020
Replied by bob8020 on topic CIA402 out of range?
Yes, thanks! That works perfectly, and is one fewer thing we need to enter manually when setting up a bunch of servos. Even with just four, it is easy to miss some little setting so having them in the XML is excellent.

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

Time to create page: 0.105 seconds
Powered by Kunena Forum