B-75114en 04
B-75114en 04
B-75114en 04
OPERATOR'S MANUAL
B-75114EN/04
• Original Instructions
The products in this manual are controlled based on Japan’s “Foreign Exchange and
Foreign Trade Law”. The export of Series 30i-MODEL A/B, Series 31i-MODEL A5/B5 from
Japan is subject to an export license by government of Japan. Other models in this manual
may also be subject to export controls.
Further, re-export to another country may be subject to the license of the government of
the country from where the product is re-exported. Furthermore, the product may also be
controlled by re-export regulations of the United States government.
Should you wish to export or re-export these products, please contact FANUC for advice.
In this manual, we endeavor to include all pertinent matters. There are, however, a very
large number of operations that must not or cannot be performed, and if the manual
contained them all, it would be enormous in volume. It is, therefore, requested to assume
that any operations that are not explicitly described as being possible are "not possible".
B-75114EN/04 SAFETY PRECAUTIONS
SAFETY PRECAUTIONS
In this section, the safety instructions for use in a system that Machine Tool equipped with CNC (hereinafter
called Machine Tool) and Robot are connected are described. In design of a system that consists of Machine
Tool and Robot, adequate risk assessment is necessary and it is need to take safety measures according to the
result of risk assessment. Please read carefully this section to understand the safety instructions for use.
If the description in this manual is different from this section, the description in this section is effective.
Refer to “RELATED MANUAL” for the following manual numbers.
• About the safety instructions for use and usage of CNC, refer to Common to Lathe
System/Machining Center System OPERATOR’S MANUAL corresponding to your
using CNC.
• About the safety instructions for use of Robot, refer to “FANUC Robot SAFETY
HANDBOOK”.
• About usage of Robot, refer to the following manuals corresponding to your using
robot controller.
- FANUC Robot Series R-30iA CONTROLLER HANDLING TOOL OPERATOR’S
MANUAL
- FANUC Robot Series R-30iA Mate CONTROLLER LR HANDLING TOOL
OPERATOR’S MANUAL
- FANUC Robot Series R-30iB/R-30iB Mate/R-30iB Plus/R-30iB Mate Plus
CONTROLLER OPERATOR’S MANUAL (Basic Operation)
- FANUC Robot Series R-30iB/R-30iB Mate/R-30iB Plus/R-30iB Mate Plus
CONTROLLER OPERATOR’S MANUAL (Alarm Code List)
If necessary, refer to the following manuals.
- FANUC Robot Series R-30iA CONTROLLER MAINTENANCE MANUAL
- FANUC Robot Series R-30iA Mate CONTROLLER MAINTENANCE MANUAL
- FANUC Robot Series R-30iB/R-30iB Plus
CONTROLLER MAINTENANCE MANUAL
- FANUC Robot Series R-30iB Mate/R-30iB Mate Plus CONTROLLER
MAINTENANCE MANUAL
And, refer to the operator’s manual for mechanical unit corresponding to your using
mechanical unit, too.
• About the safety instructions for use and usage of Machine Tool, refer to the manual
published by Machine Tool Builder.
Index
DEFINITION OF SAFETY NOTATIONS -------------------------------------------------------------------------- s-2
RELATED MANUAL -------------------------------------------------------------------------------------------------- s-2
CONNECTION TO EMERGENCY STOP CIRCUIT ------------------------------------------------------------- s-4
CONNECTION TO SAFETY FENCE SIGNAL ------------------------------------------------------------------- s-4
SAFETY DOOR OF MACHINE TOOL ----------------------------------------------------------------------------- s-5
IN CASE THAT ROBOT IS OPERATED ON CNC OPERATOR’S PANEL --------------------------------- s-5
IN CASE THAT CNC OPERATOR’S PANEL IS PLACED INSIDE SAFETY FENACE ------------------ s-6
ABOUT LADDER PROGRAM IN CNC ---------------------------------------------------------------------------- s-6
ABOUT DIFFERENCE BY THE TYPE OF CNC ----------------------------------------------------------------- s-6
ABOUT TOUCH PANEL ---------------------------------------------------------------------------------------------- s-6
s-1
SAFETY PRECAUTIONS B-75114EN/04
WARNING
Failure to follow the instruction given under “Warning” can cause fatal or serious
injury to the user. This information is indicated in bold type in a box so that it can
be easily distinguished from the main body of this manual.
CAUTION
Failure to follow the instruction given under “Caution” can cause injury to the
user or property damage. This information is indicated in a box so that it can be
easily distinguished from the main body of this manual.
NOTE
The information given under “Note” is a supplementary explanation, which is
neither a warning nor a caution.
RELATED MANUAL
The related manuals with this function are as follows. Refer to these manuals according to need.
FANUC Series 30i/31i/32i -MODEL B Common to Lathe System/Machining Center System B-64484EN
OPERATOR’S MANUAL
FANUC Series 35i -MODEL B CONNECTION MANUAL (HARDWARE) B-64523JA
FANUC Series 30i/31i/32i -MODEL A Common to Lathe System/Machining Center System B-63944EN
OPERATOR’S MANUAL
s-2
B-75114EN/04 SAFETY PRECAUTIONS
FANUC Robot Series R-30iB/R-30iB Mate/R-30iB Plus/R-30iB Mate Plus CONTROLLER B-83254EN
Integrated PMC OPERARTOR’S MANUAL
s-3
SAFETY PRECAUTIONS B-75114EN/04
NOTE
1 FANUC PICTURE OPERARTOR’S MANUAL (B-66284EN) is common to
30i/31i/32i-A/B, 35i-B, Power Motion i –A, 0i-D and 0i-F .
2 About the manual of the robot mechanical unit, the manuals for every robot type
exist. Refer to the operator’s manual for mechanical unit corresponding to your
using mechanical unit.
• As the method of emergency stop of the system, the emergency stop of both the machine tool and
the robot are used. If only the shut down of servo power is required, use the servo off signal in
the robot controller.
• Connect the emergency stop signal to the EES1, EES11, EES2, EES21 (for dual chain controller)
or EXEMGIN1, EXEMGIN2 (for single chain controller) input signal in the robot controller.
• Connect the servo off signal to the EGS1, EGS11, EGS2, EGS21 (for dual chain controller) or
SVOFF1, SVPFF2 (for single chain controller) input signal in the robot controller.
• For explanation about how to connect, refer to one of the following manuals corresponding to
your using robot controller.
- FANUC Robot Series R-30iA CONTROLLER MAINTENANCE MANUAL
- FANUC Robot Series R-30iA Mate CONTROLLER MAINTENANCE MANUAL
- FANUC Robot Series R-30iB/R-30iB Plus CONTROLLER MAINTENANCE MANUAL
- FANUC Robot Series R-30iB Mate/R-30iB Mate Plus CONTROLLER
MAINTENANCE MANUAL
• Connect the safety fence signal to EAS1, EAS11, EAS2, EAS21 (for dual chain controller) or
FENCE1, FENCE2 (for single chain controller) in the robot controller so that the robot is
stopped immediately when the safety fence is opened during automatic operation of the robot.
When the robot controller is T1 mode or T2 mode, even if the safety fence is opened, it is
possible to operate the robot by the robot teach pendant. When the robot controller is T2 mode,
because the special speed limitation at program execution is none, it is need to take safety
measures adequately.
• By Dual Check Safety (DCS) position check function, it is possible to narrow the motion range
of the robot safely. In order to narrow the motion range of the robot by DCS position check
function, read “FANUC Robot Series R-30iA / R-30iA Mate CONTROLLER Dual Check Safety
Function (ISO 13849-1:2006 COMPLIANT) Operation Manual” or “FANUC Robot Series
R-30iB / R-30iB Mate / R-30iB Plus / R-30iB Mate Plus CONTROLLER Dual Check Safety
Function Operation Manual” carefully, and adequate risk assessment is required. For DCS
position check function, special hardware for DCS is needed, and DCS position check function is
software option of the robot controller.
• If it is need to stop not only the robot but also the machine tool when the safety fence is opened
during automatic operation, connect the signal which indicates the open/close status of the safety
fence to CNC.
s-4
B-75114EN/04 SAFETY PRECAUTIONS
• In the system that the safety door of the machine tool limits the operator entering into the motion
range of the robot, connect the signal which indicates the open/close state of safety door of the
machine tool to the robot controller as the safety fence signal in the robot controller.
• In order to operate the robot on CNC operator’s panel, it is required that the robot controller is
AUTO mode and the safety fence is closed.
s-5
SAFETY PRECAUTIONS B-75114EN/04
s-7
B-75114EN/04 TABLE OF CONTENTS
TABLE OF CONTENTS
SAFETY PRECAUTIONS ............................................................................ s-1
1 OVERVIEW ............................................................................................. 1
1.1 NECESSARY SOFTWARE OPTION ............................................................. 2
1.2 CONNECTION OF CNC AND ROBOT .......................................................... 5
1.3 NECESSARY ITEMS FOR CNC ................................................................... 5
1.4 NOTE IN THE ROBOT CONTROLLER ......................................................... 6
1.4.1 Note in R-30iA/R-30iA Mate Controller ................................................................. 6
1.4.2 Note in R-30iB Mate Controller or Later ................................................................. 6
c-2
B-75114EN/04 TABLE OF CONTENTS
9.2.2 Teaching Program for Hand Operation ................................................................ 129
9.2.3 Teaching Program for Home Position Return ...................................................... 131
APPENDIX
A STANDARD SETTING ........................................................................ 177
A.1 SETTING VALUE IN CNC ......................................................................... 177
A.1.1 Setting for Robot Connection Function................................................................ 177
A.1.2 Setting PMC Parameter ........................................................................................ 178
A.2 SETTING VALUE IN ROBOT CONTROLLER ........................................... 178
A.2.1 Type of Setting Value and Applicable Condition ................................................ 178
A.2.2 Standard Setting Value List in Robot Controller ................................................. 179
A.3 FL-net PARAMETER ................................................................................. 184
A.3.1 Common Item ....................................................................................................... 184
A.3.2 FL-net Parameters in CNC ................................................................................... 185
A.3.3 FL-net Parameters in Robot Controller ................................................................ 186
1 OVERVIEW
This function enables you to connect the machine tool with the robot, and to make them cooperate.
It is composed of the following three functions.
-1-
1. OVERVIEW B-75114EN/04
Moreover, the following options are necessary depending on the connection method between CNC and
the robot controller and the function to use.
About the value and the meaning of middle number xxxx in drawing number in the following description,
please refer to the column corresponding to CNC model in above table 1.1(a).
Robot Controller
Table 1.1(b) shows the type of I/O transmission and necessary option.
-2-
B-75114EN/04 1. OVERVIEW
Series 30i/31i/32i-B
Table 1.1(c) shows the type of I/O transmission and necessary option.
Table 1.1(d) shows a type of Ethernet communication in CNC and necessary option.
Table 1.1 (d) Type of Ethernet communication in CNC and necessary option
Type of Ethernet communication Necessary option in CNC
Embedded Ethernet <None>
When the ROBOT REMOTE OPERATION screen provided as a sample program of FANUC PICTURE
is used in CNC, the option shown in Table 1.1(e) is necessary.
Table 1.1 (e) Necessary option for ROBOT REMOTE OPERATION screen
Function to use Necessary option in CNC
ROBOT REMOTE OPERATION ・ FANUC PICTURE function (A02B-xxxx-S879) or
screen FANUC PICTURE function for non-touch panel display
(A02B-xxxx-S944) or
FANUC PICTURE Executor (A02B-xxxx-R644)
Table 1.1(g) shows a type of Ethernet communication in CNC and necessary option.
Table 1.1 (g) Type of Ethernet communication in CNC and necessary option
Type of Ethernet communication Necessary option in CNC
Embedded Ethernet <None>
When the ROBOT REMOTE OPERATION screen provided as a sample program of FANUC PICTURE
is used in CNC, the option shown in Table 1.1(h) is necessary.
Table 1.1 (h) Necessary option for ROBOT REMOTE OPERATION screen
Function to use Necessary option in CNC
ROBOT REMOTE OPERATION ・ FANUC PICTURE function (A02B-xxxx-R708) or
screen FANUC PICTURE Executor (A02B-xxxx-R644)
-3-
1. OVERVIEW B-75114EN/04
Series 30i/31i/32i-A
Table 1.1(i) shows the type of I/O transmission and necessary option.
Table 1.1(j) shows a type of Ethernet communication in CNC and necessary option.
Table 1.1 (j) Type of Ethernet communication in CNC and necessary option
Type of Ethernet communication Necessary option in CNC
Embedded Ethernet <None>
FAST Ethernet board ・Ethernet function (A02B-xxxx-S707)
・Control software function for Fast Ethernet (A02B-0303-J561#6569)
FL-net/Ethernet coexisting function ・Ethernet function (A02B-xxxx-S707)
・FL-net/Ethernet coexisting function (A02B-xxxx-R951)
When the ROBOT REMOTE OPERATION screen provided as a sample program of FANUC PICTURE
is used in CNC, the option shown in Table 1.1(k) is necessary.
Series 0i-D
Table 1.1(l) shows the type of I/O transmission and necessary option.
Table 1.1(m) shows a type of Ethernet communication in CNC and necessary option.
Table 1.1 (m) Type of Ethernet communication in CNC and necessary option
Type of Ethernet communication Necessary option in CNC
Embedded Ethernet <None>
FAST Ethernet board ・Ethernet function (A02B-xxxx-S707)
・Control software function for Fast Ethernet (A02B-0319-J561#658W)
When the ROBOT REMOTE OPERATION screen provided as a sample program of FANUC PICTURE
is used in CNC, the option shown in Table 1.1(n) is necessary.
-4-
B-75114EN/04 1. OVERVIEW
Series 0i-F
Table 1.1(o) shows the type of I/O transmission and necessary option.
Table 1.1(p) shows a type of Ethernet communication in CNC and necessary option.
Table 1.1 (p) Type of Ethernet communication in CNC and necessary option
Type of Ethernet communication Necessary option in CNC
Embedded Ethernet <None>
FAST Ethernet board (Type 1 only) ・Ethernet function (A02B-xxxx-S707)
When the ROBOT REMOTE OPERATION screen provided as a sample program of FANUC PICTURE
is used in CNC, the option shown in Table 1.1(q) is necessary.
Series 7DA5
• This option is supported at version 03.
• The connection with Series 0i-D is supported at version 06.
• The Tool Offset Screen is added at version 07. (About Tool Offset Screen, please refer to “6.2.2 Tool
Offset Screen”.)
• The connection with Series 35i-B and the connection with Power Motion i-A are not supported.
Series 7DA7
• This option is supported from first version.
• The connection with Series 35i-B and the connection with Power Motion i-A are not supported.
-6-
B-75114EN/04 2. CONNECTION OF CNC AND ROBOT
CNC Robot
Embedded Ethernet
Ethernet
Ethernet
CNC Robot *
CNC Robot
Ethernet
CNC Robot *
CNC Robot
Embedded Ethernet
Ethernet Ethernet
-7-
2. CONNECTION OF CNC AND ROBOT B-75114EN/04
* In the robot controller, R-30iA/R-30iA Mate controller do not support FL-net internal port.
This chapter explains the following content necessary for I/O transmission and data communication
between CNC and the robot.
• Connection of I/O transmission between CNC and the robot controller
• Setting of CNC and the robot controller for I/O transmission
• Connection of data communication between CNC and the robot controller
• Setting of CNC and the robot controller for data communication
CNC1
DI DO
DI DO
1 1
| | 1 1
256 256 | |
256 256
257 257
CNC2 | |
512 512
513 513
CNC3 | |
768 768
769 769
CNC4 | |
FL-net or I/O Link 1024 1024
Robot controller
-8-
B-75114EN/04 2. CONNECTION OF CNC AND ROBOT
Please connect CNC and the robot controller as shown in the following figure.
For details, please refer to FL-net board CONNECTION MANUAL corresponding to your using CNC.
About the FL-net connection in the robot controller, please refer to FANUC Robot series R-30iA/R-30iA
Mate/R-30iB/R-30iB Mate/R-30iB Plus/R-30iB Mate Plus CONTROLLER FL-net interface
OPERATOR’S MANUAL(B-82674EN).
Hub
Robot
CNC1 CNC2 CNC3 CNC4
controller
Please connect CNC and the robot controller as shown in the following figure.
For details, please refer to CONNECTION MANUAL (HARDWARE) corresponding to your using
CNC.
Robot
CNC1 CNC2 CNC3 CNC4
controller
I/O Link
Connecting
Unit
The DI/DO signal cannot be exchanged directly between CNCs. When the signal is exchanged between
CNCs, it is necessary to transmit signals through the robot controller.
-9-
2. CONNECTION OF CNC AND ROBOT B-75114EN/04
Node number
The node number of each equipment is fixed.
The end figure of IP address shows the node number. The node number for the robot controller is fixed as
one. The node number for CNC is assigned to be the order of the CNC number from two.
When standard 192.168.250 is used as a network address, IP address is as follows.
- 10 -
B-75114EN/04 2. CONNECTION OF CNC AND ROBOT
With the standard setting, list of participating nodes is allocated in 1:R7956. The relation of node and
PMC address using the standard setting is as follows.
Bit
7 6 5 4 3 2 1 0
1:R7956 Node 7 Node 6 Node 5 Node 4 Node 3 Node 2 Node 1 Reserved
CNC4 CNC3 CNC2 CNC1 Robot
・・・ ・・・
1:R7986 Node 247 Node 246 Node 245 Node 244 Node 243 Node 242 Node 241 Node 240
1:R7987 Reserved Node 254 Node 253 Node 252 Node 251 Node 250 Node 249 Node 248
Fig. 2.2.3.1(b) List of participating nodes and PMC data area
- 11 -
2. CONNECTION OF CNC AND ROBOT B-75114EN/04
With the standard setting, bit 1 of 1:R7956 shows the power supply of the robot controller.
IP ADDRESS
The end figure of IP address shows the node number.
The value is decided by the CNC number. When standard 192.168.250 is used as a network address, IP
address is as follows.
Table 2.2.3.1(a) IP address
Item CNC1 CNC2 CNC3 CNC4
IP ADDRESS 192.168.250.2 192.168.250.3 192.168.250.4 192.168.250.5
AREA1 ADDERSS
It is the first address in common memory area 1 where the output signal of own node is allocated.
The value is decided by the CNC number.
Table 2.2.3.1(b) AREA1 ADDRESS
Item CNC1 CNC2 CNC3 CNC4
AREA1 ADDRESS 128 160 192 224
AREA1 SIZE
It is a data size of common memory area 1 where the output signal of own node is allocated. The unit is
word. The value is 16 (256 points) and it is fixed.
OWN STATUS
It is unnecessary to set-up item "OWN STATUS" because it is not used.
ENTRY NODE
It is an address in the PMC area to notify the participation of other nodes in the network.
The value of standard setting is 1:R7956. If the PMC data area from 1:R7956 to 1:R7986 can not be used,
please specify the first address of 32 bytes empty area.
- 12 -
B-75114EN/04 2. CONNECTION OF CNC AND ROBOT
NOTE
When the value of item "ENTRY NODE" is changed from a standard setting, it is
necessary to modify the ladder program. For details, please refer to the material
included in CD "Robot connection function sample program" (A08B-9510-J550).
PARAMETER 1, PARAMETER 2
The value of “PARAMETER 1” is “0000 0001” and “PARAMETER 2” is “0000 0000”. They are fixed.
NOTE
When the value of item "PMC ADDRESS" of “AREA1 DI/DO” is changed from a
standard setting, it is necessary to modify the ladder program. For details,
please refer to the material included in CD "Robot connection function sample
program" (A08B-9510-J550).
- 13 -
2. CONNECTION OF CNC AND ROBOT B-75114EN/04
1 CNC to be connected :[ 0]
2 I/O device type : [FL-net (Board) ]
3 Load Setting 〈Execute〉
4 Override Step : [ 10]
[ TYPE ]
5 Enter the number of CNC connected with the robot controller to the item "CNC to be connected".
When this function is not used, please set zero.
6 Move the cursor to “I/O device type” and press F4 [CHOICE] to set I/O device type. If the items in
the menu for I/O device type are “FL-net” and “I/O Link”, select "FL-net". In case that the item
“FL-net(Board)”, “FL-net(Port#1)” and “FL-net(Port#2)” exist in the menu for I/O device type,
select one of these items according to the FL-net port. If FL-net has not been ordered, “FL-net”,
“FL-net(Board)”, “FL-net(Port#1)” and “FL-net(Port#2)” cannot be selected.
7 Move the cursor to the item <Execute> of "Load Setting" and press ENTER key. Press OK for the
confirmation message. When load setting is executed, an existing setting is overwritten.
8 Press FCTN key and select "START (COLD)" from the Functions menu. The robot controller is
started by the cold start.
CAUTION
When standard I/O setting is read, not only the ALLOCATION and comment of
I/O, but also the ladder program is replaced. In case that “FL-net(Port#1)” or
“FL-net(Port#2)” is selected as the I/O device type, Ethernet IP address and
subnet mask are set and router IP address is initialized.
When connected number of CNC is increased, the setting of DI/DO and GI area corresponding to
increased CNC is overwritten. When connected number of CNC is decreased, the setting corresponding to
decreased CNC is cleared.
If you return the setting to former value, set the connected CNC to zero, and then read the settings. The
ALLOCATION and comment of I/O is cleared and the ladder program is replaced by the standard ladder
program. But, IP address, subnet mask, router IP address in TCP/IP parameter cannot be returned.
When the I/O device is changed, it is recommended to delete the I/O ALLOCATION in I/O Link screen
of robot controller. For details, please refer to one of the following manuals corresponding to your using
robot controller.
FANUC Robot Series R-30iA CONTROLLER HANDLING TOOL OPERATOR'S MANUAL
FANUC Robot Series R-30iA Mate CONTROLLER LR HANDLING TOOL OPERATOR'S
MANUAL
FANUC Robot Series R-30iB/R-30iB Mate/R-30iB Plus/R-30iB Mate Plus CONTROLLER
OPERATOR'S MANUAL (Basic Operation)
- 14 -
B-75114EN/04 2. CONNECTION OF CNC AND ROBOT
For the setting value read by the above-mentioned procedure, please refer to "Appendix A.2.2 Standard
Setting Value List in Robot Controller" and "Appendix A.3.3 FL-net Parameters in Robot Controller".
Procedure to set
1 Press MENU key to display the screen menu.
2 Select “SETUP”.
3 Press TYPE (F1) key to display the screen change menu.
4 Select “Machine I/F” in the menu. Machine Interface screen is displayed.
5 Press OTHER (F3) key, then select “MTCOM” in the menu. The following screen is displayed.
6 Set the cursor to the client tag that you want to set, then press DETAIL (F2) key. The following
screen is displayed.
Client Tag C1 :
1 Host Name : CNC1
2 Alarm Output : Enable
3 Send Warning : Disable
4 Send Cause Code : Disable
5 Connection retry : Disable
- 15 -
2. CONNECTION OF CNC AND ROBOT B-75114EN/04
The next figure shows the example that two CNCs are connected to one robot and that interface signals
are allocated in X80 and Y80 of PMC area.
- 16 -
B-75114EN/04 2. CONNECTION OF CNC AND ROBOT
The procedure for allocating the I/O Link connecting unit to X address and Y address of PMC is as
follows.
1. Move the cursor to the address of allocating I/O Link connecting unit. 32byte continuous empty area
is necessary.
2. Input the following string with MDI key, and then, press INPUT key.
<Group No.>.0.1./32
Where <Group No.> shows the numerical order of I/O Link connecting unit in the connected I/O
Link devices.
3. Execute the procedure 1 and 2 for both X and Y address.
For details of setting I/O Link, please refer to PMC PROGRAMMING MANUAL corresponding to your
using CNC.
1 CNC to be connected :[ 0]
2 I/O device type : [I/O Link ]
3 Load Setting 〈Execute〉
4 Override Step : [ 10]
[ TYPE ]
5 Enter the number of CNC connected with the robot controller to the item "CNC to be connected".
When this function is not used, please set zero.
6 Select "I/O Link" for "I/O device type".
7 Move the cursor to the item <Execute> of "Load Setting" and press ENTER key. Press OK for the
confirmation message. When load setting is executed, an existing setting is overwritten.
- 17 -
2. CONNECTION OF CNC AND ROBOT B-75114EN/04
8 Press FCTN key and select "START (COLD)" from the Functions menu. The robot controller is
started by the cold start.
CAUTION
When standard I/O setting is read, not only the ALLOCATION and comment of
I/O, but also the ladder program is replaced.
When connected number of CNC is increased, the setting of DI/DO and GI area corresponding to
increased CNC is overwritten. When connected number of CNC is decreased, the setting corresponding to
decreased CNC is cleared.
If you return the setting to former value, set the connected CNC to zero, and then read the settings. The
ALLOCATION and comment of I/O is deleted and the ladder program is replaced by the standard ladder
program.
When the I/O device is changed, it is recommended to delete the I/O ALLOCATION in I/O Link screen
of the robot controller. For details, please refer to one of the following manuals corresponding to your
using robot controller.
FANUC Robot Series R-30iA CONTROLLER HANDLING TOOL OPERATOR'S MANUAL
FANUC Robot Series R-30iA Mate CONTROLLER LR HANDLING TOOL OPERATOR'S
MANUAL
FANUC Robot Series R-30iB/R-30iB Mate/R-30iB Plus/R-30iB Mate Plus CONTROLLER
OPERATOR'S MANUAL (Basic Operation)
For the setting value read by the above-mentioned procedure, please refer to “Appendix A.2.2 Standard
Setting Value List in Robot Controller".
Procedure to set
1 Press MENU key to display the screen menu.
2 Select “SETUP”.
3 Press TYPE (F1) key to display the screen change menu.
4 Select “Machine I/F” in the menu. Setup Machine I/F screen is displayed.
5 Press OTHER (F3) key, then select “MTCOM” in the menu. The following screen is displayed.
- 18 -
B-75114EN/04 2. CONNECTION OF CNC AND ROBOT
6 Set the cursor to the client tag that you want to set, then press DETAIL (F2) key. The following
screen is displayed.
Client Tag C1 :
1 Host Name : CNC1
2 Alarm Output : Enable
3 Send Warning : Disable
4 Send Cause Code : Disable
5 Connection retry : Disable
Please connect CNC and the robot controller as shown in the following figure.
Hub
Robot
CNC1 CNC2 CNC3 CNC4
controller
- 19 -
2. CONNECTION OF CNC AND ROBOT B-75114EN/04
Please match the value of IP address, the subnet mask, and router IP address to the environment of the
connected network.
The value of port number is 8193.
When FL-net/Ethernet coexistence function is used, the value of IP address defined in FL-net parameter
screen is used by Ethernet communication too. Therefore, IP address is not set from a setting screen of
Ethernet. Moreover, the subnet mask is fixed by 255.255.255.0.
For details of embedded Ethernet, please refer to MAINTENANCE MANUAL corresponding to your
using CNC. For details of FL-net/Ethernet coexistence function, please refer to "FANUC Series
30i/31i/32i -MODEL A/B FANUC Series 35i-MODEL B FL-net Board CONNECTION
MANUAL(B-64163EN)".
In case that I/O device type is set to FL-net by internal Ethernet port (FL-net(Port#1), FL-net(Port#2)),
when the standard setting is loaded, the standard setting values for IP address, subnet mask and router IP
address are set automatically.
6. Set the value to item “IP addr”, “Subnet Mask” and “Router IP addr”.
7. Set the value to item "Host Name" and "Internet Address". The host name defined here is used by
the setting of client tag.
3. Move the cursor to the tag for set-up, and then press F3 [DETAIL] key.
4. Move the cursor to the item "Protocol". Press F4 [CHOICE] key and select "MTCOM". The screen
display changes as follows.
Setup Tags
1/7
Tag C1:
Comment : ********************
Protocol : MTCOM
Current State : START
Startup State : START
Server IP/Hostname : CNC1
Server Port : 8193
CNC No. : 1
Response Timeout : 10 sec
On this screen, set the host name registered in TCP/IP setting screen to item "Server IP/Hostname".
Please set the host name or IP address of connected equipment. Usually, the host name registered in
TCP/IP setting screen is used.
5. Set the number of CNC (1 to 4) to the item "CNC No.". Please set the value up to the number of
connected CNC. The value must not overlap by CNC connected with the robot.
6. Press F2 [ACTION] and select "DEFINE". Current setting is defined.
7. To start communication after cold start, move the cursor to the item "Startup State", press F4
[CHOICE] and select "START".
8. The setting content of other items is as follows.
NOTE
Even if value "START" has been selected for the item "Startup State", in case
that the power supply of CNC is off when the power supply of robot becomes on,
the communication is not begun because it is impossible to communicate to
CNC. In that case, the communication should begin on the host communication
screen of the robot controller by manual operation.
- 22 -
B-75114EN/04 2. CONNECTION OF CNC AND ROBOT
To connect the separated CNC again, set item area1 to EABLE with the same procedure as shown above.
And make the power supply of the robot controller off and then on.
- 23 -
3. SETTING AND CUSTOMIZING IN CNC B-75114EN/04
And, the following sample ladder programs are provided for the remote operation and the automatic
system operation.
The above sample programs (FANUC PICTURE screen data and ladder programs) are provided by CD
“Robot connection function sample program” (A08B-9510-J550). See document in CD for detail of these
sample programs.
This section describes the settings necessary for connecting a CNC to the robot, for using the above
screens and for running the sample ladder programs, and several small works that machine tool builders
should customize.
Hereafter, CNC side function of the integrated function of the intelligent robot and the machine tool is
called "Robot connection function".
- 24 -
B-75114EN/04 3. SETTING AND CUSTOMIZING IN CNC
3.1 OUTLINE
The following figure shows the outline of the robot connection function.
ROBOT REMOTE
For automatic For ROBOT
system REMOTE OPERATION
operation OPERATION screen
screen
Button in Machine
operator’s panel
Ladder program
Sample program
The setting value related with the robot connection function, the signal names notified by the robot and
the robot alarm messages are stored in the above “CNC internal data area”. And PMC data necessary for
the robot connection function is packed in the above “Data area of Robot connection function”.
(2) The robot controller exchanges the signals with CNC by using I/O transmission function (FL-net or
I/O Link).
The signals are packed as a “Standard interface signals”.
CNC handles “Standard interface signals” in “Data area of Robot connection function”.
As for details of “Standard interface signals”, please see “7. INTERFACE BETWEEN CNC AND
ROBOT”.
(3) The ROBOT CONNECTION SETTING screen enables you to register the PMC address of “Data
area of Robot connection function” to “CNC internal data area”.
(4) The ROBOT STATUS screen read the PMC address of “Data area of Robot connection function”
from “CNC internal data area”. And the screen monitors the signal value of “Data area of Robot
connection function”, and displays them with the signal names that are preserved in “CNC internal
data area”. And the robot alarm message is displayed in addition.
- 25 -
3. SETTING AND CUSTOMIZING IN CNC B-75114EN/04
(5) The ROBOT PROGRAM SELECT screen enables you to specify the program number of the robot.
The specified program number is written in “Standard interface signal” of “Data area of Robot
connection function”.
(6) The ROBOT REMOTE OPERATION screen accesses “Data area of Robot connection function”.
The ladder program (for ROBOT REMOTE OPERATION screen) writes the indication of the
screen into “Standard interface signals”. And the indication is transferred to the robot as I/O data.
(7) When starting the automatic system operation, an operator executes NC program in which M codes
are included. The ladder program (for automatic system operation) writes the M code command in
“Standard interface signals” when it detects the execution of M code. As a result, the indication by
M code is transmitted to the robot.
(8) The button on the machine operator’s panel is prepared, and it is connected to CNC via I/O Link.
And the signals of these buttons are checked by ROBOT REMOTE OPERATION screen and its
ladder program.
• Customizing of sample ladder program and a sample ROBOT REMOTE OPERATION screen
data
The sample program is provided by CD-ROM. A machine tool builder can customize these
sample programs according to the actual system, and must check its validity sufficiently. Some
PMC addresses are written in these sample programs. If the location of “Data area of Robot
connection function” is customized, the default PMC addresses have to be also modified.
- 26 -
B-75114EN/04 3. SETTING AND CUSTOMIZING IN CNC
FL-net data
This area is for assigning FL-net common memory area 1.
The PMC address from 1:R7200 to1:R7231 is assigned to the DO signals (from Robot to CNC) and from
1:R7232 to1:R7263 is assigned to the DI signals (form CNC to Robot) as standard settings.
This function enables you to connect up to four CNCs with one robot. And these signals are allocated in
CNC.
• The DI/DO area for one robot and four CNC is always prepared in the FL-net common memory area
1 regardless of the number of the actual CNCs.
- 27 -
3. SETTING AND CUSTOMIZING IN CNC B-75114EN/04
• The robot interface area is prepared in PMC address. This area is independent from the
communication protocol and the CNC number. The copy-function of ladder program, which is
separated from the main ladder program, exchanges the data between the FL-net common memory
area 1 and the robot interface area according to its own CNC number.
• ROBOT STATUS screen and the main ladder program use the signals of the robot interface area for
their process.
The above mapping makes ROBOT STATUS screen and the main ladder program removed from the
dependence upon CNC number.
PMC area allocated to FL-net Robot interface area
common memory area1
1:R7400 1:R7200
1:R7431 Robot -> CNC1 1:R7231 Robot -> CNC
1:R7432 1:R7232
1:R7463 Robot -> CNC2 1:R7263 CNC -> Robot
1:R7464
1:R7495 Robot -> CNC3
1:R7496
1:R7527 Robot -> CNC4
1:R7528
Reserved
1:R7655
1:R7656
1:R7687 CNC1 -> Robot
1:R7688 The copy-function of ladder
1:R7719 Reserved
copies data according to its
1:R7720 own CNC number
1:R7751 CNC2 -> Robot
1:R7752
Reserved
1:R7783
1:R7784
1:R7815 CNC3 -> Robot
1:R7816
1:R7847 Reserved
1:R7848
1:R7879 CNC4 -> Robot
1:R7880
Reserved
1:R7911
Fig.3.2(b) Robot interface area of CNC2 connected to the robot via FL-net
Fig. 3.2(c) Robot interface area of the CNC connected to the robot via I/O Link
- 28 -
B-75114EN/04 3. SETTING AND CUSTOMIZING IN CNC
Please machine tool builder prepare these three buttons on the machine operator's panel. And, input the
state of these buttons to PMC via I/O Link. In the ladder program, these signals are used to operate the
robot.
Outline
The ROBOT REMOTE OPERATION screen is a screen for the remote operation of the robot from the
machine tool. Following operations for the robot are provided.
- Jog feed
- Hand operation
- Home position return
- Robot restart
- Override change
- Reset
This is a screen for the maintenance of the robot. It is used on the following situation.
- The robot stopped by some causes while daily operation.
- Recovery without using the robot teach pendant
It is not a screen for a start-up of the system nor for the teaching of the robot.
The ROBOT REMOTE OPERATION screen is offered as not a standard screen of CNC but a sample
screen of FANUC PICTURE.
- 29 -
3. SETTING AND CUSTOMIZING IN CNC B-75114EN/04
NOTE
1. For details of customizing the sample screen, please refer to the material
included in CD "Robot connection function sample program" (A08B-9510-J550).
2. About FANUC PICTURE, please refer to "FANUC PICTURE OPERATOR'S
MANUAL".
3. This sample screen doesn't correspond to PANEL i with 19" display.
WARNING
The machine tool builder must customize this sample screen according to the
specification of the machine. Moreover, the machine tool builder must verify the
safety of the robot operation enough.
WARNING
1. Please do not make the touch panel operation screen where two points or more
are pushed at the same time. When two points or more are pushed at the same
time, the touch panel might work as if the center of the points was pushed. In
this case, there is a possibility of the accident due to the mis-output and the
malfunction.
2. Please do not include the following operations to the touch panel screen.
- Operation related to safeties of life and significant damage, etc.
- Operation that requires emergency and real-time action
There is a possibility of the accident due to the mis-output and the malfunction
when the main body, the unit, and the cable, etc. break down.
Moreover, there is no guarantee of the real time action of the screen.
To operate the robot from ROBOT REMOTE OPERATION screen, it is necessary to acquire the remote
operation right first. When the remote operation right can be acquired, it is possible to operate the robot
remotely. When a remote operation ends, the remote operation right is released.
It is not allowed to acquire the remote operation right when other CNC is remotely operating the robot or
the robot is in service of work-piece changing for other CNC.
The operation to reset the robot can be executed from the ROBOT REMOTE OPERATION screen
regardless of the presence of the remote operation right.
- 30 -
B-75114EN/04 3. SETTING AND CUSTOMIZING IN CNC
Table 3.4 Button in machine operator's panel used in ROBOT REMOTE OPERATION screen
Button and switch Explanation
Selection switch of interlock mode and If CNC is in stand-alone mode, the remote operation right can not be
stand-alone mode acquired.
If interlock mode, the remote operation right can be acquired.
Robot operation button In ROBOT REMOTE OPERATION screen, the robot can be actually
moved by pressing this button.
- Jog feed
The robot executes the operation of Jog feed while this button is
being pressed.
- Hand operation
The robot executes Hand operation when this button is pressed.
- Home position return
The robot executes the operation of returning to home position
while this button is being pressed.
- Restart
The robot restarts when this button is pressed.
Cycle stop button This button is not used in ROBOT REMOTE OPERATION screen.
The procedures for executing Jog feed, Hand operation, Home position return and Restart are as follows.
1. Select the type of operation in ROBOT REMOTE OPERATION screen.
2. The robot works when the robot operation button of the machine operator's panel is pressed.
The sample ladder program for the remote operation screen directs the operation to the robot by the
operation of both the screen and the button. For details, please refer to the material included in CD "Robot
connection function sample program" (A08B-9510-J550).
WARNING
Because of safety reasons, please don't replace the robot operation button of
machine operator's panel by the button on the screen made by FANUC
PICTURE.
The remote operation right is unnecessary for the restart of the robot.
- 31 -
3. SETTING AND CUSTOMIZING IN CNC B-75114EN/04
Fig. 3.4 Hand operation and robot status display in ROBOT REMOTE OPERATION screen
Ladder program
The sample ladder for the remote operation screen is offered. This ladder program reads the operator's
instruction from ROBOT REMOTE OPERATION screen and the button of the machine operator's panel,
and operates the robot through standard interface signal. For details, please refer to the material included
in CD "Robot connection function sample program" (A08B-9510-J550).
WARNING
The machine tool builder must customize this sample ladder program according
to the specification of the machine. Moreover, the machine tool builder must
verify the safety of the robot operation enough.
WARNING
The machine tool builder must customize this sample ladder program according
to the specification of the machine. Moreover, the machine tool builder must
verify the safety of the robot operation enough.
CNC Number
The sample ladder program uses K80.2 and K80.3 of the PMC parameter to acquire own CNC number.
- 32 -
B-75114EN/04 3. SETTING AND CUSTOMIZING IN CNC
Table 3.5(b) Button in machine operator’s panel used for system operation
Button and switch Explanation
Selection switch of interlock If CNC is in stand-alone mode, M code of M60/M61/M62 in NC program is
mode and stand-alone mode disregarded.
If interlock mode, the work-piece exchange is requested to the robot by M code
of M60/M61/M62. When the work-piece exchange of the robot ends, the
machine tool continuously machines the next work-piece.
Robot operation button This button is not used by system operation.
Cycle stop button This button is used to direct cycle stop.
After the machining is begun, the exchange of work-piece is requested to the robot according to M code
added to NC program. As a result, the machine tool continuously machines the work-piece with
exchanging it.
The cycle stop enables the operator to end the system operation at any timing. If the cycle stop button has
been pressed, the robot unloads the work-piece after a set of machining is finished. And then the system
operation ends automatically.
The flow of the end of system operation with cycle stop is as follows.
1. The operator presses the cycle stop button at any timing.
2. When the machining of the current work-piece ends, CNC requests the robot to unload the
work-piece.
3. The robot unloads the work-piece and reports the completion to CNC.
4. If the completion report is arrived from robot, the ladder program sends FIN and reset & rewind
to CNC. As a result, the system operation ends.
The operator directs cycle stop by pressing the cycle stop button in the machine operator's panel. Whether
the cycle stop is directed or not can be confirmed with the value of cycle stop signal (CNC 1:R7245.6,
Robot controller DI[111]).
- 33 -
3. SETTING AND CUSTOMIZING IN CNC B-75114EN/04
- 34 -
B-75114EN/04 3. SETTING AND CUSTOMIZING IN CNC
Fig. 3.6(c) Setting screen of robot connection function (15 inch display unit)
- 35 -
3. SETTING AND CUSTOMIZING IN CNC B-75114EN/04
NOTE
If the value of item "ROBOT DO SIG. PMC ADDR." is changed from the
standard setting, it is necessary to modify the ladder program. For details,
please refer to the material included in CD "Robot connection function sample
program" (A08B-9510-J550).
NOTE
If the value of item "ROBOT DI SIG. PMC ADDR." is changed from the standard
setting, it is necessary to modify the ladder program. For details, please refer to
the material included in CD "Robot connection function sample program"
(A08B-9510-J550).
NOTE
If the value of item “POWER ON SIG. PMC ADDR., BIT” is changed from the
standard setting, it is necessary to modify the ladder program. For details,
please refer to the material included in CD “Robot connection function sample
program”(A08B-9510-J550).
- 36 -
B-75114EN/04 3. SETTING AND CUSTOMIZING IN CNC
OPTION
It is a bit flag for the option setting of the robot connection function.
・ Bit 0 : ETH
Communication by Ethernet is
0 : not used.
1 : used.
・ Bit 1 to 7 : Reserved (Please set zero.)
NOTE
Please note the following issues when setting the item "ROBOT DO SIG. PMC
ADDR.", "ROBOT DI SIG. PMC ADDR." and "POWER ON SIG. PMC ADDR.".
1. R address, E address, X address (ROBOT DO SIG. PMC ADDR. and
POWER ON SIG. PMC ADDR. only), and Y address (ROBOT DI SIG. PMC
ADDR. only) can be set.
In case of multi-path PMC, please specify the PMC address like;
<Path number>:<PMC address>.
For example, please specify "2:R500" for R0500 of 2nd path PMC. When the
PMC address only is input like R500, it is processed as the first path PMC
(1:R0500).
If there is no ":" key, "/" or "EOB" key can be used instead.
2. Please input blank (SP) to delete the entered PMC address.
- 37 -
3. SETTING AND CUSTOMIZING IN CNC B-75114EN/04
The signal name and the value of up to 16 signals are displayed in the robot status.
The signal displayed in this robot status can be changed according to an actual machine.
The procedure to specify the signal type (DI/DO, RI/RO and UI/UO) and number is as follows.
Procedure for displaying ROBOT STATUS screen (10.4 inch display unit)
Procedure for displaying ROBOT STATUS screen (7.2/8.4 inch display unit)
Procedure for displaying ROBOT STATUS screen (15 inch display unit)
- 39 -
3. SETTING AND CUSTOMIZING IN CNC B-75114EN/04
NUMBER
The number of signal displayed in the robot status area can be specified. The range of the number that can
be set according to the selected type is as follows.
NOTE
Signal of DI[1] to DI[24] and UI[1] to UI[24] indicate the value of the signal that
CNC outputs to the robot controller. When two or more CNCs are connected
with the robot controller, the value of these signals might be different from the
value of signals in the robot controller because the robot controller exclusively
controls these signals. For details, please refer to “7. INTERFACE BETWEEN
CNC AND ROBOT”.
Selection of Type
1. Press the soft key [(OPRT)]. The following soft key is displayed.
- 40 -
B-75114EN/04 3. SETTING AND CUSTOMIZING IN CNC
Setting of Number
1. Press the cursor key or to move the cursor to "NUMBER" row.
2. Input the number within the range of selected type, and press MDI key or the soft key
[INPUT].
3. The input number is displayed on the screen.
- 41 -
4. SETTING IN ROBOT B-75114EN/04
4 SETTING IN ROBOT
In order to interlock CNC and Robot, the following settings are required in the robot controller.
• Setting reference position
• Setting jog frame
• Transfer of I/O comment
• Setting alarm message transfer *
• Setting step of override change in remote operation *
• Setting Program Number Selection (PNS) *
• Setting interference prevention space
• Setting for CNC Operation screen
• Setting for robot jog feed operation from CNC
About the items attached *, it is not need to change the default setting to use this function. If necessary,
change these settings.
NOTE
About the explanation for the reference position, refer to one of the following
manuals corresponding to your using robot controller.
• FANUC Robot Series R-30iA Controller HANDLING TOOL OPERATOR’S
MANUAL
• FANUC Robot Series R-30iA Mate CONTROLLER LR HANDLING TOOL
OPERATOR’S MANUAL
• FANUC Robot Series R-30iB/ R-30iB Mate/R-30iB Mate Plus/R-30iB Mate
Plus Controller OPERATOR’S MANUAL (Basic Operation)
If you modify the ladder program in the robot controller, above limitations can be changed. For example,
it is possible to start the robot program even if the robot is not the reference position, or it is possible to
start the robot program when the robot is the reference position 2 or 3. About how to modify the ladder
program in the robot controller, refer to “10. ROBOT LADDER PROGRAM”.
- 42 -
B-75114EN/04 4. SETTING IN ROBOT
REF POSN
1/10
No. Enb/Dsbl @Pos Comment
1 DISABLE FALSE [ ]
2 DISABLE FALSE [ ]
3 DISABLE FALSE [ ]
4 DISABLE FALSE [ ]
5 DISABLE FALSE [ ]
6 DISABLE FALSE [ ]
7 DISABLE FALSE [ ]
8 DISABLE FALSE [ ]
9 DISABLE FALSE [ ]
10 DISABLE FALSE [ ]
REF POSN
Reference Position 1/13
Ref. Position Number: 1
1 Comment: [ ]
2 Enable/Disable: DISABLE
3 Is a valid HOME: FALSE
4 Signal definition: DO[ 0]
5 J1: 0.000 +/- 0.000
6 J2: 0.000 +/- 0.000
7 J3: 0.000 +/- 0.000
8 J4: 0.000 +/- 0.000
9 J5: 0.000 +/- 0.000
10 J6: 0.000 +/- 0.000
[ TYPE ] RECORD
- 43 -
4. SETTING IN ROBOT B-75114EN/04
NOTE
About the detail of jog frame and how to set jog frame, refer to one of the
following manuals corresponding to your using robot controller.
• FANUC Robot Series R-30iA Controller HANDLING TOOL OPERATOR’S
MANUAL
• FANUC Robot Series R-30iA Mate CONTROLLER LR HANDLING TOOL
OPERATOR’S MANUAL
• FANUC Robot Series R-30iB/R-30iB Mate/R-30iB Plus/ R-30iB Mate Plus
Controller OPERATOR’S MANUAL (Basic Operation)
SETUP Frames
Jog Frames / Direct Entry 1/5
X Y Z Comment
1 0.0 0.0 0.0 [ ]
2 0.0 0.0 0.0 [ ]
3 0.0 0.0 0.0 [ ]
4 0.0 0.0 0.0 [ ]
5 0.0 0.0 0.0 [ ]
7 Set the cursor to the jog frame number that you want to set.
8 Press DETAIL (F2).
9 Press METHOD (F2).
10 Select “Direct Entry” in the displayed menu.
SETUP Frames
Jog Frames Direct Entry 1/7
Frame Number: 1
1 Comment:
2 X: 0.000
3 Y: 0.000
4 Z: 0.000
5 W: 0.000
6 P: 0.000
7 R: 0.000
Configuration: N D B, 0, 0, 0
- 44 -
B-75114EN/04 4. SETTING IN ROBOT
11 Input comment and the data for each axis.
12 Press PREV key to display the jog frame list screen.
[ TYPE ] [ OTHER ]
5 Set the cursor to < Execute > of the item “Send I/O Comments to CNC”, then press ENTER key to
send I/O comments. It is possible to cancel to send I/O comments by PREV key.
6 Select ALL or UPDATE by the function key. ALL means that all I/O comments are send to CNC,
and UPDATE means that only the I/O comments modified after last sending are send to CNC. It is
possible to cancel to send I/O comments by PREV key.
NOTE
Please send ALL comment if comments are modified by means other than
editing on teach pendant.
- 45 -
4. SETTING IN ROBOT B-75114EN/04
6 Set the cursor to the client tag that you want to set, then press DETAIL (F2) key. The following
screen is displayed.
Client Tag C1 :
1 Host Name : CNC1
2 Alarm Output : Enable
3 Send Warning : Disable
4 Send Cause Code : Disable
5 Connection retry : Disable
7 Select Enable or Disable about the item “Alarm Output”, “Send Warning” and “Send Cause Code”.
Followings are the description of the setting items.
- 46 -
B-75114EN/04 4. SETTING IN ROBOT
Table 4.4(b) Setting items and description
Setting item Description
Alarm Output If Enable is selected in this item, up to 4 alarm messages are send to CNC when alarm
occurs and the alarms are reset in the robot controller. The default setting is “Enable”.
Send Warning If Enable is selected in this item, the message of the alarm which severity is WARN is
send to CNC. The default setting is “Disable”.
Send Cause Code If Enable is selected in this item, the cause code of the alarm is send to CNC. The default
setting is “Disable”.
Table 4.4(c) Key operations in Machine interface screen (Communication detail screen)
Key Operation
LIST (F2) Return to the communication list screen.
PREV (F3) Display the communication detail screen for previous CNC number.
NEXT (F4) Display the communication detail screen for next CNC number.
[ TYPE ] [ OTHER ]
- 47 -
4. SETTING IN ROBOT B-75114EN/04
NOTE
1. About interference prevention space function, refer to one of the following
manuals corresponding to your using robot controller.
• FANUC Robot Series R-30iA Controller HANDLING TOOL OPERATOR’S
MANUAL
• FANUC Robot Series R-30iA Mate CONTROLLER LR HANDLING TOOL
OPERATOR’S MANUAL
• FANUC Robot Series R-30iB/ R-30iB Mate/R-30iB Plus/R-30iB Mate Plus
Controller OPERATOR’S MANUAL (Basic Operation)
2. When North America setting (A05B-2600-R650 : R-30iB/R-30iB Mate or later,
A05B-2500-R650 : R-30iA/R-30iA Mate) is ordered, this function is an option. It
is required to order Space Check (A05B-2600-J609 : R-30iB/R-30iB Mate or
later, A05B-2500-J609 : R-30iA/R-30iA Mate).
- 48 -
B-75114EN/04 4. SETTING IN ROBOT
Rectangular Space
LIST SCREEN 1/10
No. Enb/Dsbl Comment Usage
1 DISABLE [ ] Common Space
2 DISABLE [ ] Common Space
3 DISABLE [ ] Common Space
4 DISABLE [ ] Common Space
5 DISABLE [ ] Common Space
6 DISABLE [ ] Common Space
7 DISABLE [ ] Common Space
8 DISABLE [ ] Common Space
9 DISABLE [ ] Common Space
10 DISABLE [ ] Common Space
Rectangular Space
DETAILED SCREEN 1/7
SPACE :1 GROUP :1
USAGE : Common Space
1 ENABLE/DISABLE: DISABLE
2 Comment: [ ]
3 Output Signal: DO [ 0]
4 Input Signal: DI [ 0]
5 Priority: High
6 Inside/Outside: Inside
7 Common Space Num: 0
6 In case that you want to define the signals in accordance with “7.4 Other interface signals”, set 105
to the item “Output Signal”, then set 105 to the item “Input Signal”.
7 In order to set the space, press SPACE (F2) to display Space Setup screen. In this screen, set the
interference prevention space. There are following two methods to set the interference prevention
space.
a. Move the cursor to each item and enter the coordinate value by numeric keys.
b. Move the robot to the vertex of the rectangular, then, press RECORD (F5) with shift key to
record the robot position.
8 After setting the space, press PREV key to return to the Detail screen.
9 Press PREV key again to return to the List screen.
- 49 -
4. SETTING IN ROBOT B-75114EN/04
Furthermore, in order to execute jog feed of the machine tool on CNC operation screen, it is need to set
keep relay K0001.0 in PMC to 1 to enable signal process for the machine tool operation.
Procedure to set
1 Press MENU key to display the screen menu.
2 Select “SETUP”.
3 Press TYPE (F1) key to display the screen change menu.
4 Select “Machine I/F” in the menu. Machine interface screen is displayed.
In order to execute machine tool operation, set keep relay in PMC by the following procedure.
- 50 -
B-75114EN/04 4. SETTING IN ROBOT
PMC<RUNNING> PMC<RUNNING>
X Byte X0000.0 X Bit X0000.0
Addr. Symbol 7 6 5 4 3 2 1 0 Hex Dec Address Symbol Port Name Value
X0000 00000000 : 00 0 X0000.1 DI1 DI[1] :0
X0001 00000000 : 00 0 X0000.2 DI2 DI[2] :0
X0002 00000000 : 00 0 X0000.3 DI3 DI[3] :0
X0003 00000000 : 00 0 X0000.4 DI4 DI[4] :0
X0004 00000000 : 00 0 X0000.5 DI5 DI[5] :0
X0005 00000000 : 00 0 X0000.6 DI6 DI[6] :0
X0006 00000000 : 00 0 X0000.7 DI7 DI[7] :0
X0007 00000000 : 00 0 X0001.0 DI8 DI[8] :0
X0008 00000000 : 00 0 X0001.1 DI9 DI[9] :0
X0009 00000000 : 00 0 X0001.2 DI10 DI[10] :0
Comment: Comment:
If the keep relay in PMC cannot be modified and the message “Protected by K17.4” is displayed, enable
to modify data by the following procedure, then modify the keep relay.
PMC<RUNNING>
Parameters 1/6
1 Forbid ladder monitor K900.0: DISABLE
2 Use Programmer K900.1: ENABLE
3 Stop PMC at startup K900.2: DISABLE
4 Change address value K900.4: EABLE
5 Protect data tbl ctl K900.7: DISABLE
6 Use Override mode K906.0: DISABLE
- 51 -
4. SETTING IN ROBOT B-75114EN/04
Procedure to set
1 Press MENU key to display the screen menu.
2 Select “SETUP”.
3 Press TYPE (F1) key to display the screen change menu.
4 Select “Machine I/F” in the menu. Machine interface screen is displayed.
Setup Machine I/F
Setup 1/5
NOTE
In case that the setting for “Jog Feed with DI signals” is changed, the new setting
is enabled after the robot controller is restarted.
- 52 -
B-75114EN/04 5. ROBOT SCREEN ON CNC
- 53 -
5. ROBOT SCREEN ON CNC B-75114EN/04
- 54 -
B-75114EN/04 5. ROBOT SCREEN ON CNC
2. Press the soft key of the signals which you will display.
- Soft key [UO/UI]: Interlock signals between Robot and CNC
- Soft key [RO/RI]: Signals between Robot and its hand unit
- Soft key [DO/DI]: General-purpose signals between Robot and CNC
3. The selected signals are displayed on the screen.
Scrolling
1. Press the cursor key or to select either SIGNAL STATUS (DI) or (DO). The title of the
selected signal is highlighted.
2. Press the cursor key or to scroll the selected SIGNAL STATUS list by one line. And
Number searching
1. Press the cursor key or to select either SIGNAL STATUS (DI) or (DO).
2. Input the signal number to search, and press the soft key [NO. SRH].
3. The searched signal is displayed at the top of the list.
- 55 -
5. ROBOT SCREEN ON CNC B-75114EN/04
- 56 -
B-75114EN/04 5. ROBOT SCREEN ON CNC
• NO.
The selected group number is highlighted with blue.
• ROBOT
The robot program number is displayed. The robot program is common for all CNC paths.
• NC MACHINE PROGRAM (COMMENT)
The NC program is displayed by each CNC path.
When a comment is longer than a display size, a character “~” is put at the end of displayed
character string.
• FOLDER
The folder of the selected NC program is displayed.
When a folder name is longer than a display size, a part of the folder path is shortened with a
character “…”. If the cursor points at a Robot program, information is not displayed on this
item.
3. Press the cursor key or to move the work group you will set.
4. Press the soft key [GROUP SELECT].
5. The Robot program and NC program of the work group are notified to Robot and CNC respectively.
NOTE
When you modify the setting of selected work group, please select the same
work group again after the modification is finished. By selecting the work group
again, the modified value is notified to CNC and the robot.
NOTE
Some consecutive inputs by EOB are not allowed.
Setting of NC program
There are two methods to select NC program.
・ The setting operation in the ROBOT PROGRAM SELECT screen
・ The setting operation in the PROGRAM FOLDER screen
- 58 -
B-75114EN/04 5. ROBOT SCREEN ON CNC
4. The previously-selected current folder and the device will be displayed on the PROGRAM
FOLDER screen.
Please note that the available soft keys depend on the selected device type. And when “CNC_MEM”,
“MEMCARD” or “DATA_SV” is chosen as the device type, soft key [MACHIN SELECT] is
available.
5. Move the cursor to the program you will select, press the soft key [MACHIN SELECT].
6. The selected NC program will be memorized and displayed on the ROBOT PROGRAM SELECT
screen.
NOTE
The soft key [MACHIN SELECT] is displayed on the PROGRAM FOLDER
screen only when entering from the ROBOT PROGRAM SELECT screen.
- 59 -
5. ROBOT SCREEN ON CNC B-75114EN/04
2. Press the soft key , , , or to move the cursor to the data you will delete.
3. Press the soft key [DELETE], and the following soft keys will appear.
4. If the soft key [EXEC] is pressed, the highlighted data is deleted. If the soft key [CAN] is pressed,
the deletion is canceled.
The ROBOT REMOTE OPERATION screen is provided as a sample program of FANUC PICTURE.
This section describes the operation procedure of the sample ROBOT REMOTE OPERATION screen.
- 60 -
B-75114EN/04 5. ROBOT SCREEN ON CNC
The 8.4 inch REMOTE OPERATION screen is composed of the following three sub screens.
When calling the ROBOT REMOTE OPERATION screen from other CNC screen, the ROBOT
CONNECTION screen is displayed first. And each sub screen can be changed by the corresponding soft
key.
When pressing the soft key +, the soft keys are changed as follows. The definition of each soft key is
same as that of 10.4 inch ROBOT REMOTE OPERATION screen.
- 61 -
5. ROBOT SCREEN ON CNC B-75114EN/04
And when pressing the soft key <, the soft keys are changed back to the ones for selecting the sub
screens.
When moving the cursor to the selected item, the cursor is highlighted with yellow.
2 Confirm that the robot state is in the INTERLOCK MODE by using the ROBOT STATUS.
3 Press the soft key [ON] to acquire the remote operation right of the robot.
4 When the remote operation right is acquired successfully, the highlighted field is changed to “ON”,
and own CNC number is displayed at “CON. CNC”.
NOTE
1. To operate Jog / hand / home position/ override, the remote operation right has
to be acquired.
2. The robot can be reset regardless of the remote operation right.
3. If the remote operation right cannot be acquired because the robot is running a
program, or the other CNC has already acquired the remote operation right, the
message, “Failed to get control right of robot.” is displayed in the message field
at the bottom of the screen.
4. When the machine tool is in the stand-alone mode, the remote operation right
cannot be acquired. (The message “Interlock mode signal is off” is displayed in
the screen.)
Jog feed
1. Press the soft key [JOG] to move the cursor to “COORD.”.
And select the coordinate system by pressing the soft keys “XYZ” or “JOINT”.
Fig. 5.3 (g) Selecting of the coordinate system for Jog feed
- 64 -
B-75114EN/04 5. ROBOT SCREEN ON CNC
NOTE
The Cartesian coordinate system is selected initially.
COORD. COORD.
X+ J1 +
X- J1 -
... ...
Z- J6 -
NOTE
Just when the cursor is focusing an axis, the coordinate system cannot be
changed.
3. The robot will be moved according to the selected coordinate system and axis direction just while
being pushing "Robot operation button" of a machine operator’s panel.
NOTE
The soft key is not available while pushing “Robot operation button” of a machine
operator’s panel.
Hand operation
1. Press the soft key [HAND] to move the cursor to “<Hand operation>” as follows.
- 65 -
5. ROBOT SCREEN ON CNC B-75114EN/04
1. <Hand operation1>
2. <Hand operation2>
...
3. When one of the hand operations is being selected and "Robot operation button" of a machine
operator’s panel is pushed, the robot will start the corresponding hand operation.
NOTE
The machine tool builder has to customize the contents of the hand operations
according to the actual system.
2 When “HOME POSITION” is being selected and "Robot operation button" of a machine operator’s
panel is pushed, the robot will start returning to the home position.
The robot just moves only while the button is being pushed. When the robot reaches the home
position, “RBT HOME POS.” of ROBOT STATUS becomes “ON”. So the button has to be kept
pushing until reaching the home position (until "RBT HOME POS." is "ON").
NOTE
When the robot already reached its home position, the robot does not move any
more even if the button is pushed.
- 66 -
B-75114EN/04 5. ROBOT SCREEN ON CNC
Override change
The override of the robot operation speed can be changed by using the soft key [OVERRIDE].
NOTE
When the soft key is pushed once, its changed width of the override value
depends on the setting of the robot controller. Please see “4.5. SETTING STEP
OF OVERRIDE CHANGE”.
Robot restart
If the robot stops the execution by some reason and CNC falls into a waiting state, the system can be
restarted by restarting the robot program without restarting the CNC side.
Note that the robot controller must be in a state that CNC can call the robot program. It is typically
required to reset the robot and return the robot to its home position before restarting the robot program
Please refer to "7.1.3 Recovery from Failure of a Robot Program" for detail.
1 Check that “CON.CNC” is “0”. (All CNCs do not have the remote operation right of the robot.)
2 Press the soft key [RE-START], and the cursor will be moved to ”RESTART” as follows.
3 When “RESTART” is being selected and "Robot operation button" of a machine operator’s panel is
pushed, the robot will start the current robot program.
NOTE
The robot restart operation can be executed only when all CNCs are releasing
the robot remote operation right.
If another CNC has acquired the remote operation right when the robot restart
operation is executed in this screen, the robot cannot start the robot program.
Robot reset
When the soft key [ROBOT RESET] is pressed, the robot alarms are cleared.
NOTE
The robot reset operation can be executed regardless of the robot remote
operation right.
- 67 -
6. CNC SCREEN ON ROBOT B-75114EN/04
NOTE
• In case that the robot does not communicate with CNC by Ethernet, CNC
data cannot be displayed on the robot teach pendant.
• In case that the screen on teach pendant is divided, both CNC status display
screens and CNC operation screens can’t be displayed in some windows. If
you try to display these screens in another window, the alarm occurs and the
designated screen can’t be displayed.
The language for display in these screens is same as the language selected in the robot controller. But, if
the language selected in the robot controller is different from the language selected in CNC, these screens
may not be displayed correctly.
- 68 -
B-75114EN/04 6. CNC SCREEN ON ROBOT
• These lamps display CNC status. Followings are explanation for each lamp.
(3) This lamp indicates CNC axis moving status, dwell status.
- 70 -
B-75114EN/04 6. CNC SCREEN ON ROBOT
(4) This lamp indicates CNC auxiliary function execution status.
About each status display, refer to Common to Lathe System/Machining Center System OPERATOR’S
MANUAL corresponding to your using CNC.
- 71 -
6. CNC SCREEN ON ROBOT B-75114EN/04
1. Occurring alarm
• Up to 17 alarms occurring in CNC are displayed in this screen.
• Up to 8 alarms are displayed at the same time.
- 72 -
B-75114EN/04 6. CNC SCREEN ON ROBOT
1. Operator message
• Operator messages displayed in CNC are displayed.
• In case that CNC is set not to display the operator message, no message is displayed in this
screen.
• In this screen, up to 254 characters can be displayed. The characters after 254th character in the
operator message cannot be displayed in this screen.
- 73 -
6. CNC SCREEN ON ROBOT B-75114EN/04
1. Running program
• The program executed in CNC is displayed in this screen.
• One block of CNC program is displayed in one line. Up to 37 characters can be displayed in
one line.
• The block executed in CNC is displayed in the first line.
• The read-ahead block is highlighted with light blue.
• Up to 9 blocks can be displayed at the same time.
- 74 -
B-75114EN/04 6. CNC SCREEN ON ROBOT
1. DI signal
• Signal status and comments of robot input signal (DI) connected with CNC are displayed.
• The comments are same as the comments set in I/O screen for the robot controller.
2. DO signal
• Signal status and comments of robot output signal (DO) connected with CNC are displayed.
• The comments are same as the comments set in I/O screen for the robot controller.
Change screen
The displayed I/O can be changed by pressing arrow buttons and by input of signal number.
The language for display in these screens is same as the language selected in the robot controller. But, if
the language selected in the robot controller is different from the language selected in CNC, these screens
may not be displayed correctly.
- 75 -
6. CNC SCREEN ON ROBOT B-75114EN/04
- 76 -
B-75114EN/04 6. CNC SCREEN ON ROBOT
NOTE
The robot controller only processes the signals to execute jog feed of machine
tool according to the operation in this screen. In order to execute jog feed of
machine tool actually, it is required to create the ladder program in CNC to move
axes in the machine tool according to signals from the robot controller. Please
refer to “7.3 MACHINE TOOL OPERATION ON ROBOT TEACH PENDANT”
and create the ladder program in CNC.
In order to execute machine tool operation on this screen, the following settings are required.
• Enable machine tool operation in machine interface screen.
• Set the keep relay K0001.0 in PMC to 1.
About setting method of these settings, please refer to “4.8 SETTING FOR CNC OPERATION
SCREEN”.
1. Operation Enable button, Operation Enable lamp, Response code from CNC
• In case that all conditions to operate the machine tool operation are satisfied, when Operation
Enable (“OPR. Enable”) button is pressed, Machine Operation Enable Request signal is output
to CNC.
• If Machine Operation Enable Status signal is responded from CNC that has received Machine
Operation Enable Request signal, Operation Enable lamp which is in the right side of “OPR.
Enable” button is turned on to indicate that the machine tool can be operated on this screen.
- 77 -
6. CNC SCREEN ON ROBOT B-75114EN/04
• In case that machine tool cannot be operated, Operation Enable lamp is not turned on and the
Response code that indicates the reason is displayed in “res.”.
2. CNC Actual Position display
• Current position of each axis in CNC in absolute coordinate is displayed. Up to 5 axes data are
displayed at one screen.
• In case that the number of axes in the selected path is more than 5, the displayed axes can be
changed by “Next” button.
• In case that there are more than 8 axes in the selected path, the axis data after 8th axis is not
displayed.
3. Machine Operation Axis and Direction Select button
• The axis and direction for jog feed of the machine tool are selected using these buttons. In order
to select the axis and the direction, press the “+” or “–“ button which is in the right side of the
each axis data that you want to operate.
• The axis which position data is displayed can be selected. In case that the machine tool has more
than 5 axes, change the displayed axes by “Next” button in order to select an axis after 5th axis.
4. Machine Operation Speed Override button
• The speed override for jog feed of the machine tool can be selected from “VFine”, “Low”,
“Medium”, “High”.
Change override
While machine tool operation is enabled, override to execute jog feed of machine tool can be selected by
machine operation speed override button among “VFine”, “Low”, “Medium” and “High”.
- 78 -
B-75114EN/04 6. CNC SCREEN ON ROBOT
• In standard setting, following table indicates the override value for each button.
• The output value when each button is pressed can be changed by the system variables
$MTSERV_CFG.$OV_VAL[1]~[4].
Table 6.2.1(b) System variables to define override value for each button
Button System variables
VFine $MTSERV_CFG.$OV_VAL[1]
Low $MTSERV_CFG.$OV_VAL[2]
Medium $MTSERV_CFG.$OV_VAL[3]
High $MTSERV_CFG.$OV_VAL[4]
• When Machine tool operation screen is displayed, or when selected CNC or path is changed, VFine is
selected automatically.
• When the selection of override is changed during machine tool operation, machine tool operation is
stopped.
1. Select axis and direction for jog feed of machine tool by pressing “+” or “-“ button in the right side
of position data of each axis. Two or more buttons in these buttons cannot be pressed
simultaneously.
2. Press “M.JOG” (F5) key while the shift key is pressed on the robot teach pendant.
NOTE
“M.JOG” button in machine tool operation screen is not available. Please press
F5 key on the robot teach pendant to operate jog feed.
3. When the jog feed of the machine tool is executed for the first time after machine tool operation
screen is displayed or the selected CNC or path is changed, the following pop-up dialog box is
displayed to confirm the CNC and Path.
4. Confirm CNC and path displayed in pop-up dialog box. If CNC and path that you want to operate is
displayed in pop-up dialog box, press “YES” button. Then, press “M.JOG” (F5) key while the shift
key is pressed again. If CNC or path is different form CNC or path that you want to operate, press
“NO” button and select correct CNC and path.
- 79 -
6. CNC SCREEN ON ROBOT B-75114EN/04
It is possible not to display this pop-up dialog box by setting the system variable. In case that the
system variable $MTSERV_CFG.$JOG_CONFIRM is TRUE, pop-up dialog box is displayed. If the
system variable $MTSERV_CFG.$JOG_CONFIRM is FALSE, pop-up dialog box is not displayed
and the signals for jog feed of the machine tool are output without confirmation.
5. While the jog feed of machine tool is executed, axis and direction for jog feed cannot be changed. In
order to change axis and direction for jog feed, stop the jog feed and then change axis and direction
for jog feed.
6. The conditions to stop the machine tool operation are as follows.
• Shift key or “M.JOG” (F5) key is released.
• Emergency stop button on the robot teach pendant is pressed.
• Emergency stop button on the operator panel is pressed. (R-30iA/R-30iA Mate controller)
• External emergency stop signal is asserted. (R-30iA/R-30iA Mate controller)
• Operation Enable button is pressed again to disable the operation.
• The robot teach pendant is disabled.
• Interlock Mode signal in CNC is turned off.
• The screen on the robot teach pendant is changed to another screen.
• All Machine Operation Axis and Direction Select buttons are not pressed.
• Other Operation Axis and Direction Select button or other Machine Operation Speed Override
button is pressed.
• Ethernet communication with the selected CNC is disconnected.
• Robot program is executed.
• Robot is moved.
Tool offset data in CNC for machining center system and tool offset data in CNC for lathe system are
different. And the required tool offset is different by the option configuration in CNC. In tool offset
screen, the required tool offset data are displayed according to type of CNC.
In order to set tool offset data in this screen, it is needed to set “Tool offset data changing” to ENBALE in
Machine interface screen in SETUP menu. If “Tool offset data changing” is set to DISABLE, the back
surface of tool offset data in this screen is gray. Tool offset data that back surface is gray cannot be set.
- 80 -
B-75114EN/04 6. CNC SCREEN ON ROBOT
Tool offset data in CNC for machining center system and tool offset data in CNC for lathe system are
different. And the required tool offset is different by the option configuration in CNC. Furthermore, the
tool offset data that is required when tool offset for milling and turning function is enabled in CNC are
different. Tool offset screen corresponding to each CNC type is as follows.
Fig. 6.2.2(b) Tool offset screen (Machining center system / Tool offset memory A)
- 81 -
6. CNC SCREEN ON ROBOT B-75114EN/04
Fig. 6.2.2(c) Tool offset screen (Machining center system / Tool offset memory B)
Fig. 6.2.2(d) Tool offset screen (Machining center system / Tool offset memory C)
Lathe system
In CNC for lathe system, the tool offset screen is decided by tool geometry/wear compensation in CNC.
- 82 -
B-75114EN/04 6. CNC SCREEN ON ROBOT
Fig. 6.2.2(e) Tool offset screen (Lathe system / Tool geometry/wear compensation is disabled)
When “OFFSET2” button is pressed, Y-axis offset data are displayed. In case that Y-axis offset is
disabled in CNC, “OFFSET2” button is not displayed.
Fig. 6.2.2(f) Tool offset screen (Lathe system / Tool geometry/wear compensation is disabled)
Fig. 6.2.2(g) Tool offset screen (Lathe system / Tool geometry/wear compensation is enabled)
Alphabet “W” in the left of tool offset number represents the wear offset data, and “G” represents the
geometry offset data. In case that these alphabets are not displayed in the tool offset data display by
setting in CNC, these alphabets are not displayed in this screen, too. When setting for display of “W” and
“G” is modified in CNC while tool offset screen is displayed on the robot teach pendant, please press
“REFRESH” key on the robot teach pendant to reflect the setting in CNC.
In order to display tool offset data to set, change the screen by the buttons under side of screen. The
button corresponding to current screen is green. Table 6.2.2(a) shows the tool offset data displayed by
each button.
- 84 -
B-75114EN/04 6. CNC SCREEN ON ROBOT
Fig. 6.2.2(h) Tool offset screen (Lathe system / Tool geometry/wear compensation is enabled)
Fig. 6.2.2(i) Tool offset screen (Lathe system / Tool geometry/wear compensation is enabled)
- 85 -
6. CNC SCREEN ON ROBOT B-75114EN/04
Fig. 6.2.2(j) Tool offset screen (Lathe system / Tool geometry/wear compensation is enabled)
Fig. 6.2.2(k) Tool offset screen (Lathe system / Tool geometry/wear compensation is enabled)
- 86 -
B-75114EN/04 6. CNC SCREEN ON ROBOT
Fig. 6.2.2(l) Tool offset screen (Lathe system / Tool geometry/wear compensation is enabled)
In case that tool offset for milling and turning function is enabled
In case that tool offset for milling and turning function is enabled, the following tool offset data are
displayed in tool offset screen.
• X-axis wear offset data
• Y-axis wear offset data
• Z-axis (tool length) wear offset data
• X-axis geometry offset data
• Y-axis geometry offset data
• Z-axis (tool length) geometry offset data
• Tool nose radius (tool radius) wear offset data (When tool nose radius offset is enabled in CNC)
• Tool nose radius (tool radius) geometry offset data (When tool nose radius offset is enabled in CNC)
• Direction of imaginary tool nose (T) (When direction of imaginary tool nose is enabled in CNC)
Fig. 6.2.2(m) Tool offset screen (Tool offset for milling and turning function is enabled)
- 87 -
6. CNC SCREEN ON ROBOT B-75114EN/04
Alphabet “W” in the left of tool offset number represents the wear offset data, and “G” represents the
geometry offset data. In case that these alphabets are not displayed in the tool offset data display by
setting in CNC, these alphabets are not displayed in this screen, too. When setting for display of “W” and
“G” is modified in CNC while tool offset screen is displayed on the robot teach pendant, please press
“REFRESH” key on the robot teach pendant to reflect the setting in CNC.
When “OFFSET2” button is pressed, Y-axis wear offset data and Y-axis geometry offset data are
displayed.
Fig. 6.2.2(n) Tool offset screen (Tool offset for milling and turning function is enabled)
• The unit and decimal place of tool offset data in this screen are decided by setting in CNC.
• The setting range corresponding to the unit and decimal place of tool offset data are as follows.
- 88 -
B-75114EN/04 6. CNC SCREEN ON ROBOT
Table 6.2.2(c) Setting range corresponding to decimal place (Inch input)
Decimal place Setting range
3 decimal places -999.999inch ~ +999.999inch
4 decimal places -999.9999inch ~ +999.9999inch
5 decimal places -999.99999inch ~ +999.99999inch
6 decimal places -999.999999inch ~ +999.999999inch
7 decimal places -99.9999999inch ~ +99.9999999inch
• In case that the setting “Tool offset data change” in Machine interface screen is set to DISABLE, all
tool offset data in tool offset screen cannot be modified. The back surface of all tool offset data is
gray.
• Tool offset data restricted to modify by “Setting the tool offset value by MDI key input” in CNC
cannot be modified in this screen. The back surface of tool offset data restricted to modify is gray.
NOTE
The back surface of the tool offset data that is restricted to modify is gray. But, in
the following cases, the back surface of the tool offset data that is restricted to
modify may not be gray. In these cases, please press “REFRESH” (F4) key in
the tool offset screen in order to update the screen.
• While tool offset screen is displayed, setting of “Tool offset data changing” is
modified in Machine interface screen.
• While tool offset screen is displayed, setting of “Setting the tool offset value
by MDI key input” in CNC is modified.
- 89 -
7. INTERFACE BETWEEN CNC AND ROBOT B-75114EN/04
Program Start
(Wait)
Program End
Program Start
(Wait)
Program End
In order to shorten the down time of the machine tool, the starting method that the robot program is
started before machining in the machine tool is ended and keeps waiting for the end of machining is used
commonly. This starting method is called "Overlap start".
- 90 -
B-75114EN/04 7. INTERFACE BETWEEN CNC AND ROBOT
In overlap start, Service Call signal and Service completed signal to interlock between NC Program and
the robot program are used in addition to the signals needed for the program start. The robot program for
overlap start is divided into three parts, which are pre-service, service and post-service. Sequence of
overlap start is shown below.
1 NC Program issue Program Call signal prior to machining process completed. Specified Robot
Program is launched.
2 This robot program processes the pre-service task and waits for Service Call signal.
3 NC Program issue Service Call signal when machining process is completed. NC Program waits for
Service Completed signal.
4 Robot Program continues and processes the service task and issue Service Completed signal at the
end of the service task.
5 NC Program receives Service Completed signal and continues.
6 Robot Program processes the post-service task. In overlap start, Robot Program does not issue
Completed signal at the end of the robot program.
Program Start
Service Completed
(Wait)
Program Call
Service Completed
(Wait)
- 91 -
7. INTERFACE BETWEEN CNC AND ROBOT B-75114EN/04
Form CNC to the robot controller From the robot controller to CNC
CNC Robot Name CNC Robot Name
Signal address DI Signal address DO
number number
R7232.0 1 *IMSTP R7200.0 1 Command enabled
R7232.1 2 *Hold R7200.1 2 System ready
R7232.2 3 *SFSPD R7200.2 3 Program running
R7232.3 4 Cycle stop R7200.3 4 Program paused
R7232.4 5 Fault reset R7200.4 5 Motion held
R7232.5 6 Start R7200.5 6 Fault
R7233.0 9 PNS1 R7200.6 7 At perch
R7233.1 10 PNS2 R7200.7 8 TP enabled
R7233.2 11 PNS3 R7201.0 9 Battery alarm
R7233.3 12 PNS4 R7201.1 10 Busy
R7233.4 13 PNS5 R7201.2 11 SNO1
R7233.5 14 PNS6 R7201.3 12 SNO2
R7233.6 15 PNS7 R7201.4 13 SNO3
R7233.7 16 PNS8 R7201.5 14 SNO4
R7235.0 25 Service Type 1 R7201.6 15 SNO5
R7235.1 26 Service Type 2 R7201.7 16 SNO6
R7235.2 27 Service Type 3 R7202.0 17 SNO7
R7235.3 28 Service Type 4 R7202.1 18 SNO8
R7236.1 34 Interlock Mode R7202.2 19 SNACK
R7236.2 35 Program Call R7207.0 57 Program Reply 1
R7245.1 106 Service Call R7207.1 58 Program Reply 2
R7245.6 111 Cycle Stop R7207.2 59 Program Reply 3
R7207.3 60 Program Reply 4
R7207.5 62 Maintenance State
R7207.6 63 Service State
R7207.7 64 Machine Interlock Mode
R7208.0 65 Remote Operation
Mode
R7208.4 69 Not Ready
R7208.5 70 Ready
R7208.6 71 Completed
R7213.1 106 Service Completed
- 92 -
B-75114EN/04 7. INTERFACE BETWEEN CNC AND ROBOT
- 94 -
B-75114EN/04 7. INTERFACE BETWEEN CNC AND ROBOT
NOTE
About peripheral I/O in the robot controller, refer to one of the following manuals
corresponding to your using robot controller.
• FANUC Robot series R-30iA CONTROLLER HANDLING TOOL
OPERATOR’S MANUAL(B-83124EN)
• FANUC Robot series R-30iA Mate CONTROLLER LR HANDLING TOOL
OPERATOR’S MANUAL (B-83134EN)
• FANUC Robot series R-30iB/R-30iB Mate/ R-30iB Plus/R-30iB Mate Plus
CONTROLLER OPERATOR’S MANUAL (Basic Operation)(B-83284EN)
Process in CNC
• When the robot program number is selected in ROBOT PROGRAM SELECT screen on CNC, the
selected program number is output by PNS 1 to 8 signals.
• When M code is executed in NC Program, the request for the robot operation is output by Service
Type 1 to 4 signals according to the kind of M code and the state of cycle stop signal.
About the request for the robot operation that outputs to the robot controller according to M code
and Cycle Stop signal, refer to “8. NC PROGRAM”.
• The Program Call signal is turned on after Service Type signals are output.
- 96 -
B-75114EN/04 7. INTERFACE BETWEEN CNC AND ROBOT
Signal sequence
The signal sequence to start the robot program by CNC is as follows.
Service Type 1 to 4
Program Call
(1) When the robot program number is selected in ROBOT PROGRAM SELECT
screen on CNC, the value of the robot program number is set to PNS 1 to 8.
(2) When M code is executed in CNC program, CNC ladder program outputs Service
Type signals according to the request to the robot, and turns on Program Call
signal. The robot controller reads Service Type signals when robot Program Call
signal is turned on, and executes the requested operation.
(3) When the robot completes the requested operation, Completed signal is turned on.
When Completed signal is turned on, CNC ladder program is turned off Program
Call signal, and input FIN to CNC. In the robot controller, when Program Call
signal is turned off, Completed signal is turned off.
End of the robot program execution
In the following case, Completed signal is output from the robot controller.
• When the robot program execution is ended because the last line in the robot program has been
executed normally.
• When the robot program execution is ended because the END instruction in the robot program has
been executed.
In the following case, Completed signal is not output even if the robot program execution is ended.
• When the robot program execution is aborted by selecting “Abort” in the menu displayed by
pressing FCTN key on the robot teach pendant.
• When the robot program execution is aborted because the ABORT instruction in the robot program
has been executed.
• When the robot program execution is aborted by input of peripheral signal UI[4] (CSTOPI).
• When the robot program execution is aborted by the alarm which severity is more serious than
STOP.L.
• When the paused program is aborted because any other program is selected in case that the multi
program selection is disabled.
The system operation can be continued by restarting the robot program without restarting the NC program.
If restarted robot program ended successfully, Completed signal will be turned ON and NC program can
resume.
Note that in case the robot program is not aborted but is paused, this method cannot be applied. Paused
robot program must be aborted by Reset operation (described below) or manual operation using the teach
pendant.
- 97 -
7. INTERFACE BETWEEN CNC AND ROBOT B-75114EN/04
In addition, when keep relay K0000.7 is 0, the paused robot program can be aborted by input of Fault
reset signal from CNC.
• In NC Program, M code to notify the overlap start is executed before machining is ended.
• In the robot program, robot is moved to the position near the machine tool, and waits for input of
Service Call signal from CNC.
• In NC Program, M code to request to exchange the work piece is executed when machining is ended,
and Service Call signal is output to the robot controller.
• When the robot program receives Service Call signal, waiting for Service Call signal is released, and
the requested operation is executed.
• NC Program waits for input of Service Completed signal from the robot controller.
• When the robot goes outside the machine tool after the operation inside the machine tool, the robot
controller output Service Completed signal to CNC in order to release waiting in NC Program.
- 98 -
B-75114EN/04 7. INTERFACE BETWEEN CNC AND ROBOT
Signal sequence
In overlap start, the signal sequence to start the robot program by CNC is as follows.
Program Call
Service Call
(1) In NC program, when M code (M62) to notify the overlap start is executed,
CNC sample ladder output the kind of request operation to Service Type 1 to 4
signals, and turns on Program Call signal, inputs FIN to CNC immediately.
The robot controller reads Service Type signals when Program Call signal is
turned on, the robot moves to the position near the machine tool.
(2) In NC program, when machining is ended, M code to request the robot of the
work exchange is executed, and CNC sample ladder turns on Service Call
signal. In the robot program, the requested operation is executed when Service
Call signal is turned on.
(3) In the robot program, when the requested operation is ended, Service
Completed signal is turned on. In CNC sample ladder, when Service
Completed signal is turned on, Program Call signal and Service Call signal is
turned off, and input FIN to CNC. In the robot program, when Service Call
signal is turned off, Service Completed signal is turned off.
NOTE
It is need to set the number of the connected CNC with the robot beforehand.
Refer to “2. CONNECTION BETWEEN CNC AND ROBOT”.
- 99 -
7. INTERFACE BETWEEN CNC AND ROBOT B-75114EN/04
About following signals, there is the different point between the case that the robot is connected with two
or more CNCs and the case that robot is connected with only one CNC.
• *IMSTP signal
In case that the robot is connected with two or more CNCs, the logical product of *IMSTP signals all
CNC which are in interlock mode is input to peripheral I/O UI[1].
• *HOLD signal
- 100 -
B-75114EN/04 7. INTERFACE BETWEEN CNC AND ROBOT
In case that the robot is connected with two or more CNCs, the logical product of *HOLD signals in
all CNC which are in interlock mode is input to peripheral I/O UI[2].
• *SFSPD signal
In case that the robot is connected with two or more CNCs, the logical product of *SFSPD signals in
all CNC which are in interlock mode is input to peripheral I/O UI[3].
• ENABLE signal
In case that the robot is connected with two or more CNCs, the logical product of ENABLE signals in
all CNC which are in interlock mode is input to peripheral I/O UI[8].
About Service Type 1 to 4 signals, the input signals from each CNC are set to the group I/O in the robot
controller as follows.
Table 7.1.5 Service type input signal
CNC1 CNC2 CNC3 CNC4
Group input signal number for GI[1] GI[2] GI[3] GI[4]
service type signal
If above conditions are satisfied, check whether the remote condition is satisfied and peripheral I/O UO[1]
in the robot controller is ON. About the remote condition, refer to one of the following manuals
corresponding to your using robot controller.
• FANUC Robot Series R-30iA CONTROLLER HANDLING TOOL OPERATOR’S MANUAL
• FANUC Robot Series R-30iA Mate CONTROLLER LR HANDLING TOOL OPERATOR’S
MANUAL
• FANUC Robot Series R-30iB/R-30iB Mate/R-30iB Plus/R-30iB Mate Plus CONTROLLER
OPERATOR’S MANUAL (Basic Operation)
In overlap start, CNC does not work after the robot program execution is
ended.
In overlap start, Service Completed signal (DO[106]) is turned on/off by the command in the robot
program. After the execution of the robot program is ended abnormally, DO[106] remains ON. Because
the change of Service Completed signal from OFF to ON is detected in CNC sample ladder, even if NC
Program is restarted in this state, the robot program does work correctly. In this case, turn off DO[106]
first, then restart NC Program.
- 101 -
7. INTERFACE BETWEEN CNC AND ROBOT B-75114EN/04
In robot remote operation, the robot controller executes the operation requested by CNC according to the
input signals from CNC allowed to execute the robot remote operation. Hand operation of the robot,
home position return of the robot, and change of speed override of the robot are executed using macro
programs in the robot controller. About the detail of these macro programs, refer to “9.2 TEACHING
MACRO PROGRAM FOR REMOTE OERATION”. Joint jog of the robot and Cartesian jog of the robot
are executed without macro program.
NOTE
In order to execute jog feed of the robot by remote operation, it is need to enable
the function beforehand. Refer to “4.10 SETTING FOR ROBOT JOG FEED
OPERATION FROM CNC”.
From CNC to the robot controller Form the robot controller to CNC
CNC Robot Name CNC Robot Name
Signal DI Signal DO
address number address number
R7235.4 29 Hand Operation Type 1 R7205.0 41 Override output 1
R7235.5 30 Hand Operation Type 2 R7205.1 42 Override output 2
R7235.6 31 Hand Operation Type 3 R7205.2 43 Override output 3
R7235.7 32 Hand Operation Type 4 R7205.3 44 Override output 4
R7236.3 36 Remote Operation Request R7205.4 45 Override output 5
R7236.4 37 Remote Operation Run R7205.5 46 Override output 6
R7236.5 38 Override Up R7205.6 47 Override output 7
R7236.6 39 Override Down R7205.7 48 Override output 8
R7236.7 40 Joint Jog Selection R7206.0 49 CNC ID Number 1
R7237.0 41 Direction for Joint Jog (J1+) R7206.1 50 CNC ID Number 2
R7237.1 42 Direction for Joint Jog (J1-) R7206.2 51 CNC ID Number 3
R7237.2 43 Direction for Joint Jog (J2+) R7206.3 52 CNC ID Number 4
R7237.3 44 Direction for Joint Jog (J2-) R7206.4 53 Access Control 1
R7237.4 45 Direction for Joint Jog (J3+) R7206.5 54 Access Control 2
- 102 -
B-75114EN/04 7. INTERFACE BETWEEN CNC AND ROBOT
- 103 -
7. INTERFACE BETWEEN CNC AND ROBOT B-75114EN/04
• In the robot controller, when this signal is turned on with the signal to select operation, Jog Feed
Operation State signal or Hand Operation State signal or Home Return Operation State signal, in
remote operation mode, the requested operation is executed. In jog feed operation and home position
return operation, when this signal is turned off, the executing operation is stopped. Hand Operation
is executed when the robot controller detects the rising edge of this signal.
- 104 -
B-75114EN/04 7. INTERFACE BETWEEN CNC AND ROBOT
Ready signal and Not Ready signal are turned on when the robot program is not executed in the robot
controller. When both Ready signal and Not Ready signal are not ON, the robot remote operation cannot
be executed.
- 106 -
B-75114EN/04 7. INTERFACE BETWEEN CNC AND ROBOT
Signal sequence
CNC Robot : Remote Operation Request
(1) (2)
(1) When Ready signal or Not Ready signal is ON in the robot controller, if Remote Operation
Request signal is turned on in CNC, ACK for Remote Operation Request signal is turned
on in the robot controller, and Remote Operation Mode signal is turned on.
(2) When robot remote operation is ended in CNC, Remote Operation Request signal is turned
off, and Remote Operation Mode signal is turned off, then Ready signal or Not Ready
signal is turned on.
The robot controller remains in remote operation state until Remote Operation Request signal from CNC
is turned off. But, if the robot teach pendant become enabled in the robot controller that is in the remote
operation state, the robot remote operation on CNC cannot be executed. In case that the robot ladder
program turns on Maintenance State signal or turns off Service State signal, because the robot controller
is in the state that the robot controller cannot execute the remote operation, CNC sample ladder turns off
Remote Operation Request signal. And, if the power of the robot controller is turned off, the remote
operation on CNC cannot be executed. When Robot Power On signal is turned off, CNC sample ladder
turns off Remote Operation Request signal.
Signal sequence
CNC Robot : Home Position Return
(1)
Busy
(2)
(1) When Home Position Return signal (or one of Hand Operation signals or one of Jog
Direction selection signals) is turned on, Home Return Operation State signal (or Hand
Operation State signal or Jog Feed Operation State signal) in the robot controller is
turned on.
(2) When Remote Operation Run signal in CNC is turned on, the program for home
position return (or hand operation or jog feed) is executed in the robot controller. While
the program is executed, Busy signal is ON.
- 107 -
7. INTERFACE BETWEEN CNC AND ROBOT B-75114EN/04
While the remote operation is executed, Override Up and Down signal in CNC can change the speed
override in the robot controller at any time.
NOTE
It is need to set the number of the connected CNC with the robot beforehand.
Refer to “2. CONNECTION BETWEEN CNC AND ROBOT”.
- 108 -
B-75114EN/04 7. INTERFACE BETWEEN CNC AND ROBOT
In case that Hand Operation Type selection signals are input from two or more CNCs, the input signals
from CNC that has the right for the remote operation is set to group I/O GI[5] in the robot controller.
While the operation is executed in Machine tool operation screen on the robot teach pendant, the signals
that is required for jog feed of the machine tool are output to CNC according to the operation. In order to
execute jog feed of machine tool actually, it is required to create the ladder program in CNC to move axes
in the machine tool according to signals from the robot controller. Please understand the specification of
signals by the following description and create the ladder program in CNC.
- 109 -
7. INTERFACE BETWEEN CNC AND ROBOT B-75114EN/04
From CNC to the robot controller Form the robot controller to CNC
CNC Robot Name CNC Robot Name
Signal DI Signal DO
address number address number
R7247.0 121 Machine Operation Enable R7215.0 121 Machine Operation Request
Status
R7247.1 122 Machine Operation Request R7215.1 122 Machine Operation Path
Reject Selection (Path1)
R7247.2 123 Machine Operation Request R7215.2 123 Machine Operation Path
Reject code 1 Selection (Path2)
R7247.3 124 Machine Operation Request R7215.3 124 Machine Operation Path
Reject code 2 Selection (Path3)
R7247.4 125 Machine Operation Request R7215.4 125 Machine Operation Path
Reject code 3 Selection (Path4)
R7247.5 126 Machine Operation Request R7215.5 126 Machine Operation Path
Reject code 4 Selection (Path5)
R7215.6 127 Machine Operation Heart Beat
signal
R7215.7 128 (Reserved)
R7216.0 129 Machine Jog Feed Override 0
R7216.1 130 Machine Jog Feed Override 1
R7216.2 131 Machine Jog Feed Override 2
R7216.3 132 Machine Jog Feed Override 3
R7216.4 133 Machine Jog Feed Override 4
R7216.5 134 Machine Jog Feed Override 5
R7216.6 135 Machine Jog Feed Override 6
R7216.7 136 Machine Jog Feed Override 7
R7217.0 137 Machine Jog Feed Override 8
- 110 -
B-75114EN/04 7. INTERFACE BETWEEN CNC AND ROBOT
- 111 -
7. INTERFACE BETWEEN CNC AND ROBOT B-75114EN/04
- 112 -
B-75114EN/04 7. INTERFACE BETWEEN CNC AND ROBOT
- External emergency stop signal is asserted.(R-30iA/R-30iA Mate controller)
- Interlock Mode signal is turned off in CNC.
- Machine Tool Operation Enable Stautus signal is turned off.
- The disaplayed screen is changed on the robot teach pendant.
- The robot teach pendant is disabled.
- Other axis and direction select button is pressed in the Machine tool operation screen.
- All axis and direction select button are not pressed in the Machine tool operation screen.
- Operation Enable button is pressed to disable the operation in Machine tool operation screen.
- Ethernet communication with the selected CNC is disconnected.
- The robot program is executed in th robot controller.
- Robot is moved by jog feed or program execution.
- 113 -
7. INTERFACE BETWEEN CNC AND ROBOT B-75114EN/04
NOTE
It is need to set the number of the connected CNC with the robot beforehand.
Refer to “2. CONNECTION BETWEEN CNC AND ROBOT”.
From CNC to the robot controller From the robot controller to CNC
CNC Robot Name CNC Robot Name
Signal DI Signal DO
address number address number
R7236.0 33 CNC Power On R7203.0 25 RI[1]
- 115 -
7. INTERFACE BETWEEN CNC AND ROBOT B-75114EN/04
- 116 -
B-75114EN/04 7. INTERFACE BETWEEN CNC AND ROBOT
- 117 -
7. INTERFACE BETWEEN CNC AND ROBOT B-75114EN/04
NOTE
It is need to set the number of the connected CNC with the robot beforehand.
Refer to “2. CONNECTION BETWEEN CNC AND ROBOT”.
- 119 -
7. INTERFACE BETWEEN CNC AND ROBOT B-75114EN/04
- 120 -
B-75114EN/04 8. NC PROGRAM
8 NC PROGRAM
In this function, by calling M code in NC program, CNC requests the operation of work-piece exchange
to the robot. Please create the NC program according to the explanation of this chapter.
CNC Robot
Execution of Operation of ladder
NC program program Execution of program
operation
The content of request
Executes M code M code
operation is
and waits FIN
decided by M code
and related signals. Requested
The request is sent operation is
to robot. executed.
operation
FIN completion
Executes from the When completion
next line of M is received from
code robot, FIN is sent
to CNC.
About the detail of I/O signal interface between the robot and CNC, please refer to chapter "7.
INTERFACE BETWEEN CNC AND ROBOT". About the detail of robot program, please refer to
chapter "9. ROBOT PROGRAM".
This chapter explains about M code, operation of the ladder program and robot program when the sample
ladder program is used.
CAUTION
1 For details of the ladder program of the sample, please refer to the material
included in CD "Robot connection function sample program" (A08B-9510-J550).
2 It is necessary to customize the sample ladder program according to the
specification of the machine tool. Moreover, please verify coordinated operation
with the robot enough.
- 121 -
8. NC PROGRAM B-75114EN/04
Even if M60 or M61 is executed, nothing is executed when Interlock Mode signal is OFF. The NC
program automatically advances to the following line of M code.
For details of cycle stop, please refer to the chapter "3.5 SAMPLE LADDER PROGRAM FOR SYSTEM
OPERATION".
Example 1
O0001 Operator sets work-piece in the machine tool by the hand and begins machining.
(Machining) Machining continues.
M60 The work-piece is exchanged by M60.
M99 NC program returns to the top by M99.
Example 2
O0001 Operator sets Interlock Mode signal from OFF to ON and begins machining with the status
that there is no work-piece in machine tool.
M61 The work-piece is loaded by M61.
(Machining) Machining continues.
M60 The work-piece is exchanged by M60.
M99 NC program returns to the top by M99.
In the M61 since the second times, nothing is executed. The next work-piece is machined
continuously.
The content of operation request is finally notified to the robot by the value of Service Type 1-4 signal.
The relation between the content of operation request and the value of Service Type 1-4 signals is as
follows.
- 122 -
B-75114EN/04 8. NC PROGRAM
Table 8.2(b) Service type 1-4 signals
Operation request Service type 1-4 signals
to robot 1 2 3 4
Loading work-piece 1 0 0 0
Unloading and loading work-piece 0 1 0 0
Unloading work-piece 1 1 0 0
The meaning of service type 1-4 signals is the same for the function "overlap start" described below.
For the details of service type 1-4 signals, please refer to the chapter "7. INTERFACE BETWEEN CNC
AND ROBOT".
CAUTION
When M62 is executed, the robot moves near the machine tool. Neither
work-piece unloading nor loading is executed. When M60 is executed, an actual
work-piece unloading and loading are executed.
Example 1
O0001 Operator sets Interlock Mode signal from OFF to ON and begins the machining with the
status that there is no work-piece in machine tool.
M61 The work-piece is loaded by M61.
(Machining) Machining continues.
M62 The overlap start is notified by M62 on the way of machining. The robot moves near the
machine tool.
(Machining) Machining continues.
M60 The work-piece is exchanged by M60.
M99 NC program returns to the top by M99.
In the M61 since the second times, nothing is executed. The next work-piece is machined
continuously.
- 123 -
9. ROBOT PROGRAM B-75114EN/04
9 ROBOT PROGRAM
It is need to teach the robot program to load and unload a work piece interlocking with machine tool and
the macro program for robot remote operation on CNC. According to the description in this chapter, teach
the necessary programs.
In the program started by CNC1, branch to the process according to the value of GI[1] as follows.
- 124 -
B-75114EN/04 9. ROBOT PROGRAM
37: CALL UNLOAD ; Teach the motion to unload a work piece to the
38: ! Load the work piece ; machine.
39: CALL LOAD ; Teach the motion to load a work piece to the machine.
40: ! Move out of the machine ;
41: CALL MOVEOUT2 ; Teach the motion to move out of the machine.
42: ! Place the work piece ;
43: CALL PLACE ; Teach the motion to place a processed work piece to
44: ! Move to the home position ; the pallet.
45: CALL HOME2; Teach the motion to move to home position.
46: END ;
47: ;
48: LBL[130:Unload the work piece] ; < Unloading work piece (Service type 3) >
49: ! Move in front of the machine ;
50: CALL MOVETO2 ; Teach the motion to move in front of the machine.
51: ! Condition to enter ;
52: WAIT DI[105:Robot Entry Approval]=ON
TIMEOUT,LBL[910] ;
53: WAIT DI[108:Door Open]=ON
TIMEOUT,LBL[910] ;
54: WAIT DI[110:Part Change Position]=ON
TIMEOUT,LBL[910] ;
55: ! Move into the machine ;
56: CALL MOVEIN3 ; Teach the motion to move to the position to unload a
57: ! Unload the work piece ; work piece.
58: CALL UNLOAD ; Teach the motion to unload a work piece to the
59: ! Move out of the machine ; machine.
60: CALL MOVEOUT3 ; Teach the motion to move out of the machine.
61: ! Place the work piece ;
62: CALL PLACE ; Teach the motion to place a processed work piece to
63: ! Move to the home position ; the pallet.
64: CALL HOME3 ; Teach the motion to move to home position.
65: END ;
66: ;
67: LBL[900:Incorrect Service Type] ;
68: UALM[1] ;
69: END ;
70: ;
71: LBL[910:Time out] ;
72: UALM[2] ;
73: END ;
- 126 -
B-75114EN/04 9. ROBOT PROGRAM
6: LBL[110:Load a work piece] ; < Loading work piece (Service type 1) >
7: ! Pick up a work piece ;
8: CALL PICK_1 ; Teach the motion to pick up an unprocessed work
9: ! Move in front of the machine ; piece from the pallet.
10: CALL MOVETO1 ; Teach the motion to move in front of the machine.
11: ! Condition to enter ;
12: WAIT DI[105:Robot Entry Approval]=ON
TIMEOUT,LBL[910] ;
13: WAIT DI[108:Door Open]=ON
TIMEOUT,LBL[910] ;
14: WAIT DI[110:Work Change Position]=ON
TIMEOUT,LBL[910] ;
15: ! Move into the machine ;
16: CALL MOVEIN1 ; Teach the motion to move to the position to load a
17: ! Load a work piece ; work piece.
18: CALL LOAD ; Teach the motion to load a work piece to the machine.
19: ! Move out of the machine ;
20: CALL MOVEOUT1 ; Teach the motion to move out of the machine.
21: ! Move to the home position ;
22: CALL HOME1 ; Teach the motion to move to home position.
23: END ;
24: ;
25: LBL[120:Exchange the work piece] ; < Unloading and loading work piece (Service type 2) >
26: ! Pick up a work piece ;
27: CALL PICK ; Teach the motion to pick up an unprocessed work
28: ! Move in front of the machine ; piece from the pallet.
29: CALL MOVETO2 ; Teach the motion to move in front of the machine.
30: ! Wait for Service Call signal input ;
31: WAIT DI[106:Service Call]=ON ; Wait until Service Call signal is turned on.
32: ! Condition to enter
33: WAIT DI[105:Robot Entry Approval]=ON
TIMEOUT,LBL[910] ;
34: WAIT DI[83:Door Open]=ON
TIMEOUT,LBL[910] ;
35: WAIT DI[110:Part Change Position]=ON
TIMEOUT,LBL[910] ;
36: ! Move into the machine ;
37: CALL MOVEIN2 ; Teach the motion to move to the position to unload a
38: ! Unload the work piece ; work piece.
39: CALL UNLOAD ; Teach the motion to unload a work piece to the
40: ! Load a work piece ; machine.
41: CALL LOAD ; Teach the motion to load a work piece to the machine.
42: ! Move out of the machine ;
43: CALL MOVEOUT2 ; Teach the motion to move out of the machine.
44: ! Service complete ;
45: DO[106:Service Completed]=ON ; Turn on Service Completed signal.
46: WAIT DI[106:Service Call]=OFF Wait until Service Call signal is turned off.
TIMEOUT,LBL[910] ;
47: DO[106:Service Competed]=OFF ; Turn off Service Completed signal.
48: ! Start the machine process ;
49: ! Place the work piece ;
50: CALL PLACE ; Teach the motion to place a processed work piece to
51: ! Move to the home position ; the pallet.
52: CALL HOME2; Teach the motion to move to home position.
53: END ;
54: ;
55: LBL[130:Unload the work piece] ; < Unloading work piece (Service type 3) >
56: ! Move in front of the machine ;
- 127 -
9. ROBOT PROGRAM B-75114EN/04
57: CALL MOVETO2 ; Teach the motion to move in front of the machine.
58: ! Wait for Service Call signal input ;
59: WAIT DI[106]=ON ; Wait until Service Call signal is turned on.
60: ! Condition to enter ;
61: WAIT DI[105:Robot Entry Approval]=ON
TIMEOUT,LBL[910] ;
62: WAIT DI[108:Door Open]=ON
TIMEOUT,LBL[910] ;
63: WAIT DI[110:Part Change Position]=ON
TIMEOUT,LBL[910] ;
64: ! Move into the machine ;
65: CALL MOVEIN3 ; Teach the motion to move to the position to unload a
66: ! Unload the work piece ; work piece.
67: CALL UNLOAD ; Teach the motion to unload a work piece to the
68: ! Move out of the machine ; machine.
69: CALL MOVEOUT3 ; Teach the motion to move out of the machine.
70: ! Service complete ;
71: DO[106:Service Completed]=ON ; Turn on Service Completed signal.
72: WAIT DI[106:Service Call]=OFF Wait until Service Call signal is turned off.
TIMEOUT,LBL[910] ;
73: DO[106:Service Completed]=OFF ; Turn off Service Completed signal.
74: ! Place the work ;
75: CALL PLACE ; Teach the motion to place a processed work piece to
76: ! Move to the home position ; the pallet.
77: CALL HOME3 ; Teach the motion to move to home position.
78: END ;
79: ;
80: LBL[900:Incorrect Service Type] ;
81: UALM[1] ;
82: END ;
83: ;
84: LBL[910:Time out] ;
85: UALM[2] ;
86: END ;
- 128 -
B-75114EN/04 9. ROBOT PROGRAM
HANDOP_M
- 129 -
9. ROBOT PROGRAM B-75114EN/04
The sub programs for hand operation from HANDOP01 to HANDOP10 are untaught. Teach these sub
programs before hand operation in the remote operation is executed. Teach sub programs for hand
operation not to wait infinitely. Because the status of waiting infinitely is not notified to CNC, the
operator of CNC may not be able to find the abnormal state in the robot controller.
1: RO[1]=OFF ;
2: RO[2]=ON ;
3: END ;
- 130 -
B-75114EN/04 9. ROBOT PROGRAM
CAUTION
Teach the program for home position return with careful attention paid to the
path of robot motion in order to prevent interference with peripheral devices.
1: UFRAME_NUM=1 ;
2: UTOOL_NUM=1 ;
3: J P[1:HOME] 25% FINE ;
4: END ;
- 131 -
10. ROBOT LADDER PROGRAM B-75114EN/04
10.1 OVERVIEW
Robot Ladder Program interconnects DI/DO signals, which is connected to CNC, and the internal relays
(Fig. 10.1). Internal relays are assigned to the UI/UO signals or DI signals that issue macro commands.
Robot Ladder Program outputs specific internal relays to issues macro commands for remote operation or
call a robot program requested from CNC.
CNC2
Call robot program
(Machine interlock) Internal DI/DO
relays signals
Robot Ladder
Machine tool Program CNC4
operation
- 132 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
Behavior of the robot controller to signals from CNC depends on the state. When the robot controller is in
"idle" state, the request of remote operation from CNC will be accepted, however, when the robot
controller is in "machine interlock operation" or the other CNC already uses the robot remote operation,
the remote operation cannot be accepted. To implement such behavior in the sequence program, Robot
Ladder Program is based on the state. First, Robot Ladder Program determines which state the robot
controller is currently in based on the input signals, and then outputs the appropriate signals based on
states. With this design, the sequence program will be structured with states.
Service
Maintenance
Launching
Running
Remote
Operation Idle
Finished
Other program
running
This state chart has a hierarchy. The state "maintenance" is defined that the robot controller is not
configured to provide services for CNC and the state "service" is defined the opposite state. Three states
(idle, remote operation, machine interlock operation) are defined inside the state "service". Detail of these
states will be described later.
- 133 -
10. ROBOT LADDER PROGRAM B-75114EN/04
T1M T1
T2M T2
T1 T2 S1
S1
T2 T1 S2
S2
This sequence implements two states "S1", "S2" and the transitions "T1","T2" between them. T1M and
T2M are “making transition pulse” of T1, T2 respectively. This value becomes 1 when the condition is
right and no transition occurs. T1M, T2M will make T1, T2 and consequently transition from state "S1"
to "S2" or transition from state "S2" to state "S1" will be caused. However, the current scan is considered
as during transition because T1 or T2 has the value 1. On this scan, any sequence, which relates the
- 134 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
transition, must be skipped. T1M, T2M will become 0 during this scan. In the next scan, this transition is
completed and the robot controller is in state "S1" or state "S2".
Robot Ladder Program is based on this sample structure. In addition, this sequence assures "transition
pulse" has the value 1 during only one scan.
Generation of transitions
10.3 RESOURCE
Robot Ladder Program uses the following resources exclusively. These resources should not be shared.
Data table D0001
Internal Relay R0000.0~R0294.7
Keep relay K0000.0~K0001.7
Robot controller
R0032 DI[257]
CNC1 DO buffer CNC2 DI signals
R0064 DI[513]
CNC2 DI buffer CNC3 DI signals
CNC2
R0096 DI[769]
CNC2 DO buffer CNC4 DI signals
R0128 DI[1025]
CNC3 DI buffer
R0160 DO signals
CNC3 DO buffer DO[1] CNC3
CNC1 DO signals
R0192
CNC4 DI buffer DO[257]
CNC2 DO signals
R0224
CNC4 DO buffer DO[513]
CNC3 DO signals
R0256 CNC4
Common DO[769]
CNC4 DO signals
R0288
DO[1025]
R0320
Internal relays used by Robot Ladder Program are divided into buffers of DI/DO for individual CNC and
commonly used relays. These relays will be called "CNC buffer relays" and "common relays"
respectively.
The values of DI signals are transferred into "CNC buffer relays" as shown. Robot Ladder Program does
not read the DI signals directly.
DO signals to CNC are transferred from CNC buffer relays and common relays. Many of DO signals are
transferred from common relays because these are common for all CNC. Therefore, the most of CNC DO
buffer relays are not used.
Please refer to 10.10 for the list of internal relays.
- 136 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
10.3.2 Timer
Robot Ladder Program uses following fixed-timers. No settable timers are used.
K0000.0~K0000.3 are switches to accept DI signals from CNC1, CNC2, CNC3, and CNC4. These keep
relays are modified when the number of CNC are changed with "Machine Tool I/F" screen. You can
detach specific CNC by setting the value 0 manually.
- 137 -
10. ROBOT LADDER PROGRAM B-75114EN/04
Maintenance Service
The state "maintenance" is a state in which the robot controller cannot accept remote operation or
program call from CNC. The state "service" is the opposite state.
The state "service" requires following conditions. When any of these conditions breaks, the robot
controller will settle in state "maintenance".
The operation mode is "AUTO".
EMERGENCY STOP error does not occur in the robot controller.
"Enable UI signals" in system configuration menu is TRUE.
These conditions are not related to neither the behavior of Robot Ladder Program nor the status of the
robot controller software, but related to the setting of the robot controller. Therefore, these conditions are
determined by the operation or setting by the operator.
The sequence related to state "maintenance" and state "service" is described in sequence program
"LEVEL2" (Refer to 10.9.2). These states are transferred to CNC as Service State signal (DO[63], etc.)
and Maintenance State signal (DO[62], etc.) (Refer to 10.9.7).
Robot remote operation and machine interlock operation from CNC is allowed when the robot controller
is in state "Service".
- 138 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
S3
Launching
T4
T5
T3
T1
S4
S2 S1
Remote operation Running
Idle
T2 T7
T6
S6 S5
Finished
State S2, S3, S4 and S5 can be reached from state S1 and these transitions are caused by the operation
from CNC or the internal process or Robot Ladder Program. On the other hand, without any external
operation to the robot controller, the state of robot controller settles in state S1 or state S6.
- 139 -
10. ROBOT LADDER PROGRAM B-75114EN/04
On the transition T1, Robot Ladder Program issues the macro command to decrease the override value.
Please refer to T1T2 (Refer to 10.9.17) for details.
- 140 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
These states are uniquely determined based on the signals from CNC. Sequences to make transitions are
not required in Robot Ladder Program.
NOTE
In order to execute jog feed of the robot by remote operation, it is need to enable
the function beforehand. Refer to “4.10 SETTING FOR ROBOT JOG FEED
OPERATION FROM CNC”.
stop the running macro by the Remote Operation Run signal. Signal of UI[2:Hold] will be turned ON
after a while.
Subprogram MVHOME (Refer to 10.9.10) and LEVEL1 (Refer to 10.9.1) implements this behavior. The
macro program for "HOME POSITION RETURN" operation will be launched by an internal relay
assigned to DI signal.
- 142 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
Program Calling
(PRGCn=1*)
T1nIDL *
T1nPRG *
Idle T3
(PRGCn=0*, RUNNn=0*)
T4, T7
This state transition, which has three states, is considered to belong each CNC independently. For
example, such a situation that CNC1 is in the state "idle”, CNC2 and CNC3 are in the state "Program
Calling" and CNC4 is in the state "running" can happen. However, Only one CNC must be in the state
"running".
These three state has relation to the state of the robot controller, S1~S6. All CNC must be in the state
"idle" or in the state "Program Calling" when the robot controller is in the state "idle" (S1). When one
CNC is in the state "running", the robot controller is in the state-transition process from S3 via S4 to S5.
The transition from S5 to S1 of the robot controller will cause the transition from "running" to "idle" of
CNC.
Transition from "idle" to "Program Calling" is caused by the rising edge of Program Call signal from
CNC. In the state "running", an internal relay (whose symbol is PRGCn, where n indicates CNC number)
has the value 1.
From the state "running", a transition back to "idle" and a transition to "running" are defined. On the
transition to "running", the requested robot program is launched. In case that Program Call signal is
turned OFF or the robot controller cannot launch a robot program from any cause, the transition back to
"idle" will be caused.
The transition from idle to running and the transition from Program Calling to idle are called "T1nPRG"
and "T1nIDL” respectively, where n indicates CNC number. These states use internal relays of
R0288.0~R0289.7.
In the state “running”, corresponding internal relay (symbol: RUNN1~RUNN4) has the value 1. Once
CNC enters in this state, it will never transit to the state "Program Calling" even if Program Call signal is
cycled.
Transitions between the state "idle" and the state "Program Calling" are written in the subprogram PRGC
(Refer to 10.9.12).
- 143 -
10. ROBOT LADDER PROGRAM B-75114EN/04
- 144 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
10.6.12 Transition T7
There is no action in conjunction with the transition T7.
- 145 -
10. ROBOT LADDER PROGRAM B-75114EN/04
10.7.3 UO Signals
UO signals of the robot controller are assigned to the internal relays R0278.0~R0280.7. The system
software of the robot controller outputs signals into these internal relays. Robot Ladder Program transfers
these values to DO signals for each CNC.
10.7.4 UI Signals
UI signals of the robot controller are assigned to the internal relays R0272.0~R0274.7. Robot Ladder
Program sends signals to these internal relays and launches the robot program in machine interlock
operation.
10.7.7 Resume
Robot Ladder Program does not send a pulse signal to CSTOPI with K0000.7=1. This setting is for
testing the system. With this setting, CNC cannot resume the paused robot program, though, the paused
robot program will resume with the robot teach pendant by turning the internal relay assigned to UI[7]
ON.
It is more convenient to assign a macro program to be launched by SU, which sends pulse signal to
DO[13182]. DO[13182] is an internal relay assigned to UI[7] in this function. It is necessary to set the
system variable $MACRTPDSBEX TRUE to run a macro command by SU with the teach pendant
disabled.
Table 10.8.1(b) Assignment of macro commands (R-30iB/ R-30iB Mate controller or later)
Internal Signal Symbol Purpose
relay
R0267.0 DI[1025] (G0008.0) MCRREN To decrease the override value on the entry of remote operation.
R0267.1 DI[1026] (G0008.1) MCRREX To restore the override value on the exit of remote operation.
R0267.2 DI[1027] (G0008.2) MCRH To launch a macro for HAND operation.
R0267.3 DI[1028] (G0008.3) MCROVU To increase the override value.
R0267.4 DI[1029] (G0008.4) MCROVD To decrease the override value.
R0267.5 DI[1030] (G0008.5) MCRHOM To move the robot to Home Position.
- 147 -
10. ROBOT LADDER PROGRAM B-75114EN/04
Table 10.8.2(a) DO signals for robot program status. (R-30iA/ R-30iA Mate controller)
Signal Address Symbol Purpose
DO[1028] R0261.3 PGRUNC This signal indicates the requested robot program was launched.
DO[1029] R0261.4 PGENDC This signal indicates the requested robot program ended normally.
DO[1030] R0261.5 PGABTC This signal indicates a robot program ended (normally or abnormally).
Table 10.8.2(b) DO signals for robot program status. (R-30iB/ R-30iB Mate controller or later)
Signal Address Symbol Purpose
DO[1028] (F0008.3) R0261.3 PGRUNC This signal indicates the requested robot program was launched.
DO[1029] (F0008.4) R0261.4 PGENDC This signal indicates the requested robot program ended normally.
DO[1030] (F0008.5) R0261.5 PGABTC This signal indicates a robot program ended (normally or abnormally).
This function outputs only the status of a robot program that has the same number of D0001. Therefore,
Robot Ladder Program sets the number of the robot program into D0001 prior to launching.
NOTE
In order to execute jog feed of the robot by remote operation, it is need to enable
the function beforehand. Refer to “4.10 SETTING FOR ROBOT JOG FEED
OPERATION FROM CNC”.
- 148 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
Name Description
P0044, (R-30iB/R-30iB Mate controller or later) These programs take charge of the transfer from F
P0045 addresses to the internal relays and the transfer from the internal relays to G addresses.
10.9.1 LEVEL1
The program "LEVEL1" handles internal relays corresponding to UOP signal. Note that sequences
related to UI[9]~UI[16], UI[17] and UI[18] are written in LEVEL2.
Sequences in LEVEL1 processes followings:
1. Transfer UI corresponding signals from CNC into UI signals.
2. Transfer UI signals into system interface inputs.
3. Transfer system interface outputs into UO signals. (LEVEL2 transfers UO signals to DO signals for
each CNC.)
10.9.2 LEVEL2
LEVEL2 handles remote operation and machine interlock operation. This program processes followings:
1. This part transfers DI signals from CNC1~CNC4 into internal relays (Refer to 10.9.6).
2. This part makes "transition pulse".
3. This part calls subprograms P0001~P0004.
4. This part determines the current state (S1~S6).
5. This part implements behaviors in the state S1.
6. This part makes transition to S1 and transition to S2 if possible (inside subprogram T1T2). (Refer to
10.9.17)
7. This part implements behaviors in remote operation (Refer to 10.9.18).
8. This part pushes Program Call into the queue (Refer to 10.9.12).
9. This part determines transition T3 can be caused or not (Refer to 10.9.15). When Program Calls
exist in the queue, this part determines transition T3 can be caused or not.
10. This part makes transition T3 if possible. Using a ring counter, this selects one of Program Calls in
the queue and then give locks to one of CNC and handles Program Call signal.
11. This part implements behaviors in state "launching" (S3).
12. This part implements behaviors in state "running" (S4). On the entry of state "running" (S4), Robot
Ladder Program sends a pulse signal to PROD_RUN. After a while, Robot Ladder Program makes
transition T6 if PGRUNC signal remains OFF or PGRUNC signal and PGABTC signal are both
turned ON. Even if PGRUNC signal remains OFF, Robot Ladder Program considers the requested
program was once launched but failed immediately.
13. This part implements behaviors in the state "finished" (S5). In this state, Robot Ladder Program
outputs "Completed" signal until Program Call from CNC signal is turned OFF. When Program Call
signal is turned OFF, Robot Ladder Program will cause transition T7. Robot Ladder Program waits a
while to receive "Completed" signal successfully.
14. This part calls subprograms for machine tool operation.
15. This part outputs DO signals for each CNC (Refer to 10.9.7).
- 150 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
CREADY is created inside P0001. CREADY becomes ON in condition that UO[7] is ON (defaults). If
other signal is required for READY signal, please edit subprogram P0001.
- 151 -
10. ROBOT LADDER PROGRAM B-75114EN/04
S241
T243 Moving
T241
S240
Idle T242
T244
S242
Hold
- 152 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
not yet launched. This internal relay will be set 0 when the requested program is launched or the robot
controller for any cause falls into the state that cannot launch the program.
CNC1 0 0 0 0
CNC2 0 0 0 0
CNC3 0 0 0 0
CNC4 0 0 0 0
In this figure, the right side column "Running" is not a part of the queue but attached here for ease of
understandings. The column "Running" indicates corresponding CNC is inside the state "running".
Robot Ladder Program implements four methods to this queue.
When CNC is in state "Program Calling", a Program Call request will be shifted from queue 1, queue 2,
queue 3 to queue 4. When queue 4 has the value 1 and the requested program is launched, the state of
CNC transits to state "running" and the value of queue 4 will be set 0. This structure and methods are
implemented in subprogram CUE.
In addition, it is possible to push a Program Call into this queue when a requested program from the same
CNC is running.
- 153 -
10. ROBOT LADDER PROGRAM B-75114EN/04
10.9.16 P0025 and P0026 (JOG FEED Operation of Robot from CNC)
In the state S23 (JOG FEED operation of the robot from CNC), these subprograms transfer signals from
CNC into internal relays corresponding to DI[1025]~DI[1056]. The signal to enable JOG FEED operation
from CNC is always turned ON in state S23. The signal to move a specific robot axis will not be
transferred until Remote Operation Run signal is turned ON. Robot Ladder Program only transfers these
signals. This function actually moves the robot according to this signal (Refer to 10.8.3). Please set
K0000.4=0 to use 18 signals from CNC as 12 signals for Joint Jog and 6 signals for Coordinate Jog.
Other configurations are not currently supported.
NOTE
In order to execute jog feed of the robot by remote operation, it is need to enable
the function beforehand. Refer to “4.10 SETTING FOR ROBOT JOG FEED
OPERATION FROM CNC”.
- 154 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
- 155 -
10. ROBOT LADDER PROGRAM B-75114EN/04
- 157 -
10. ROBOT LADDER PROGRAM B-75114EN/04
- 158 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
- 159 -
10. ROBOT LADDER PROGRAM B-75114EN/04
- 160 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
- 161 -
10. ROBOT LADDER PROGRAM B-75114EN/04
Table 10.10(b) shows the list of internal relays used for DI and DO signals. Left side of this table shows
addresses of internal relays for CNC1 and DI/DO signals and description. Internal relays and DI/DO
signals for CNC2~CNC4 are shown on the right side.
- 162 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
- 163 -
10. ROBOT LADDER PROGRAM B-75114EN/04
- 164 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
- 166 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
- 167 -
10. ROBOT LADDER PROGRAM B-75114EN/04
- 168 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
- 169 -
10. ROBOT LADDER PROGRAM B-75114EN/04
- 170 -
B-75114EN/04 10. ROBOT LADDER PROGRAM
- 171 -
10. ROBOT LADDER PROGRAM B-75114EN/04
- 173 -
10. ROBOT LADDER PROGRAM B-75114EN/04
10.11 NOTES
- 174 -
APPENDIX
B-75114EN/04 A. STANDARD SETTING
A STANDARD SETTING
A.1 SETTING VALUE IN CNC
In this section, the value of standard setting for the setting of robot connection function and PMC
parameter is described.
Remarks Description
Fixed value The value is fixed. Set the value in the table without change.
Depend on PMC address The value depends on PMC address in the data area of the robot connection
function. In case that the address from 1:R7000 to 1:R7999 can be used, set the
value in the table without change. If other address is used, set the modified PMC
address.
Depend on CNC number The value depends on CNC number. Set the corresponding value from CNC1 to
CNC4.
Need not to set It is not need to set the value.
Allocation
Item CNC1 CNC2 CNC3 CNC4 Remarks
Allocation
Robot DO signal 1:R7200 Same as in Same as in Same as in the Depend on
PMC Address the left the left left PMC address
Robot DI signal 1:R7232 Same as in Same as in Same as in the Depend on
PMC Address the left the left left PMC address
Robot Power On signal 1:R7956 Same as in Same as in Same as in the Depend on
PMC Address (FL-net) the left the left left PMC address
1:R7207
(I/O Link)
Robot Power ON signal Bit 1 (FL-net) Same as in Same as in Same as in the Fixed value
4 (I/O Link) the left the left left
DO signal number offset 0 256 512 768 Depend on
CNC number
DI signal number offset 0 256 512 768 Depend on
CNC number
Option 0000 0001 Same as in Same as in Same as in the Fixed value
the left the left left
Robot Status
The robot status setting specifies the signal displayed to monitor in the screen. Setting is optional.
- 177 -
A. STANDARD SETTING B-75114EN/04
Common setting when one or more CNCs are connected to the robot
controller
In case that one or more CNCs are connected to the robot controller, the following settings are done
independent of the number of the connected CNC.
• The total number of DI/DO is 1080 (R-30iA/R-30iA Mate controller) or 1056 (R-30iB/R-30iB Mate
controller or later).
• The robot ladder program for this function is installed.
- 178 -
B-75114EN/04 A. STANDARD SETTING
• UI/UO signals are assigned to the internal relays (R-30iA/R-30iA Mate controller) or F, G addresses
in PMC (R-30iB/R-30iB Mate controller or later).
• Signals from DI[1025] to DI[1080] (R-30iA/R-30iA Mate controller) or signals from DI[1025] to
DI[1056] (R-30iB/R-30iB Mate controller or later) are assigned to the internal relays.
• Signals from DO[1025] to DO[1032] are assigned to the internal relays.
• GI[5] signal to designate hand operation is assigned to the internal relay.
• GO[1] is assigned to output override.
• Emergency stop signal is output to DO[1025].
• FENCE signal is output to DO[1026].
• Macro commands are registered (Refer to A.2.2).
• PNS function is enabled.
• The item “CSTOPI for ABORT” in system configuration menu is set to TRUE.
• The item “START for CONTINUE only” in system configuration menu is set to TRUE.
• TCP/IP parameters are set when I/O device type is FL-net by internal Ethernet port.
- 179 -
A. STANDARD SETTING B-75114EN/04
Note that a program "OVRSET" is also loaded. OVRUP and OVRDOWN call OVRSET.
System variable
The following system variable is set.
• $MACROMAXDRI=15
- 180 -
B-75114EN/04 A. STANDARD SETTING
Number of
Signal Type Start Number End Number Rack Slot Start point Type
points
DO 257 512 68 1 257 256 CNC2
DO 513 768 68 1 513 256 CNC3
DO 769 1024 68 1 769 256 CNC4
DO 1025 1032 33 2 2089 8 Common
DO 1033 1056 0 0 0 24 Common
GI 1 - 33 2 25 4 CNC1
GI 2 - 33 2 537 4 CNC2
GI 3 - 33 2 1049 4 CNC3
GI 4 - 33 2 1561 4 CNC4
GI 5 - 33 2 2169 4 Common
GO 1 - 33 2 2289 8 Common
- 181 -
A. STANDARD SETTING B-75114EN/04
The comments for UI/UO are the comments of the default setting.
- 182 -
B-75114EN/04 A. STANDARD SETTING
Signal Type Start Number End Number Size Address Type Comment
GO 1 - 2 1:F00260 Common override output
GO 10001 11500 3000 1:D00000 Common Only D00000 is used.
Number of
Signal Type Start Number End Number Rack Slot Start point Type
points
DO 1 256 68 1 1 256 CNC1
DO 257 512 68 1 257 256 CNC2
DO 513 768 68 1 513 256 CNC3
DO 769 1024 68 1 769 256 CNC4
Number of
Signal Type Start Number End Number Rack Slot Start point Type
points
DO 1 256 0 1 1 256 CNC1
DO 257 512 0 2 1 256 CNC2
DO 513 768 0 3 1 256 CNC3
DO 769 1024 0 4 1 256 CNC4
- 183 -
A. STANDARD SETTING B-75114EN/04
Network parameter
• TOKEN WATCH TIME 30ms (Robot and CNC standard setting)
• FRAME INTERVAL (MINIMUM FRAME TIME) 0. (It is recommended that MINIMUM FRAME
TIME in CNC is equal or more than 10 in case that FL-net/ETHERNET coexisting function is used
in CNC.
- 184 -
B-75114EN/04 A. STANDARD SETTING
NOTE
FRAME INTERVAL (MINIMUM FRAME TIME) in all node should be equal or more
than 20 if FL-net uses internal port of robot. FRAME INTERVAL, which is maximum
in all FL-net attending node, is applied for all node behavior. If no node whose
FRAME INTERVAL is 20 or more, attends to network, FRAME INTERVAL becomes
less than 20. If robot try to attend this network, FL-net load becomes too high and
robot can’t attend the network and may can’t ramp-up and i-Pendant may become
slow. So FRAME INTERVAL in all node should be 20 or more.
- 185 -
A. STANDARD SETTING B-75114EN/04
NOTE
Note that Minimum frame time should be equal or more than 10 in case that
FL-net/ETHERNET coexisting function is used to connect CNC and robot.
NODE NAME in OWN NODE is set to "ROBOT", and Comment in each node is set as follows.
Node number Comment
1 ROBOT
2 CNC1
3 CNC2
4 CNC3
5 CNC4
Settings to connect 4 CNCs are done, and the reference methods for common memory (DI/DO) are set.
In case that I/O device type is FL-net which uses FL-net board (FL-net or FL-net(Board)), IP address of
FL-net is set to 192.168.250.1.
- 186 -
B-75114EN/04 A. STANDARD SETTING
In case that I/O device type is FL-net which uses internal port (FL-net(Port#1) or FL-net(Port#2)),
Ethernet IP address and subnet mask in the designated port are set as follows, and router IP address is
initialized.
- 187 -
B. ALARM B-75114EN/04
B ALARM
B.1 ALARM IN CNC
About the detail of the alarm in CNC, refer to Common to Lathe System/Machining Center System
OPERATOR’S MANUAL corresponding to your using CNC. There is not the alarm specific to this
function.
Alarm display
In the robot controller, the alarm is displayed as follows.
INTP-653 PAUSE.L J983: System variables not found
(1) Alarm code : Alarm ID to represent the type of alarm and Alarm Number are displayed.
(2) Alarm severity : The seriousness of the cause of the alarm is displayed. Refer to table B.2.
(3) Alarm message : Description of the alarm
- 188 -
B-75114EN/04 B. ALARM
Severity Description
ABORT.L When an ABORT alarm occurs, the execution of the program is forcibly terminated, and the
ABORT.G robot is decelerated until it is stopped. The difference between ABORT.L and ABORT.G is the
range in which the alarm is applied. ABORT.L is applied in the program that the alarm occurs,
and ABORT.G is applied in all programs.
SERVO2 When a SERVO 2 alarm occurs, the power to the servo system is turned off to forcibly
terminate the program and to stop the robot immediately. A SERVO2 alarm is issued for
safety’s sake or when a failure occurs during robot operation.
SYSTEM A SYSTEM alarm is issued when a major system failure occurs. When the SYSTEM alarm is
issued, every robot in the system is disabled. After taking appropriate action for the alarm, turn
the power off, the turn it on again.
- 190 -
B-75114EN/04 INDEX
INDEX
FL-net Parameters in CNC ........................................... 185
<A> FL-net Parameters in Robot Controller ........................ 186
Access Control ............................................................. 140
Acquire and Release the Right for Remote Operation . 106 <H>
ALARM ....................................................................... 188 Heart Beat Signal of Machine Tool Operation Screen . 148
ALARM IN CNC ......................................................... 188 HOLD Signal ............................................................... 146
ALARM IN ROBOT CONTROLLER......................... 188
Attention to Teach Program ......................................... 128 <I>
I/O Screen ...................................................................... 74
<B> Implementation of Robot Behavior Based on State
Basic Structure of Robot Program................................ 124 Chart ......................................................................... 133
BEHAVIOR OF OTHER SIGNALS ........................... 145 Implementation of State Transition Using the Sequence
BUTTON ON MACHINE OPERATOR’S PANEL ...... 29 Program .................................................................... 134
Inside of the State “Remote Operation” ....................... 141
<C> INTERFACE BETWEEN CNC AND ROBOT ............. 90
CNC Actual Position Screen .......................................... 71 Interface Signals for Machine Tool Operation ............. 110
CNC Alarm Screen ........................................................ 72 Interface Signals for Robot Remote Operation ............ 102
CNC Message Screen ..................................................... 73 Interface Signals to Interlock Program........................... 91
CNC NUMBER ............................................................... 8 INTERLOCK BETWEEN NC PROGRAM AND
CNC OPERATION SCREEN ........................................ 75 ROBOT PROGRAM .................................................. 90
CNC Running Program Screen ...................................... 73
CNC SCREEN ON ROBOT .......................................... 68 <K>
CNC STATUS DISPLAY SCREEN .............................. 68 Keep relay .................................................................... 137
Common Item............................................................... 184 Keeping of Program Call from CNC ............................ 144
Condition for Robot Remote Operation ....................... 106
CONNECTION AND SETTING OF DATA <L>
COMMUNICATION ................................................. 19 LEVEL1 ....................................................................... 150
CONNECTION AND SETTING OF I/O LEVEL2 ....................................................................... 150
TRANSMISSION......................................................... 8 LIST OF INTERNAL RELAYS .................................. 155
Connection between Multiple CNCs and Robot99,108,114
CONNECTION OF CNC AND ROBOT ...................... 5,7 <M>
Connection retry of data communication .................. 15,18 M CODE IN NC PROGRAM ...................................... 122
Create Ladder Program in CNC ................................... 113 MACHINE TOOL OPERATION ON ROBOT TEACH
CSTOPI Signal ............................................................. 146 PENDANT ............................................................... 109
Machine Tool Operation Screen .................................... 77
<D> Macro Commands ........................................................ 147
DATA ARAE OF ROBOT CONNECTION Macro Program for Remote Operation ......................... 129
FUNCTION ................................................................ 27 Macros Launched on the Entry and Exit of Remote
Detail of Robot Remote Operation ............................... 107 Operation .................................................................. 142
DETAIL OF STATE TRANSITION ........................... 138
DETAILS OF SEQUENCE PROGRAMS ................... 149 <N>
DETAILS OF THE STATE “MACHINE INTERLOCK Name of Program ......................................................... 124
OPERATION”.......................................................... 142 NC PROGRAM ........................................................... 121
DETAILS OF THE STATE “REMOTE OPERATION” NECESSARY ITEMS FOR CNC .................................... 5
.................................................................................. 140 NECESSARY SOFTWARE OPTION............................. 2
Discard of Program Call Request in the Queue ............ 144 Note in R-30iA/R-30iA Mate Controller ......................... 6
Note in R-30iB Mate Controller or Later ......................... 6
<E> NOTE IN THE ROBOT CONTROLLER ....................... 6
EMERGENCY STOP .................................................. 148 NOTES......................................................................... 173
Example of Robot Program .......................................... 125
<O>
<F> OTHER INTERFACE SIGNALS ................................ 115
FAILED Signal ............................................................ 145 OUTLINE ...................................................................... 25
Failure to Interlock Program ........................................ 101 OUTLINE OF CNC OPERATION .............................. 121
FENCE OPEN Signal and I/O Interconnect ................. 148 Overlap Start .................................................................. 98
FL-net PARAMETER .................................................. 184 Override Change .......................................................... 142
i-1
INDEX B-75114EN/04
i-2
B-75114EN/04 INDEX
Type of Setting Value and Applicable Condition ........ 178
<U>
UI Signals..................................................................... 146
Unused Internal Relays ................................................ 173
Unused Subprogram ..................................................... 173
UO Signals ................................................................... 146
USAGE OF BUILT-IN FUNCTIONS OF THE ROBOT
CONTROLLER........................................................ 147
Usage of Internal Relays .............................................. 135
<W>
Wiring for Data Communication .................................... 19
Wiring when FL-net is Used ............................................ 9
Wiring when I/O Link is Used ......................................... 9
i-3
B-75114EN/04 REVISION RECORD
REVISION RECORD
Edition Date Contents
Addition of Detail for CNC power ON signal
04 Aug., 2017 Addition of Attention for FRAME INTERVAL
Support R-30iB Plus, R-30iB Mate Plus
FANUC Series 30i /31i /32i -MODEL B are supported.
FANUC Series 35i -MODEL B is supported.
03 Jul., 2013
FANUC Power Motion i -MODEL A is supported.
FANUC Robot series R-30iB/R-30iB Mate controller are supported.
FANUC Series 0i-MODELD is supported.
02 Feb., 2010 CNC operation screen is added in the robot controller.
Chapter 10 ROBOT LADDER PROGRAM is revised.
01 Aug., 2009
r-1
B-75114EN/04
* B - 7 5 1 1 4 E N / 0 4 *