3.2. Data link function
OPEN/PRINT/INPUT of the robot language can be used in the Ethernet.
For each robot language, refer to the instruction manual appended to the robot controller.
[Statement example] To set port No. 10003 as communication destination and open as #1
Set parameter COMDEV (element No. 3) to OPT13, NETPORT to 10003.
1 OPEN "COM3:" AS #1
2 INPUT #1, C1$
3 PRINT #1, "Reply", C1$
4 CLOSE #1
5 HLT
The data link function of the Ethernet has the two kinds shown below.
* Uses the robot controller as the server.
* Uses the robot controller as the client.
192.168.0.20
(Server)
COM2 COM3
Controller
Computer1
Computer2
192.168.0.21
192.168.0.22
(Client)
Two or more clients are not connectable with the one line number COMn.
Change the line number, when using the robot controller as the server and connecting two or more clients.
3.2.1. MELFA-BASIC V
This section describes the robot language (MELFA-BASIC V/VI).
For more information about OPEN, CLOSE, INPUT# and PRINT# used for data linking, refer to the INSTRUCTION
MANUAL Detailed explanations of functions and operations.
(Client)
VI Commands
/
'Set port No.
'Read
'Writing
'Line closing
'Stop
192.168.0.20
(Server)
COM2 COM3
Computer
Controller1
Controller2
192.168.0.21
192.168.0.22
(Client)
(Client)
3 Description of functions
192.168.0.20
(Server)
COM2 COM3
Controller1
Controller2
Controller3
192.168.0.21
192.168.0.22
(Client)
(Client)
3-5