9
Detailed Explanation of Functions
Vision Sensor Dedicated Commands and Status Variables
9-88
(1) 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]
100 IF M_NVOPEN(1)<>1 THEN 'If vision sensor number 1 log on is not complete
110 NVOPEN “COM2:” AS #1 ' Connects with the vision sensor connected to COM2 and sets its
number as number 1.
120 ENDIF
130 WAIT M_NVOPEN(1)=1 ' Connects with vision sensor number 1 and waits for logon to be
completed.
[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
Error example
10 OPEN “COM1:” AS #1
10 OPEN “COM2:” AS #1
20 NVOPEN “COM2:” AS #2
20 NVOPEN “COM2:” AS #2
⇒
<COM number> used
30 NVOPEN “COM3:” AS #3
30 NVOPEN “COM3:” AS #1
⇒
<Vision sensor
number>
Used
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