Maintenance: Re-homing an axis
This system initially had issues with couplers. When a coupler is replaced, the axis must be re-homed to reset the absolute encoders.
The process requires instructing the Yaskawa servo drive to forget its current absolute encoder position. This triggers the servo drive's re-home response. The homing motion direction is already configured, and the home switches are correctly positioned.
Typically, de-reference commands are set up for all axes. Until that is complete, these instructions that will work for any axis.
Identify the instance and motor number that needs to be re-homed.
|
Current list As an example the back dado is Saw Gantry Y (#2.1). That means it is instance #2, and motor 1. |
How to access the current list
|
- Click on the service tab – at the bottom, then the maintenance tab – at the top.
- On the left side of the screen is a column of buttons. The enable button is at the bottom. The next button above that is the CMDS (Commands) button. Click View List.
- A window will open with a list of commands. At the top there is a search bar. Search for Lua

- It should highlight the Run Lua Script. Click the Run Command button at the bottom.
- A new window will open and you need to type in the de-reference command
m.DeReferenceAxis (motor,instance) (opposite of how it is listed above) examples: saw gantry Y: m.DeReferenceAxis (1,2) left clamps: m.DeReferenceAxis (5,0) left dado X: m.DeReferenceAxis (0,1) - Click the Run Lua Code button, and it will give you a completion status
- Click the Compile scripts button
- Close the Lua code window
- Close the Run Commands window

- Switch to the correct instance
- Click the service tab at the bottom and the Maintenance tab at the top
- Click the enable button. You should now have the Homing buttons in the middle of the screen, and the axis to re-home should be alternating red and yellow.
- Click the home button for that axis, then cycle start
The axis should move to the home switch, reset that axis’ machine zero, and the axis letter should change to black.
You are ready to run.

