by spumco » Wed May 01, 2019 9:03 pm
Possible update to the homing situation for anyone considering Clearpath servos.
I'm final stages of an industrial automation build and we're using Clearpath MCPV servos and Pulse Burst positioning mode, commanded by a PLC. I was struggling with some homing and positioning sequencing & E-stop situations when I stumbled across the "Manual Hard Stop Homing" feature in the user manual. While this feature will seriously solve some of my issues, it occurred to me that we discussed Clearpath homing and UCCNC last year.
I think that this homing mode may make it easier to integrate Clearpaths with UCCNC (or other systems). I'm sure the user manual and Teknic folks can explain it better, but I think this mode works as follows:
Manual hard stop homing set in servo
1. Servo is powered, ENA not asserted. No movement.
2. ENA asserted, servo place in 'homing ready' state. Still no movement, unlike Automatic Homing.
3. Move toward hard stop home position is commanded. Move must be long enough to reach hard stop.
4. Servo moves at internally programmed speed to hard stop.
5. Hard stop hit, torque folds back, and the servo stops, registers the encoder position as home, then asserts the HLFB output.
6. Servo will move off the stop (or not) depending on Home Offset programmed in servo.
Assuming one could live without the HLFB output being used for a servo fault condition, the HLFB could be programmed to assert an ASG (move complete, on position) output. This could be read by UCCNC as a 'homed' state during a homing macro sequence for use by other features (tool change position, soft limit calcs, etc.).
It also means a dual-servo gantry could be homed properly. One servo is enabled, the other is not so it freewheels. First servo is commanded to home and the homing offset is set to a very small amount - it drags the other side of the gantry (or whatever) along. Once that is complete the HLFB-ASG output signals UCCNC macro to home the other servo. That one hits its hard stop and backs off the same amount.
Result - both sides homed, squared, and UCCNC is aware via the HLFB signal that everything is sorted out without the servos fighting each other a bit during the homing routine.
Limitations appear to be that it's only available on MCPV and SD models, in pulse burst and S&D modes. Also you lose the fault output if you want any move complete info for UCCNC to read. And I wouldn't want to drag a big, floppy gantry all the way down the table with one servo very often... But if it's parked near the stops as part of the shutdown routine I think most machines would be fine.
This application for Clearpaths and UCCNC doesn't have anything to do with my current project but i figured I'd throw this out there for consideration. Have a read of the manual and maybe some Clearpath owners will be able to make use of it.
-Ralph