Modbus input for absolute encoder position?
29 Oct 2017 04:24 #100964
by Lcvette
Modbus input for absolute encoder position? was created by Lcvette
Hey guys I'm preparing to update some drives and have decided to go with position control and the motors will have 20bit absolute encoders. The drives are capable of popping the absolute encoder position of the motors which it started can be used to send to the controller via modbus so that the controller can know the machine position at startup.
My question is to discover if this is something Linuxcnc can take advantage of? I have a 6i25, 7i76, and 7i77 to work with. Any thoughts?
Thanks!!
Chris
My question is to discover if this is something Linuxcnc can take advantage of? I have a 6i25, 7i76, and 7i77 to work with. Any thoughts?
Thanks!!
Chris
Please Log in or Create an account to join the conversation.
29 Oct 2017 12:51 #100971
by PCW
Replied by PCW on topic Modbus input for absolute encoder position?
20 bit absolute encoders are typically not multiturn encoders so the absolute position is
not directly useful to LinuxCNC, If the drives have a simulated encoder interface with index
for tge controller, that will allow homing to index.
not directly useful to LinuxCNC, If the drives have a simulated encoder interface with index
for tge controller, that will allow homing to index.
Please Log in or Create an account to join the conversation.
29 Oct 2017 17:06 #100975
by Lcvette
Replied by Lcvette on topic Modbus input for absolute encoder position?
Here is the except from the drive manual. Unfortunately I don't understand it all to well..lol.
"11.3 Absolute encoders are used
11.3.1 Functional description
Using the servo motor with absolute encoders, the absolute value detection system can be built from the host device. With the absolute value detection system, it is not necessary to perform the home return operation each time the power is turned on. This function is based on MODBUS communication to read the absolute encoder number and position data, the upper device for processing control to achieve absolute encoder-related functions."
I also saw some blurbs in the manual about multi turn but I wasn't sure what it meant.
The manual file size is too late to attach, PDF format.
Chris
"11.3 Absolute encoders are used
11.3.1 Functional description
Using the servo motor with absolute encoders, the absolute value detection system can be built from the host device. With the absolute value detection system, it is not necessary to perform the home return operation each time the power is turned on. This function is based on MODBUS communication to read the absolute encoder number and position data, the upper device for processing control to achieve absolute encoder-related functions."
I also saw some blurbs in the manual about multi turn but I wasn't sure what it meant.
The manual file size is too late to attach, PDF format.
Chris
Please Log in or Create an account to join the conversation.
29 Oct 2017 18:43 #100979
by PCW
Replied by PCW on topic Modbus input for absolute encoder position?
OK if the drive manual says it can avoid homing than it must have multiturn absolute encoders
I do suspect it would be a project to implement absolute encoder operation with non-reatime modbus initilaization
of position and then switching to quadrature for real time position feedback
Do the drives support any real time absolute position interfaces ( SSI, BISS etc )?
I do suspect it would be a project to implement absolute encoder operation with non-reatime modbus initilaization
of position and then switching to quadrature for real time position feedback
Do the drives support any real time absolute position interfaces ( SSI, BISS etc )?
Please Log in or Create an account to join the conversation.
29 Oct 2017 19:14 #100981
by Lcvette
Replied by Lcvette on topic Modbus input for absolute encoder position?
That is above my pay grade...lol. I shot you the manual via email. My plan was to use position control with the loop closed at the drive not linuxcnc. I was hopeful that with modbus the initial position could be sent for each servo and linuxcnc recognize the position to reconcile machine reference. Granted I'm very new to modbus and linuxcnc, so I'm just poking around trying to gather some knowledge to work with..
Chris
Chris
Please Log in or Create an account to join the conversation.
31 Oct 2017 13:16 #101055
by andypugh
I don't think it would be that bad, actually.
1) A user-space Python module is loaded at startup, this pulls the data out of ttyUSB0 (or wherever the Modbus dongle ends up)
2) The three axis absolute positions are made available on HAL pins and added to the encoder module positions using a realtime sum2 module per axis.
3) The INI file specifies HOME_ABSOLUTE_ENCODER = 2 (New feature, 2.8 only) linuxcnc.org/docs/devel/html/config/ini-...t__lt_num_gt_section
I have a vaguely similar system on my lathe (with single-turn absolute resolvers) where the axis positions are saved to file on shutdown and then used to derive a full-turns count added to the resolver feedback.
Replied by andypugh on topic Modbus input for absolute encoder position?
OK if the drive manual says it can avoid homing than it must have multiturn absolute encoders
I do suspect it would be a project to implement absolute encoder operation with non-reatime modbus initilaization
of position and then switching to quadrature for real time position feedback
I don't think it would be that bad, actually.
1) A user-space Python module is loaded at startup, this pulls the data out of ttyUSB0 (or wherever the Modbus dongle ends up)
2) The three axis absolute positions are made available on HAL pins and added to the encoder module positions using a realtime sum2 module per axis.
3) The INI file specifies HOME_ABSOLUTE_ENCODER = 2 (New feature, 2.8 only) linuxcnc.org/docs/devel/html/config/ini-...t__lt_num_gt_section
I have a vaguely similar system on my lathe (with single-turn absolute resolvers) where the axis positions are saved to file on shutdown and then used to derive a full-turns count added to the resolver feedback.
Please Log in or Create an account to join the conversation.
31 Oct 2017 14:23 #101064
by Lcvette
Replied by Lcvette on topic Modbus input for absolute encoder position?
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
Chris
Please Log in or Create an account to join the conversation.
31 Oct 2017 18:39 #101080
by andypugh
Replied by andypugh on topic Modbus input for absolute encoder position?
I 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:
www.ebay.co.uk/itm/USB-to-RS485-TTL-Seri...3:g:Ok0AAOSwzIVZcJYq
There are lots on there. But get one with 3 terminals so you can connect GND.
linuxcnc.org/docs/devel/html/drivers/mb2hal.html
For the hardware interface, something like this:
www.ebay.co.uk/itm/USB-to-RS485-TTL-Seri...3:g:Ok0AAOSwzIVZcJYq
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
- Offline
- User is blocked
Less
More
- Posts: 89
- Thank you received: 5
10 Nov 2017 12:03 - 10 Nov 2017 12:16 #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
Hardware-interface is:SEW Eurodrive DFE33B
download.sew-eurodrive.com/download/pdf/16725611.pdf
Last edit: 10 Nov 2017 12:16 by Weiler810T.
Please Log in or Create an account to join the conversation.
10 Nov 2017 14:22 #101604
by andypugh
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/
Replied by andypugh on topic Modbus input for absolute encoder position?
.......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.
Time to create page: 0.151 seconds