Modbus input for absolute encoder position?

More
9 years 1 day ago #101064 by Lcvette
Andy that is interesting! I certainly wish I had you and PCW's knowledge level on these things...lol. I need to find a good starting point to start learning. Any recommendations? I know literally nothing in the programming side.. and not sure what would be best to begin learning.... Baby step method..

Chris

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

More
9 years 1 day ago #101080 by andypugh
No eBay APP ID and/or Cert ID defined in Kunena configurationI think that the first thing to try would be mb2hal to at least see if you can get the data from the drives.

linuxcnc.org/docs/devel/html/drivers/mb2hal.html

For the hardware interface, something like this:


There are lots on there. But get one with 3 terminals so you can connect GND.

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

  • Weiler810T
  • New Member
  • New Member
More
8 years 11 months ago - 8 years 11 months ago #101598 by Weiler810T
Replied by Weiler810T on topic Modbus input for absolute encoder position?
.......realtime sum2 module ? what's that? go too Heidenhain Endat Encoders ?
Hardware-interface is:SEW Eurodrive DFE33B
download.sew-eurodrive.com/download/pdf/16725611.pdf
Last edit: 8 years 11 months ago by Weiler810T.

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

More
8 years 11 months ago #101604 by andypugh

Weiler810T wrote: .......realtime sum2 module ? what's that?


linuxcnc.org/docs/2.7/html/man/man9/sum2.9.html

It's one of many HAL modules, all listed here under "Realtime components and kernel modules"
linuxcnc.org/docs/2.7/html/

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

More
6 years 10 months ago - 6 years 10 months ago #151929 by 0x2102
Hello,

I recently purchased servo drives with multiturn / absolute encoders. I am able to read the required registers via MB2HAL.

Multiturn Count: 0 - 65536
Pulses per Turn: 0 - 65536

I was wondering if anybody was able to get this to work in LCNC as PCW/andypugh described? ModBus absolute position read at startup and then incremental encoders for realtime feedback.

Regards,
Markus
Last edit: 6 years 10 months ago by 0x2102.

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

More
6 years 10 months ago #151975 by andypugh

0x2102 wrote: Multiturn Count: 0 - 65536
Pulses per Turn: 0 - 65536

I was wondering if anybody was able to get this to work in LCNC as PCW/andypugh described? ModBus absolute position read at startup and then incremental encoders for realtime feedback.


I think it might be simpler than you think. You should be able to just add the numbers together in HAL and use directly.

Note that the sum2 HAL component has separate gains for the two inputs, so you can scale one for distance-per-turn and the other for distance-per-pulse.
You might need to convert from signed integer (S32) to Floating point, but that, plus specifying absolute encoder homing should be all that you need.
(This assumes you are reading the Modbus in a realtime thread, of course)

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

Time to create page: 0.098 seconds
Powered by Kunena Forum