Hs (handle switch), Configuration – Yaskawa SMC–4000 User Manual
Page 130
![background image](https://www.manualsdir.com/files/819559/content/doc130.png)
120
SMC–4000 User Manual
HS (Handle Switch)
[Configuration]
DESCRIPTION:
The HS command is used to switch the handle assignments between two handles. Handles are assigned
explicitly with the
command, or automatically if a remote device initiates the
connection. Should those assignments need modifications, the HS command allows the handles to be
reassigned. This is very useful if using the
,
commands, which expect a certain device to be present on a specific handle.
ARGUMENTS: HS a=b
where
a = the first handle of the switch (A - H)
b = the second handle of the switch (A - H)
USAGE:
RELATED COMMANDS:
EXAMPLES:
This example demonstrates a master controller, M2, searching for other controllers on each handle and
forcing them to communicate at a specific handle. This is necessary when using the
commands, because they reference specific
handles.
The Jump condition logic below ((_IHA0+4)<>_IA)|(_IHA2<>2) is basically running the
command on the given line if the IP address is not equal to the controller own IP address + 4 and if
the connection type is not TCP/IP.
MG "M2 SEARCHING FOR M1 AND M3"
#FIND_M1
JP#FIND_M1+2,((_IHA0+4)<>_IA)|(_IHA2<>2); MG"M1 ALREADY ON A"; JP #FIND_M3
JP#FIND_M1+3,((_IHB0+4)<>_IA)|(_IHB2<>2); HSB=A; MG"M1 FROM B TO A"; JP #FIND_M3
JP#FIND_M1+4,((_IHC0+4)<>_IA)|(_IHC2<>2); HSC=A; MG"M1 FROM C TO A"; JP #FIND_M3
JP#FIND_M1+5,((_IHD0+4)<>_IA)|(_IHD2<>2); HSD=A; MG"M1 FROM D TO A"; JP #FIND_M3
JP#FIND_M1+6,((_IHE0+4)<>_IA)|(_IHE2<>2); HSE=A; MG"M1 FROM E TO A"; JP #FIND_M3
JP#FIND_M1+7,((_IHF0+4)<>_IA)|(_IHF2<>2); HSF=A; MG"M1 FROM F TO A"; JP #FIND_M3
JP#FIND_M1+8,((_IHG0+4)<>_IA)|(_IHG2<>2); HSG=A; MG"M1 FROM G TO A"; JP #FIND_M3
JP#F_M1_DN,((_IHH0+4)<>_IA)|(_IHH2=0); HSH=A; MG"M1 FROM H TO A"; JP #FIND_M3
#F_M1_DN; MG"CAN'T FIND M1!"; AB
While Moving
Yes
Default Value
n/a
In a Program
Yes
Default Format
n/a
Command Line
Yes
Can be Interrogated
No
Used as an Operand
No
HSC=D
Connection for handle C is assigned to handle D. Connection for
handle D is assigned to handle C.