5.2 Absolute Encoders
5.2.6 Position Management Method for Each Machine Operation Type
5-31
5
Machine-Specic Motion Control
• Saving in M Registers from a Ladder Program
This method saves the value of the zero point position offset in the machine coordinate system
in M registers when the zero point is set. When the power supply for the MP3000 is turned ON
again, the value of the M registers is stored in the OL
48 setting parameter (Zero Point
Position Offset in Machine Coordinate System).
In a ladder program, program instructions that automatically execute the following sequence.
Programming Examples
The following diagram shows an example of the ladder programming to use to store the offset-
ting of axis 1 of circuit number 1.
In the ladder program for an actual application, change the register address for each axis.
The ladder programming that is shown here is used to perform the following processing.
• After the origin is set, the program subtracts the value of the IL
10 monitor parameter
(Machine Coordinate System Calculated Position (CPOS)) from the OL
48 setting param-
eter (Zero Point Position Offset in Machine Coordinate System), and stores that value in
OL
48. This value is also saved in M registers at the same time.
• After the origin is set, the value that is saved in the M registers is stored in OL
48.
Infinite-length Operation
Infinite-length axis positioning automatically resets the machine position, the program position
(absolute value in the program coordinate system), and the current position at regular intervals
according to the value set in fixed parameter No. 10 (Infinite-length Axis Reset Position (POS-
MAX)). With this function, the system can operate the axis as an infinite-length axis that per-
forms repeated positioning in the same direction.
This concept is shown below.
Save the value of OL48 (Zero Point Position Offset in Machine Coordinate System) to the M
registers only when the value of OL
48 is updated, such as when the origin is set. Process-
ing that constantly saves the value of OL
48 to the M registers may cause position varia-
tions.
Signal that turns ON only when setting the machine coordinate sys-
tem origin (The diagram below shows an example of external signal.
The register address here has no special meaning.)
Execute this every scan in a high-speed drawing.