EasyManuals Logo

Mitsubishi Electric CR760-D User Manual

Mitsubishi Electric CR760-D
730 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #332 background imageLoading...
Page #332 background image
4-312 Detailed explanation of Robot Status Variable
4MELFA-BASIC V
C_Com
[Function]
Sets the parameters for the line to be opened by the Open (Open) 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 COMDEV 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 NETPORT
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 COMDEV 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 NETHSTIP and NETPORT 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 Open (Open) 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 NETHSTIP and NETPORT 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>]"

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi Electric CR760-D and is the answer not in the manual?

Mitsubishi Electric CR760-D Specifications

General IconGeneral
BrandMitsubishi Electric
ModelCR760-D
CategoryController
LanguageEnglish

Related product manuals