Mitsubishi Electric CR800 Series Instruction Manual page 146

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

Advertisement

15 Maintenance of robot program
NVLoad(Network vision sensor load)
[Function]
Loads the specified vision program into the vision sensor.
[Format]
NVLoad□#<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]
If M_NVOpen(1)<>1 Then
NVOpen "COM2:" As #1
EndIf
Wait M_NVOpen(1)=1
NVLoad #1,"TEST"
NVPst #1, "","E76","J81","L84",0,10
'Receives the recognition count recognized with the "Test" program from the E76 cell and the recognition
・・・・
:
NVClose #1
'Cuts the line with the vision sensor connected to COM2.
[Explanation]
(1) Loads the specified vision program into the specified vision sensor.
(2) This command moves to the next step at the point in time when the vision program is loaded into the vision
sensor.
(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, the command ends with no processing.
(5) 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.
(6) A program start condition of "Always" and the continue function are not supported.
(7) If an interrupt condition is established while this command is being executed, the interrupt processing is
executed immediately.
(8) If data type for an argument is incorrect, a L4220 (syntax error in input command statement) error is
generated.
(9) If there is an abnormal number of command arguments (too many or too few), L3120 (incorrect argument
count) error occurs.
(10) If the <vision sensor number> is anything other than "1" through "8", L3110 (argument out of range) error
occurs.
(11) If the NVOpen command is not opened with the number specified as the <vision sensor number>, L8620
(abnormal vision sensor number specification) error occurs.
(12) If the <vision program name> exceeds 15 characters, L8621 (abnormal vision program name) error
occurs.
(13) If a <vision program name> uses a character other than "0" – "9", "A" – "Z", "-", or "_" (including lowercase
letters), L8621 (abnormal vision program name) error occurs.
(14) If the program specified in the <vision program name> is not in the vision sensor, L8622 (vision program
does not exist) error occurs.
(15) If the vision sensor is "offline", L8650 (Put online) error occurs, so put the vision sensor "Online".
(16) If the communications line is cut while this command is being executed, an L8610 (abnormal
communications) error occurs and the robot controller side line is closed.
15-134 MELFA-BASIC V or MELFA-BASIC VI instruction
'If vision sensor number 1 log on is not complete
'Connects with the vision sensor connected to COM2.
' Connects with vision sensor number 1 and waits for logon to be completed.
'Loads the "Test".
results from cells J81 through L84, and stores them in P_NvS1().

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr800-rCr800-qCr800-d

Table of Contents