Mitsubishi Electric CR800 Series Instruction Manual page 143

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

Advertisement

NVOpen(Network vision sensor line open)
[Function]
Connects with the specified vision sensor and logs on to that vision sensor.
[Format]
NVOpen□"<COM number>"□As□#<Vision Sensor number>
[Term]
<Com number> (Can not be omitted):
Specify the communications line number in the same way as for the Open command.
"COM1:" can not be specified by it is monopolized by the operation panel front RS-232C.
Setting range: "COM2:" – "COM8:"
<Vision sensor number> (Can not 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>.
Be careful. This number is shared with the <file number> of the Open command.
Setting range: 1 – 8
[Sample sentence]
If M_NVOpen(1)<>1 Then 'If vision sensor number 1 log on is not complete
NVOpen "COM2:" As#1 ' Connects with the vision sensor connected to COM2 and sets its number as
ENDIf
Wait M_NVOpen(1)=1
[Explanation]
(1) Connects with the vision sensor connected to the line specified with the <COM number> and logs on to that
vision sensor.
(2) It is possible to connect to a maximum of 7 vision sensors at the same time. <Vision sensor numbers> are
used in order to identify which vision sensor is being communicated with.
(3) When used together with the Open command, the Open command <COM number> and <File number>
and the <COM number> and <Vision sensor number> of this command are shared, so use numbers other
than those specified with the Open command <COM number> and <File number>.
Example: Normal example
1 Open "COM1:" As #1 1 Open "COM2:" As #1
2 NVOpen "COM2:" As #2 2 NVOpen "COM2:" As #2 => <COM number> used
3 NVOpen "COM3:" As #3 3 NVOpen "COM3:" Ass#1 => <Vision sensor number>
It is not possible to open more than one line in a configuration with one robot controller and one vision
sensor. If the same IP address is set as when the [NETHSTIP] parameter was set, an "Ethernet parameter
NETHSTIP setting" error occurs.
(4) Logging on to the vision sensor requires the "User name" and "Password". It is necessary to set a user
name for which full access is set in the vision sensor and the password in the robot controller [NVUSER]
and [NVPSWD] parameters.
The user name and password can each be any combination of up to 15 numbers (0-9) and letters (A-Z).
(T/B only supports uppercase letters, so when using a new user, set the password set in the vision
sensor with uppercase letters.)
The user name with full access rights when the network vision sensor is purchased is "admin". The
password is "". Therefore, the default values for the [NVUSER] and [NVPSWD] parameters are [NVUSER]
= "admin" and [NVPSWD] = "".
When the "admin" password is changed with MELFA-Vision or a new user is registered, change the
[NVUSER] and [NVPSWD] parameters. When such a change is made, when the content of the [NVPSWD]
parameter is displayed, "****" is displayed. If the vision sensor side password is changed, open the
[NVPSWD] parameter and directly change the displayed "****" value. After the making the change, reset
the robot controller power.
[Caution]
When multiple vision sensors are connected to one robot controller, set the same user name and password
for all of them.
(5) The state of communications with the network vision sensor when this command is executed can be
checked with M_NVOpen. For details, see the explanation of M_NVOpen.
number 1.
' Connects with vision sensor number 1 and waits for logon to be completed.
Error example
MELFA-BASIC V or MELFA-BASIC VI instruction 15-131
15 Maintenance of robot program
Used

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr800-rCr800-qCr800-d

Table of Contents