Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
7 - 48
7 AUXILIARY AND APPLIED FUNCTIONS
7.3.16 Execution of home position return
The home position return is executed using the CHGA instruction.
[Control details]
(1) Home position return is executed by the home position return method specified
with the home position return data (Refer to Section 7.3.1).
Refer to the following sections for details of the home position return methods :
• Proximity dog type 1................... Section 7.3.2
• Proximity dog type 2................... Section 7.3.3
• Count type 1............................... Section 7.3.4
• Count type 2............................... Section 7.3.5
• Count type 3............................... Section 7.3.6
• Data set type 1............................ Section 7.3.7
• Data set type 2............................ Section 7.3.8
• Dog cradle type........................... Section 7.3.9
• Stopper type 1............................ Section 7.3.10
• Stopper type 2............................ Section 7.3.11
• Limit switch combined type........ Section 7.3.12
[Program]
A program which executes a home position return using the CHGA instruction is
shown below.
• Program example
SP.CHGA
K0 M0 D0
H3E1
RST M100
M100
To self CPU
high speed
interrupt accept
flag from CPU
U3E1\
G48.0
"J4"
M0
Normal complete program
M1
Abnormal complete program
M1
Start accept flag
of the axis No.4
(CPU No.2)
U3E1
\G516.0
Program which execute the home position return of the axis No.4 of the Motion CPU
(CPU No.2) from PLC CPU(CPU No.1).
[Cautions]
If the home position is not within the in-position range of servo parameter, it does not
mean having reached the home position data and the home position return does not
end in the proximity dog type, count type, data set type 1, dog cradle type, or limit
switch combined type
home position return. In this case, adjusts the in-position range of servo parameter or
position control gain.