Yaskawa MP2000 Series: Built-in SVB or SVB-01 Motion Module User Manual
Page 348

9.3 Absolute Position Detection for Finite Length Axes
9.3.2 Setting the Zero Point for a Finite Length Axis
9-11
Absolute Position Detection
Method 2: Saving in an M Register with a Ladder Program
Saves the value of the zero point offset for the machine coordinate system when the zero point is set in an M register
backed up by a battery. When the power to the Machine controller is turned ON, saves the value of the M register in the
Zero Point Position in the Machine Coordinate System Offset.
Create a ladder program that automatically executes the following sequence.
Program Example
The following diagram shows an example of a ladder program used to store the offset value of axis 1 of line number 1.
In a ladder program for an actual application, select a register with a different address for each axis.
The ladder program shown here is used to carry out the following processing.
• Subtracts the Calculated Position in Machine Coordinate System (CPOS) (IL
10) from the Zero Point Posi-
tion in Machine Coordinate System Offset (OL
48) and saves the result in OL
48 after setting the zero
point. This value is also saved in an M register at the same time.
• Saves the offset value saved in the M register and in OL
48 after setting the zero point position.
Signal that turns ON only when setting the Machine
Coordinate System Zero Point
(The diagram below shows an example of external signal. The
register number mentioned here has no meaning.)
Execute every scan in high-speed drawing