Mitsubishi Electric CR800 Series Instruction Manual page 181

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

Advertisement

M_NvOpen
[Function]
Indicates the vision sensor line connection status.
[Format]
<Numeric value> = M_NvOpen(<Vision sensor number>)
[Terminology]
<Vision sensor number>
This specifies the number of the vision sensor to control.
Setting range: 1 - 8
<Numeric value>
Indicates the vision sensor line connection status.
-1 : Not connected
0 : Line connecting (Logon not complete)
1 : Logon complete
[Sample sentence]
If M_NVOpen(1)<>1 Then ' If vision sensor number 1 is not connected
NVOpen "COM2:" As #1
number 1.
EndIf
Wait M_NVOpen(1)=1
・・・・・
:
NVClose #1
[Explanation]
(1) Indicates the status of a line connected with a network vision sensor with an NVOpen command when the
line is opened.
(2) The initial value is "-1". At the point in time that the NVOpen command is executed and the line is
connected, the value becomes "0" (line connecting). At the point in time that the network vision sensor
logon is completed, the value becomes "1" (logon complete).
(3) This variable strongly resembles the status of status variable M_OPEN, but whereas M_Open becomes
"1" when the connection is verified, M_NVOpen becomes "1" when the vision sensor logon is complete.
(4) If the type of data specified as an array element is incorrect, L4220 (syntax error in input command
statement) error occurs.
(5) If there is an abnormal number of array elements (too many or too few), L3810 (incorrect argument type)
error occurs.
(6) If an array element other than "1" through "8" is specified, L4370 (array element mistake) error occurs.
' Connects with the vision sensor connected to COM2 and sets its number as
' Connects with vision sensor number 1 and waits for the logon state.
'Cuts the line with the vision sensor connected to COM2.
MELFA-BASIC V or MELFA-BASIC VI instruction 15-169
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