15 Maintenance of robot program
MELFA-BASIC V or MELFA-BASIC VI instruction 15-169
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
' Connects with the vision sensor connected to COM2 and sets it
s number as
number 1.
EndIf
Wait M_NVOpen(1)=1 ' Connects with vision sensor number 1 and waits for the logon state.
・・・・・
:
NVClose #1 'Cuts the line with the vision sensor connected to COM2.
[Explanation]
(1)
Indicates the status of a li
ne 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" w
hen 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.
Содержание CR800 Series
Страница 2: ......
Страница 12: ......
Страница 29: ...3 Specification Q173DPX manual pulser input unit specification 3 17 3 Specification of hardware 7 1ms ...
Страница 202: ...18 Appendix 18 190 Calibration sheet ...
Страница 203: ......
Страница 204: ...Apr 2020 MEE Printed in Japan on recycled paper Specifications are subject to change without notice ...