Mitsubishi Electric CR800 Series Instruction Manual page 145

For industrial robot
Hide thumbs Also See for CR800 Series:
Table of Contents

Advertisement

NVClose(Network vision sensor line close)
[Function]
Cuts the line with the specified vision sensor.
[Format]
NVClose□[[#<Vision sensor number>] [,[[#]<Vision sensor number>・・・]]]
[Term]
<Vision sensor number> (Can be omitted)
Specifies a constant from 1 to 8 (the vision sensor number). Indicates the number for the vision sensor
connection to the COM specified with the <COM number>.
When this parameter is omitted, all the lines (vision sensor lines) opened with an NVOpen command are
closed.
Also, up to 8 <vision sensor numbers> can be specified. They are delimited with commas.
Setting range: 1 - 8
[Sample sentence]
If M_NVOpen(1)<>1 Then
NVOpen "COM2:" ASs#1
EneIf
Wait M_NVOpen(1)=1
・・・・・
:
NVClose #1
[Explanation]
(1) Cuts the line with the vision sensor connected with the NVOpen command.
(2) If the <vision sensor number> is omitted, cuts the line with all the vision sensors.
(3) If a line is already cut, execution shifts to the next step.
(4) Because up to seven vision sensors can be connected at the same time, <Vision sensor numbers> are
used in order to identify which vision sensor to close the line for.
(5) If the program is cancelled while this command is being executed, execution continues until processing of
this command is complete.
(6) When this command is used with multi-tasking, in the task using this command, it is necessary to close
only the lines opened by executing an NVOpen command. At this time, use the <Vision sensor number>
specified with the NVOpen command.
(7) A program start condition of "Always" and the continue function are not supported.
(8) If an End command is used, all the lines opened with an NVOpen command or Open command are closed.
However, lines are not closed with an End command in a program called out with a CAllp command.
Lines are also closed by a program reset, so when an End command or a program reset is executed, it is
not necessary to close lines with this command.
(9) The continue function is not supported.
(10) If an interrupt condition is established while this command is being executed, the interrupt processing is
executed after this command is completed.
(11) If the value specified as the <vision sensor number> is anything other than "1" through "8", L3110
(argument out of range) error occurs.
(12) If there are more than eight command arguments, L3120 (incorrect argument count) error occurs.
' When logon has not been completed for vision sensor number 1
' Connects with the vision sensor connected to COM2 and sets its number as
number 1.
'Connects with vision sensor number 1 and waits for logon to be completed.
'Cuts the line with the vision sensor connected to COM2.
MELFA-BASIC V or MELFA-BASIC VI instruction 15-133
15 Maintenance of robot program

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr800-rCr800-qCr800-d

Table of Contents