519
« on: May 11, 2018, 04:19:34 PM »
Okay. I just figured out the homing. That wasn't too bad. I just need to add the RC in there so I'm not assuming anything in my code.
I did figure out that the DRO could read the OOB Axis position. I also got the mc.MotorGetPos to work, I was looking at the wrong motor. It returned 20,000 counts for a move of 1 unit, of course this will obviously change when I get the motor calibrated to the tool carousel, but for now, I just did the math to get the position, I will throw that into a register for Mach and the PLC to use. That should work just fine.
I'm going to do some more testing with this and get my PLC and Mach changing the OB Axis position to make sure that it will do what I want. Is this still considered Hobby??? lol