EasyManua.ls Logo

Mitsubishi Electric CR800 Series - Collision Avoidance ON;OFF

Mitsubishi Electric CR800 Series
146 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
Loading...
3 Description of functions
3-11
3.2.2.4. Starting the sample program
The test program is an example for establishing a data link between the robot and personal computer. COM3 is used.
(1) Using the teaching pendant or personal computer support software, register the following robot program with an
appropriate program name.
<Robot program>
1) Example for MELFA-BASIC V
1 OPEN "COM3:" AS #1 ' Open as communication line COM3
2 PRINT #1,"START" ' Send START character string
3 *LOOP:INPUT #1,DATA ' Wait for reception of value in DATA variable
4 IF DATA<0 THEN GOTO *LEND ' If DATA is negative, jump to line 7 and end
5 PRINT #1,"DATA=";DATA ' Reply DATA = value
6 GOTO *LOOP ' Jump to line 3 and repeat
7 *LEND:PRINT #1,”END" ' Send END character string
8 END ' End
(2) Start the personal computer data link program
Refer to section "4.2.1 Sample program for data link function" and create the execution file. (The created execution file will
be sample.exe.)
Start Windows Explorer, and double-click on sample.exe.
Set the IP address and port No., click on the connection check box, and open the communication line with the controller.
If the Send button is not validated, check that the IP address matches NETIP set with the controller.
If the button is still not validated, refer to section "2.3 Checking the connection", and check the connection cable or restart
the controller and sample.exe.
(3) Start the robot program.
Press the START button on the robot controller's operating panel, and start the robot program.

Table of Contents

Other manuals for Mitsubishi Electric CR800 Series

Related product manuals