Calculating The Current Position In Machine Coordinates - YASKAWA SGD7S-1R9D Product Manual

Table of Contents

Advertisement

Data Format of PAO Signal
As shown below, the message format consists of eight characters: "P," the sign, the 5-digit upper 15-
bit position data, and "CR" (which indicates the end of the message).
P
+ or −
0 to 9
0 to 9
Upper 15 bits
0 to 9
of position data
0 to 9
0 to 9
CR
6.9.6

Calculating the Current Position in Machine Coordinates

With an absolute linear encoder, you must set the position of the origin (i.e., the origin of the
machine coordinate system).
The host controller reads the coordinate from the origin of the encoder coordinate system. The
host controller must record the value of this coordinate.
The method to calculate the coordinate value of the present position from the origin of the
machine coordinate system is given below.
The position data from the absolute linear encoder is signed 36-bit data, but the upper 16 bits
(with sign) and the lower 20 bits are output separately.
For the upper 16-bit data (with sign), the upper bits (16 bits, including the sign) of the current
position after dividing by the setting of Pn281 are output with serial communications according
to the transmission specifications.
For the lower 20-bit data, the lower bits (20 bits) of the current position after dividing by the
setting of Pn281 are output as a pulse train.
Machine coordinate
Value of upper
16-bit data
(with sign)
The current position P
P
= P
- P
M
E
S
×
P
= M
R + P
E
O
×
P
= M
R + P
S
S
Symbol
P
Position data for the current position of the absolute linear encoder
E
M
Upper 16 bits (with sign) of the position data for the current position of the absolute linear encoder
O
P
Lower 20 bits of the position data for the current position of the absolute linear encoder
O
P
Position data of the origin
S
M
Upper 16 bits (with sign) of the position data of the origin
S
P
'
Lower 20 bits of the position data of the origin
S
P
Current position in machine coordinate system
M
R
1048576 (=2
Note: The above formulas also apply in reverse movement mode (Pn000 = n.1).
If you are using a Linear Servomotor, you do not need to reset the absolute linear encoder to
Information
define the origin. (Some absolute linear encoders also allow you to set any position as the origin.)
Origin (reference position)
0
1
0
1
P
S
M
× R
P
'
S
S
in the machine coordinate system is calculated as follows:
M
O
'
S
20
)
6.9.6 Calculating the Current Position in Machine Coordinates
Current position
2
3
2
M
× R
P
O
O
P
E
P
M
Meaning
6.9 Absolute Linear Encoders
4
3
6
6-43

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents