![Mitsubishi Electric CR750 Series Instruction Manual Download Page 332](http://html.mh-extra.com/html/mitsubishi-electric/cr750-series/cr750-series_instruction-manual_238840332.webp)
4-312
Detailed explanation of Robot Status Variable
C_Com
[Function]
Sets the parameters for the line to be opened by the
command. This is used when the com-
munication destination is changed frequently.
* Character string type
* Only for a client with the Ethernet.
[Format]
[Terminology]
ETH:
An identifier to indicate that the target is an Ethernet
<Communication line number>The number of the COM to be specified by the Open command (The line
type is assigned by the
parameter.) Specify 1 through 8.
<Server side IP address>
Server side IP address (May be omitted.)
<Port number>
Port number on the server side (If omitted, the set value of the
parameter is used.)
[Reference Program]
Example when the Ethernet option is installed in an option slot and OPT12 is set in the second element of
the
parameter
1 C_Com(2)="ETH:192.168.0.10,10010"' Set the IP address of the communication destination server cor-
responding to communication line COM2
2 *O1
3 Open "COM2:" AS #1
' As 192.168.0.10 and the port number as 10010, and then open
the line.
4 If M_Open(1)<>1 Then *O1
’ Loops if unable to connect to the server.
5 Print #1, "HELLO"
’ Sends a character string.
6 Input #1, C1$
’ Receives a character string.
7 Cose #1
’ Closes the line.
8 C_Com(2)="ETH:192.168.0.11,10011"’ Set the IP address of the communication destination server cor-
responding to communication line COM2
9 *O2
10 Open "COM2:" AS #1
’ As 192.168.0.11 and the port number as 10011, and then open
the line.
11 If M_Open(1)<>1 Then *O2
’ Loops if unable to connect to the server.
12 Print #1, C1$
’ Sends a character string.
13 Input #1, C2$
’ Receives a character string.
14 Close #1
’ Closes the line.
15 Hlt
’ Halts the program.
16 End
’ Ends.
[Explanation]
(1) It is not necessary to use this command when the communication counterpart of the robot controller is
specified with the
parameters and the specified communication counterpart
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
command are set, it is necessary to exe-
cute this command before the OPEN instruction.
(4) When the power is turned on, the set values specified by the
and
parameters are
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.
C_Com (<communication line number>) = "ETH: <server side IP address> [, <port number>]"