Thanks a lot Johanness!!!
I was completely unaware of the "Toggle External axis" option.
In your import_gcode example, I now see that the E1 value just grows and grows, so it's as though that value represents the actual length of plastic extruded.
I see how it would be very advantageous to have the robot deal with all the feeds and speeds while one only deals with that single number on PRC. That's actually great. I was not aware of what you meant by "position," but I think that's what it is. At the end of the code, E1's position is at some very large value, so that value is the actual length of plastic extruded.
However, since I don't have Kuka motors right now, that option is a bit off the table.
I feel that my easiest option (at least for my skill set) is to map the speed of E1 to an analog signal because I'm not aware of how the E1 position value would be sent via EtherCAT(I wouldn't know how to parse that on the arduino side, what type of protocol is the position being output in?).
What is easiest on the Arduino side is to use its analog-to-digital converter to control the speed of extrusion. So, an analog signal would be easier to deal with in Arduino for me.
Can you share a bit more on this mapping process? What do you mean with "looking for the according KRL variable for the speed of E1." Would that variable's value be in the sps.sub ??? or is it found somewhere in the output of PRC
I have no idea how to do this mapping, so it looks like I need to read up on setting that up on Work Visual (never used it). Perhaps you can share some resources on how to start learning that?
Many thanks!
Rodrigo
I was completely unaware of the "Toggle External axis" option.
In your import_gcode example, I now see that the E1 value just grows and grows, so it's as though that value represents the actual length of plastic extruded.
I see how it would be very advantageous to have the robot deal with all the feeds and speeds while one only deals with that single number on PRC. That's actually great. I was not aware of what you meant by "position," but I think that's what it is. At the end of the code, E1's position is at some very large value, so that value is the actual length of plastic extruded.
However, since I don't have Kuka motors right now, that option is a bit off the table.
I feel that my easiest option (at least for my skill set) is to map the speed of E1 to an analog signal because I'm not aware of how the E1 position value would be sent via EtherCAT(I wouldn't know how to parse that on the arduino side, what type of protocol is the position being output in?).
What is easiest on the Arduino side is to use its analog-to-digital converter to control the speed of extrusion. So, an analog signal would be easier to deal with in Arduino for me.
Can you share a bit more on this mapping process? What do you mean with "looking for the according KRL variable for the speed of E1." Would that variable's value be in the sps.sub ??? or is it found somewhere in the output of PRC
I have no idea how to do this mapping, so it looks like I need to read up on setting that up on Work Visual (never used it). Perhaps you can share some resources on how to start learning that?
Many thanks!
Rodrigo