Set_zero_position – Yaskawa FSP Amplifier FlexWorks User Manual
Page 173

Command Reference
173
SET_ZERO_POSITION
G
ROUP
Home
S
YNTAX
SET_ZERO_POSITION
O
P
. C
ODE
95
M
ODES
Program, Immediate, Sequential
D
ESCRIPTION
Zeroes motor position according to
position - Sets the actual motor position as zero position.
Demand position - Sets the demand position as zero
position (the position error remains).
S
YNTAX
A
RGUMENTS
mode
Specify the mode:
Mode Code
Actual position - Sets the actual
motor position as zero position.
0
Demand position - Sets the
demand position as zero
position (The position error will
remain.)
1
Serial 1 U
E
XAMPLE
LABEL 1
HOME_C 200
GO_D 7800 1000
SET_ZERO_POSITION demand_position
E
XAMPLE
E
XPLANATION
This example shifts the home position (zero position)
from the C pulse location to a different location. After
searching the C pulse with the HOME_C command the
motor moves to position 7800 UU. When the motor is
theoretically on position 7800 UU the scale is changed
and Position_Demand_Value is set to zero.
Position_Actual_Value is Position_Demand_Value plus
Following_Error_actual_Value.
N
OTES
If error 9 (“Wrong motion mode for
SET_ZERO_POSITION command. Set STOP_EX
command before”) occurs, insert a STOP_EX command
before the SET_ZERO_POSITION command.
S
EE
A
LSO
HARD_HOME, HOME_SW, HOME_SW_C, HOME_C