![Mitsubishi MELFA 4D-2CG5100-PKG-E Скачать руководство пользователя страница 110](http://html1.mh-extra.com/html/mitsubishi/melfa-4d-2cg5100-pkg-e/melfa-4d-2cg5100-pkg-e_instruction-manual_1808016110.webp)
9
Detailed Explanation of Functions
9-99 Vision Sensor Dedicated Commands and Status Variables
(5) NVRUN (network vision sensor run)
[Function]
Starts the specified vision program.
[Format]
NVRUN
□
#<Vision sensor number>,"<Vision program (job) name>"
[Term]
<Vision sensor number>
(Can not be omitted)
This specifies the number of the vision sensor to control.
Setting range: 1 - 8
<Vision program (job) name>
(Can not be omitted)
Specifies the name of the vision program to start.
The vision program extension (.job) can be omitted.
The only characters that can be used are "0" - "9", "A" - "Z", "a" - "z", "-", and "_".
[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.
120 ENDIF
130 WAIT M_NVOPEN(1)=1 ' Connects with vision sensor number 1 and waits for logon to be
completed.
140 NVRUN #1,”TEST” 'Starts the "Test" program.
150 NVIN #1, ”TEST”,”E76”,”J81”,”L84”,0,10
'Receives the recognition count recognized with the "Test" program from the E76 cell and the
recognition results from cells J81 through L84, and stores this in P_NVS1 (30).
160
・・・・
300 NVCLOSE #1 'Cuts the line with the vision sensor connected to COM2.
[Explanation]
1) Starts the specified vision program in the specified vision sensor.
2) This command moves to the next step after it has verified that the vision sensor has received the image
capture and image processing command.
3) If the program is cancelled while this command is being executed, it stops immediately.
4) If the specified <vision program name> is already loaded, only image capture and image processing are
executed. (The vision program is not loaded.)
)
5) For receiving data from the vision sensor, use the NVIN command.
6) When this command is used with multi-tasking, it is necessary to execute the NVOPEN command in the
task using this command. Also, 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) When multi-mechanism mode is used and data for multiple robots is required, make a vision program
that creates data for multiple robots with one image capture request.
Example
9) Up to three robots can control the same vision sensor at the same time, but this command can not be
used by more than one robot at the same time. Use this command on any one of the robots.
10) If an interrupt condition is established while this command is being executed, the interrupt processing is
executed immediately.