FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) - page 344

 

  Index      Manuals     FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) B-64693EN-1/01

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     342      343      344      345     ..

 

 

 

FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) - page 344

 

 

17. EMBEDDED ETHERNET FUNCTION

 

 

B-64693EN-1/01

 

- 2706 - 

17.2.6.6 

Execution methods 

How to execute the unsolicited messaging function is described below. 
To execute the unsolicited messaging function, three methods are available: 

Using a PMC address for control based on the response notification method in a ladder program 

Using a PMC address for control based on the simplified method in a ladder program 

Using a macro variable for control based on the simplified method in an NC program 

 

NOTE 

1  When a ladder program is used, the response notification method and the 

simplified method are available. A major difference is that the response 
notification method sends RES_CODE to the ladder program in response to data 
transmission but the simplified method does not send a response. 
To utilize a ladder program based on logic used with the Series 16

i

, for example, 

use the response notification method. When RES_CODE is unnecessary or a 
new ladder program is created, the simplified method can be used. 

2  RES_CODE is recorded on the Ethernet log screen when a value other than 

0x00 and 0x01 is detected. 

3  For details of RES_CODE, refer to Chapter 5, "UNSOLICITED MESSAGING 

FUNCTION" in "Data Window Library Specifications" that comes with the 
FOCAS1/2 library.   

 

When a PMC address for control is used (response notification method) 

A  description  of using a PMC  address  for  control  in a ladder  program  according to the response 
notification method is provided below. 
 

NOTE 

 

A combination of a PMC address for control and a macro variable for 
transmission is also usable. In this case, note that the read timing of the value of 
a macro variable to be transmitted cannot be identified when viewed from the 
ladder program. 

 

In the description below, a PMC address is used for both of control and 
transmission. 

 

Explanation of PMC address signals for control 

A detailed description  of  PMC  address  signals for control  used to execute  the  unsolicited messaging 
function is provided below. A PMC address area for control consists of 2 bytes. 
The  description  below assumes that Rxxxx (with no PMC  path  number  specified)  is used as a PMC 
address for control. 
 

No. 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

Rxxxx 

 

REQ 

 

 

 

 

 

 

 

 

 

 

REQ

  <Rxxxx.7> 

 

[Name]  Message transmission request signal 

  [Classification]  Input signal 
 

[Function]  Requests transmission of an unsolicited message. 

 

[Operation]  After preparing a transmission  message  at a PMC  address  for  transmission, the ladder 

program sets this signal to “1”. The message is then transmitted to the personal computer. 

 

B-64693EN-1/01

 

 

17. EMBEDDED ETHERNET FUNCTION

 

- 2707 - 

No. 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

Rxxxx+1 

 

RES

 

COM 

RES_CODE 

 

 

 

RES

  <Rxxxx+1.7> 

 

[Name]  Message response reception signal 

  [Classification]  Output signal 
 

[Function]  Posts the reception of a response to an unsolicited message. 

[Output condition] Upon  reception  of a message  by the personal computer, a response  to the message  is 

transmitted  to the CNC  (communication  function). When the CNC  (communication 
function) receives the response, this signal is set to “1”. When this signal is set to “1”, the 
ladder  program  reads RES_CODE then clears REQ to “0”. Next, the CNC 
(communication function) clears RES_CODE to “0” then sets this signal to “0”. 

 

 

COM

  <Rxxxx+1.6> 

 

[Name]  Message transmission start signal 

  [Classification]  Output signal 
 

[Function]  Posts the start of transmission of an unsolicited message. 

[Output condition] When transmission of a message to the personal computer is started, this signal is set to 

“1”. Upon completion of message transmission, this signal is set to “0”. 

 

 

RES_CODE

  <Rxxxx+1.0> to <Rxxxx+1.5> 

 

[Name]  Message response reception result signal 

  [Classification]  Output signal 
 

[Function]  Posts the reception result of a response to an unsolicited message. 

[Output condition] The reception result of a response to a message is set. After reading this signal, the ladder 

program clears REQ to “0”. The CNC (communication function) then clears this signal to 
“0”. 

 

NOTE 

 

For details of RES_CODE, refer to Chapter 5, "UNSOLICITED MESSAGING 
FUNCTION" in "Data Window Library Specifications" that comes with the 
FOCAS1/2 library. 

 

Timing chart of PMC address signals for control

 

The  timing  chart of PMC  address  signals for control  based on the response  notification  method  is 
described in the Fig. 17.2.6.6 (a). 
In the example below, an unsolicited message is transmitted once after reception of the FOCAS2 function 
cnc_unsolicstart then the FOCAS2 function cnc_unsolicstop is received. 
 

 

Fig. 17.2.6.6 (a) 

 

17. EMBEDDED ETHERNET FUNCTION

 

 

B-64693EN-1/01

 

- 2708 - 

(1)  After checking that RES is set to “0”, the ladder program prepares a message then sets REQ to “1”. 
(2)  Because of REQ set to “1”, the communication function sets COM to  “1”  then transmits the 

message. 

(3)  Upon completion of message transmission, the communication function sets COM to “0”. 
(4)  Upon reception of a response to the message, the communication function sets RES_CODE then sets 

RES to “1”. 

(5)  Because of RES set to “1”, the ladder program reads RES_CODE then sets REQ to “0”. 
(6)  Because of REQ set to “0”, the communication function clears RES_CODE to “0”. 
(7)  The communication function sets RES to “0”. 
 

NOTE 

 

For details of the states, see "

Display items

" in Subsection 17.2.6.3, "Mode 

selection". 

 

When a PMC address for control is used (simplified method) 

A description of using a PMC address for control in a ladder program according to the simplified method 
is provided below. 
 

NOTE 

 

A combination of a PMC address for control and a macro variable for 
transmission is also usable. In this case, note that the read timing of the value of 
a macro variable to be transmitted cannot be identified when viewed from the 
ladder program. 

 

In the description below, a PMC address is used for both of control and 
transmission. 

 

Explanation of PMC address signals for control 

A detailed description  of  PMC  address  signals for control  used to execute  the  unsolicited messaging 
function is provided below. A PMC address area for control consists of 1 byte. 
The  description  below assumes that Rxxxx (with no PMC  path  number  specified) is used as a PMC 
address for control. 
 

No. 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

Rxxxx 

 

REQ 

 

 

 

 

 

 

 

 
 

REQ

  <Rxxxx.7> 

 

[Name]  Message transmission request signal 

  [Classification]  Input/Output signal 
 

[Function]  Requests transmission of an unsolicited message. 

 

[Operation]  After preparing a transmission  message  at a PMC  address  for  transmission, the ladder 

program sets this signal to 1. The message is then transmitted to the personal computer. 
Upon reception of a response to the message, the CNC (communication function) clears 
this signal to 0. 

 

B-64693EN-1/01

 

 

17. EMBEDDED ETHERNET FUNCTION

 

- 2709 - 

Timing chart of PMC address signals for control

 

The timing chart of PMC address signals for control based on the simplified method is described below. 
In the example below (Fig. 17.2.6.6 (b)), an unsolicited message is transmitted once after reception of the 
FOCAS2 function cnc_unsolicstart then the FOCAS2 function cnc_unsolicstop is received. 
 

 

(2) 

(3) 

(4) 

(1) 

Transmission completed 

Not Ready 

Ready 

Sending... 

Receiving... 

Ready 

Not Ready 

Completed 

(5) 

Response received 

REQ (ladder program 

 

communication function) 

Transmission processing by 
communication function 

Reception processing by 
communication function 

State 

FOCAS2 function cnc_unsolicstop 

FOCAS2 function cnc_unsolicstart 

 

Fig. 17.2.6.6 (b) 

 
(1)  After checking that REQ is set to 0, the ladder program prepares a message then sets REQ to 1. 
(2)  Because of REQ set to 1, the communication function transmits the message. 
(3)  The communication function completes message transmission processing. 
(4)  Upon reception of a response to the message, the communication function completes reception 

processing. 

(5)  Because of reception processing completed, the communication function sets REQ to 0. 
 

NOTE 

 

For details of the states, see "

Display items

" in Subsection 17.2.6.3, "Mode 

selection". 

 

When a macro variable for control is used (simplified method) 

A description of using a macro variable for control in an NC program according to the simplified method 
is provided below. 
Macro variables for control  are classified as custom macros and RTM  macros, but the same execution 
method is applicable. 

 

NOTE 

 

A combination of a macro variable for control and a PMC address for 
transmission is also usable. In this case, note that the read timing of the value of 
PMC data to be transmitted cannot be identified when viewed from the NC 
program. 

 

In the description below, a macro variable is used for both of control and 
transmission. 

 

17. EMBEDDED ETHERNET FUNCTION

 

 

B-64693EN-1/01

 

- 2710 - 

Explanation of a macro variable for control 

A detailed description of a macro variable for control used to execute the unsolicited messaging function 
is provided below. One macro variable for control is used. 
The  description  below assumes that #xxxx (with no CNC  path  number  specified) is used as a macro 
variable number for control. 

 

REQ

  <#xxxx> 

 

[Name]  Message transmission request signal 

  [Classification]  Input/Output signal 
 

[Function]  Requests transmission of an unsolicited message. 

 

[Operation]  After preparing a transmission  message  in a macro variable  for  transmission, the NC 

program sets this signal to 1. The message is then transmitted to the personal computer. 
Upon reception of a response to the message, the CNC (communication function) clears 
this signal to 0. 

 

NOTE 

 

A REQ input/output value is a real number. So, "0" means "0.0", and "1" means 
"1.0". 

 

Timing chart of a macro variable for control 

The timing chart of a macro variable for control based on the simplified method is described below. 
In the example below (Fig. 17.2.6.6 (c)), an unsolicited message is transmitted once after reception of the 
FOCAS2 function cnc_unsolicstart then the FOCAS2 function cnc_unsolicstop is received. 

 

(2) 

(3) 

(4) 

(1) 

Transmission completed 

Not Ready 

Ready 

Sending... 

Receiving... 

Ready 

Not Ready 

Completed 

(5) 

Response received 

REQ (NC program 

 

communication function) 

Transmission processing by 
communication function 

Reception processing by 
communication function 

State 

FOCAS2 function cnc_unsolicstop 

FOCAS2 function cnc_unsolicstart 

 

Fig. 17.2.6.6 (c) 

 
(1)  After checking that REQ is set to 0, the NC program prepares a message then sets REQ to 1. 
(2)  Because of REQ set to 1, the communication function transmits the message. 
(3)  The communication function completes message transmission processing. 
(4)  Upon reception of a response to the message, the communication function completes reception 

processing. 

(5)  Because of reception processing completed, the communication function sets REQ to 0. 
 

NOTE 

 

For details of the states, see "

Display items

" in Subsection 17.2.6.3, "Mode 

selection". 

 

B-64693EN-1/01

 

 

17. EMBEDDED ETHERNET FUNCTION

 

- 2711 - 

Example of using a macro variable for control

 

An example of using a macro variable for control is provided below. 
 

Example 
[Description] 

An NC program on CNC path number 1 posts NC command start date and time information as 
an unsolicited message to the personal computer. 

[Setting] 

As a macro variable for control, volatile RTM variable number #0 (REQ) is used. On the other 
hand, macro variables for transmission are used for date and time information managed inside 
the CNC (system variable numbers #3011 and #3012). 

 

Setting item 

Set value 

CONTROL PARAMETER TYPE 

CONTROL PARAMETER 

1:0 

TRANSMISSION NUMBER 

TRANSMISSION PARAMETER (NO.1) 

 

 

TYPE 

MACRO NO. 

1:3011 

NUMBER 

TRANSMISSION PARAMETER (NO.2) 

 

 

TYPE 

MACRO NO. 

1:3012 

NUMBER 

 

[Example of NC program] 

A  RTM  variable  is  executed  in synchronism with the immediately  following  NC  command 
according to the RTM  variable  specification. At this time, the operation  timing  of the 
immediately following NC command is not affected. 
So, the NC program indicated below posts NC command 2 start date and time information as an 
unsolicited message to the personal computer. 

 

 

 : 
 : 
 : 

 : 
 : 
 : 

#RV[0]=1;

 

 

NC program 

NC command 1 
Macro call command 
NC command 2 

RTM variable for control of the unsolicited 
messaging function 

//1 ZDO; 
ZWHILE[#RV[0] NE 0]; 
#RV[0]=1; 
ZEND; 

(1) 

One machining 
cycle 

 

(Tip) (1) in the example above corresponds to the number in the timing chart provided earlier. 

 

17. EMBEDDED ETHERNET FUNCTION

 

 

B-64693EN-1/01

 

- 2712 - 

NOTE 

1  Note that if a custom macro is used as a macro for control, the operation timing 

of an NC command is affected. If the RTM variable in the example above is 
replaced with a custom macro, for example, NC command 2 becomes 
unexecutable unless the macro variable for control is changed. 

2  For details of custom macros and RTM variables, refer to "OPERATOR'S 

MANUAL (Common to Lathe System/Machining Center System) (B-64694EN)". 

 

17.2.6.7 

Related parameters 

For embedded Ethernet port 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

14880 

 

 

 

 

UNM 

 

 

 

 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit 

 

 

#4  UNM

  With an embedded Ethernet port, the CNC Unsolicited Messaging function is: 

0: 

Not used. 

1: 

Used. 

 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

14882 

 

 

 

 

UNS 

 

 

 

 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit 

 

 

#4  UNS

  In the CNC Unsolicited Messaging function of an embedded Ethernet port, when the end 

of the function is requested by other than the CNC  Unsolicited Messaging server 
currently connected: 
0: 

The request for the end of the function is rejected. 

1: 

The request for the end of the function is accepted. 

After these parameters are modified, the power must be turned off then back on or the embedded Ethernet 
function must be terminated then restarted for the settings to become effective. 
 

B-64693EN-1/01

 

 

17. EMBEDDED ETHERNET FUNCTION

 

- 2713 - 

17.2.7 

Setting of the CNC Screen Web Server Function 

This subsection describes  the  setting  required  to operate the CNC screen Web server function  with the 
embedded Ethernet function. 
 

17.2.7.1 

Overview 

This subsection provides an overview of the CNC screen Web server function and describes the execution 
procedure.

 

 

Overview of the CNC screen Web server function 

An overview of the CNC screen Web server function is provided below. 
This function enables screen display and screen switch of CNC on a Web browser of a Tablet-type device 
that connects with CNC through Ethernet. 
The screen which is displayed on a Web browser is the same as the screen displayed on a standard CNC 
Display unit. 
The screen switch operation at a Web browser is reflected in a standard CNC Display unit. 
 

NOTE 

1  A Tablet-type device cannot be used instead of a standard CNC Display unit. 
2  It is also possible to use a Web browser of the personal computer. 
3  Behavior might be different according to a Tablet-type device and a Web 

browser. 

4  The update cycle of the screen on a Tablet-type device slows more than a 

standard CNC Display unit. In addition, it might become slower in the following 
cases. 
-  System configuration with high CPU load, such as multi-path/multi-axes 

control. 

-  Operation condition with high CPU load, such as program operation of small 

blocks. 

-  Bad condition of communication between CNC and Tablet-type device. 

 

  WARNING 

 

On the screen of Web browser, do not perform the operation which relates to the 
machine operation, e.g. Virtual MDI key function, the data input by soft key, or a 
machine operator's panel screen made by machine tool builder. 

 

The bad condition of communication might cause an unexpected machine 
operation. For example, the off operation of a button on the screen might be lost, 
or the response of a button might be slow. Such an unexpected machine 
operation may damage the tool, the machine itself, the workpiece, or cause 
injury to the user. 

 

Therefore, when connecting with Web browser by this function, perform the 
sequences that check Web browser connection status signal WBCNT 
<F0578.2> and prohibit the operation such as the data input and the operation 
from the screen. 

 

Connection status of the CNC screen Web server function 

CNC connects a Tablet-type device via the embedded Ethernet and a wireless LAN equipment. 
Refer to the manual of each equipment for the method of connecting the Tablet-type device and wireless 
LAN equipment. 

 

 

 

 

 

 

 

Content      ..     342      343      344      345     ..