4 APPLICABLE FUNCTIONS
4.3 Scale measurement function [G] [WG]
171
4
Related objects
Scale measurement function objects
Check that bit 1 of [Encoder status2 (Obj. 2D35h: 02h)] is on before reading the object.
If the object is read while bit 1 is off, the value of each object will be 0.
For details on the objects, refer to the User's Manual (Object Dictionary).
*1 The counter indicates the cumulative amount of travel distance from 0 (the position at power-on) to the travel direction. The range is
from -2147483648 to 2147483647.
Calculating a scale measurement encoder position
The scale measurement encoder position is calculated as follows.
Scale position = ([Scale ABS counter (Obj. 2D37h)] × [Scale measurement encoder resolution (Obj. 2D38h)]) + [Scale cycle
counter (Obj. 2D36h)]
Index
Sub
Object
Name
Description
2D36h
0
VAR
Scale cycle counter
Position within one-revolution of scale measurement encoder
Rotary encoder: Cycle counter
Linear encoder absolute position type: ABS counter
Linear encoder incremental type: Scale free-run counter
Linear encoder A/B/Z-phase differential output type (incremental type):
Scale free-run counter
Rotary encoder A/B/Z-phase differential output type (incremental type):
Cycle counter
2D37h
0
VAR
Scale ABS counter
Scale ABS counter
Rotary encoder: Multi-revolution ABS counter
Linear encoder absolute position type: Fixed to 0
Linear encoder incremental type: Fixed to 0
Linear encoder A/B/Z-phase differential output type (incremental type):
Fixed to 0
Rotary encoder A/B/Z-phase differential output type (incremental type):
Fixed to 0
2D3Ch
0
VAR
Scale measurement encoder
alarm
Scale encoder alarm data
0: Normal. Correct data is stored in each object.
Other than 0: Abnormal. The previous value is stored in each object.
2D38h
0
VAR
Scale measurement encoder
resolution
Scale encoder resolution
For example, when a rotary encoder with a resolution of 67108864
pulses/rev is connected as a scale encoder, the object value is
67108864.
The value is always 0 except for the rotary type.
2D35h
0
ARRAY
Encoder status
Encoder status display
1
ARRAY
Encoder status1
Encoder status display 1
The encoder status is returned. For a fully closed loop system, the
external encoder status is returned.
Bit 0: The encoder status is returned by the servo amplifier and
confirms whether it is an absolute position detection system. (OFF =
Incremental system, ON = Absolute position detection system)
2
ARRAY
Encoder status2
Encoder status display 2
Scale measurement status display
Bit 0: The encoder status is returned by the servo amplifier and
confirms whether it is an absolute position detection system. (OFF =
Incremental system, ON = Absolute position detection system)
Bit 1: The encoder status is returned by the servo amplifier and
confirms whether the scale measurement function is enabled or
disabled. (OFF = Disabled, ON = Enabled)
Bit 2: The encoder status is returned by the servo amplifier and
confirms whether the currently connected scale measurement encoder
is an absolute position type. (OFF = Incremental type, ON = Absolute
position type)