
18-5
(4) Supplementary explanation
Cut, Copy and Paste
The following rules are applied when a sequence command which contains local position variable (P) is cut,
copied and then pasted.
When both programs have a move command of the same teaching point name.
If a CNVSET command which contains a move command of the local position variable is cut or copied together
with the move command, the local position variable of the CNVSET command changes its variable name when it
is pasted in another program. The teaching point name of the move command changes in conjunction with the
variable.
TOOL 1:TOOL1
MOVEL P1 7.5m/min ・・・
CNVSET 1:GR001 = P.X P1
MOVEP P2
:
:
TOOL 1:TOOL1
MOVEP P1 7.5m/min ・・・
MOVEL P2 2.5m/min ・・・
MOVEL P3 0.5m/min ・・・
MOVEL P4 7.5m/min ・・・
CNVSET 1:GR001 = P.X P4
:
:
Prog0001.prg
Prog0002.prg
Copy
Paste
In the above example, “P1” is already used in the new program “Prog0002”, therefore, “P1” in the “Prog0001” changes its
name to “P4” when the command is pasted in the “Prog0002”. The teaching point name of the CNVSET command then
is automatically changed to “P4”.
Other cases
If a CNVSET command which contains a move command of the local position variable is cut or copied without the move
command, the local position variable in the CNVSET command won’t be indicated when it is pasted in another program.
TOOL 1:TOOL1
MOVEL P1 7.5m/min ・・・
CNVSET GR 1:GR001 = P.X P1
MOVEP P2
:
:
TOOL 1:TOOL1
MOVEP P1 7.5m/min ・・・
MOVEL P2 2.5m/min ・・・
MOVEL P3 0.5m/min ・・・
CNVSET GR 1:GR001 = P.X
:
Prog0001.prg
Prog0002.prg
Copy
Paste
The rule is provided not to misapply the “P1” in the “Prog0001” in the “Prog0002” as “P1” in the “Prog0001” and the “P1” in
the “Prog0002” are not the same.