SHCOPYMODEL (Statement)


Copy a registered model.


SHCOPYMODEL <copy source model number>,<copy destination model number>


<copy source model number>
Designates the model number to copy (0 to 99).
<copy destination model number>
Designates the new model number (0 to 99).
  • If the copy source number and the copy destination member are the same, an error occurs.
  • If the copy source file is not present or if there is insufficient capacity, copying is not executed.
  • The following data may be obtained with the processing result obtaining function.
    VISSTATUS (n)
    n
    Item
    0
    Execution result 0= Normal, -1= Abnormal
    1
    unknown
    2
    unknown

  • For this instruction, a µVision board (option) is required.
  • During execution of this instruction, do not power off the controller. If you do so, the controller will recognize in the next powering-on sequence that it has not been normally terminated, so it will initialize the vision-related information.



VISSCREEN 1,0,1
VISCLS 0
SHCOPYMODEL 2,0
'Copy model 2 informetion to model 0
VISLOC 10,10
I1 = VISSTATUS(0)
IF I1 = 0 THEN VISPRINT "Copy completed" ELSE VISPRINT "Copy failed"


Top