Mitsubishi MELFA CR1D Instruction Manual page 300

Table of Contents

Advertisement

4MELFA-BASIC IV
M_Open
[Function]
RetReturns the status indicating whether or not a file is opened.
Returns the status of other end of the RS-232C cable.
[Format]
Example)<Numerical variable>=M_Open [<File number>]
[Terminology]
<Numerical variable>
<File number>
[Reference Program]
1 Open "COM2:" AS #1
2 If M_Open(1)<>1 Then GoTo 110
[Explanation]
(1) This is a read only variable.
(2) The return value differ corresponding to the file type specified by Open command as follows.
Kind of files
File
Communication line
RS-232C
*Refer to separate manual "Ethernet Interface INSTRUCTION MANUAL" when using the ethernet.
[Related instructions]
Open (Open)
[Related parameter]
COMDEV
4-287 Detailed explanation of Robot Status Variable
Specify the numerical variable to substitute.
Specify the file number 1-8 by constant value of communication line opened by
Open command. The default value is 1. If 9 or more are specified, the error will
occur when executing.
Meaning
Returns the status indicating whether or not a file is
opened.
Returns 1 until the Close instruction, the End instruc-
tion or End in a program is executed after executing
the Open instruction.
*Returns the status of other end of the RS-232C
cable.
Returns the status of the CTS signal input as is.
(This can be used only when the RTS signal of other
end is enabled using the Mitsubishi genuine cable
specification.)
' Open the communication line COM2 as the file number 1.
' Wait until the file number 1 opens.
1: Already opened
-1: Undefined file number (not
opened)
1: Already connected (CTS signal is
ON)
0: Unconnected (CTS signal is OFF)
-1: Undefined file number (not
opened)
Value

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents