- 171 -
Chapter 9. Standard Input/ Output Signal
4) Homing return operation
Execute an homing return when the input contact X0.5 becomes‘0’->‘1’. This is an example
of setting the – direction as a homing return direction because the parameter P16(homing
direction) is set as ‘MINUS’
LOADP X0.5
SET M0.0
SET M0.1
LOAD M0.0
AND N0T M50.B Æ M50.B[ORG] ORG mode state bit
OUT M80.B Æ M80.B[ORG] ORG mode command bit
LOAD M0.0
AND M50.B Æ M50.B[ORG] ORG mode state bit
AND NOT M50.C Æ M50.C[ZP1] X axis return completion state bit
OUT M80.D Æ M80.D[A1-] X axis manual feed – direction commanding bit
LOAD M0.1
AND M50.B Æ M50.B[ORG] ORG mode state bit
AND NOT M50.D Æ M50.D[ZP2] Y axis return completion state bit
OUT M80.F Æ M80.F[A2-] Y axis manual feed – direction commanding bit
LOAD M50.C Æ M50.C[ZP1] X axis return completion state bit
OR M80.1 Æ M80.1[ERS] RESET commanding bit
RST M0.0
LOAD M50.D Æ M50.D[ZP2] Y axis return completion state bit
OR M80.1 Æ M80.1[ERS] RESET commanding bit
RST M0.1
M0.0
M80.F
M80.D
M50.B
M80.B
M0.1
M50.C
X0.5
M50.D
X축원점복귀 이송지령
Y축원점복귀 이송지령
X축완료
Y축완료
The above functions can replace by a PLC motion related application command as follows:
LOAD X0.5
ORG
X axis homing return movement commanding