Mitsubishi Electric CR750-Q Instruction Manual page 332

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

4MELFA-BASIC V
C_Com
[Function]
Sets the parameters for the line to be opened by the
munication destination is changed frequently.
* Character string type
* Only for a client with the Ethernet.
[Format]
C_Com (<communication line number>) = "ETH: <server side IP address> [, <port number>]"
[Terminology]
ETH:
<Communication line number>The number of the COM to be specified by the Open command (The line
<Server side IP address>
<Port number>
[Reference Program]
Example when the Ethernet option is installed in an option slot and OPT12 is set in the second element of
the
COMDEV
parameter
1 C_Com(2)="ETH:192.168.0.10,10010"' Set the IP address of the communication destination server cor-
2 *O1
3 Open "COM2:" AS #1
4 If M_Open(1)<>1 Then *O1
5 Print #1, "HELLO"
6 Input #1, C1$
7 Cose #1
8 C_Com(2)="ETH:192.168.0.11,10011"' Set the IP address of the communication destination server cor-
9 *O2
10 Open "COM2:" AS #1
11 If M_Open(1)<>1 Then *O2
12 Print #1, C1$
13 Input #1, C2$
14 Close #1
15 Hlt
16 End
[Explanation]
(1) It is not necessary to use this command when the communication counterpart of the robot controller is
specified with the
will not be changed at all.
(2) Currently, this function is valid only for a client of a data link with the Ethernet option.
(3) Because the communication parameters of the
cute this command before the OPEN instruction.
(4) When the power is turned on, the set values specified by the
used. When this command is executed, the values specified by the parameters of this command are
changed temporarily. They are valid until the power is turned off. When the power is turned on again,
the values revert to the original values set by the parameters.
4-312 Detailed explanation of Robot Status Variable
An identifier to indicate that the target is an Ethernet
type is assigned by the
Server side IP address (May be omitted.)
Port number on the server side (If omitted, the set value of the
parameter is used.)
responding to communication line COM2
' As 192.168.0.10 and the port number as 10010, and then open
the line.
' Loops if unable to connect to the server.
' Sends a character string.
' Receives a character string.
' Closes the line.
responding to communication line COM2
' As 192.168.0.11 and the port number as 10011, and then open
the line.
' Loops if unable to connect to the server.
' Sends a character string.
' Receives a character string.
' Closes the line.
' Halts the program.
' Ends.
NETHSTIP
and
NETPORT
Open (Open)
command. This is used when the com-
COMDEV
parameter.) Specify 1 through 8.
parameters and the specified communication counterpart
Open (Open)
command are set, it is necessary to exe-
NETHSTIP
NETPORT
and
NETPORT
parameters are

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents