News CNCnetPDM About us Support  
         
  

UNSOL_RES | GENERAL

When you use the PMC address for the control parameter(Response method)

Top Page


When you use the PMC address for the control parameter(Response method)

In the response method, the method to use the PMC address as the control data is explained.

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD 

The "R" or "E" address data of PMC is used to transmit the message from CNC. If you use the unsolicited messaging function, the ladder program by which the signal is controlled as follows is necessary.

Note) In case of 30i/31i/32i, the macro variable can be also used for the transmission data. In the following explanations, the PMC address is used as the transmission data.

 

  • Explanation of PMC address signal for control

 

Details of the PMC address signal for the control used for the unsolicited messaging function are shown. The consecutive PMC address in two bytes is necessary to control.

The example which uses "Rxxxx" as PMC address for the control is shown.

REQ (Rxxxx#7)
[Name] Transmission request signal of message
[Division] Input signal
[Function] The transmission of the unsolicited messaging is requested.
[Operation] After preparing the transmission message to the PMC address for the transmission, the ladder program changes this signal to "1".
Then, the message is transmitted to the PC.
RES (Rxxxx+1#7)
[Name] Response reception signal of message
[Division] Output signal
[Function] The reception of the response of the unsolicited message is notified.
[Output condition] After the message is received by the PC, the response of the message is transmitted to CNC(communication board). After the response is received, CNC(communication board) changes this signal to "1".
The ladder program reads RES_CODE after this signal becomes “1", and changes REQ to “0".
Then, CNC(communication board) changes RES_CODE to 0, and changes this signal to “0".
COM (Rxxxx+1#6)
[Name] Transmission starting signal of message
[Division] Output signal
[Function] Starting of the transmission of the unsolicited message is notified.
[Output condition] When the transmission of the message to the personal computer is started, this signal becomes to "1" and when the transmission is completed, this signal becomes to "0".
RES_CODE (Rxxxx+1#0 - Rxxxx+1#5)
[Name] Response reception result signal of message
[Division] Output signal
[Function] The reception result of the response of the unsolicited message is notified.
[Output condition] The reception result of the response of the message is set.
After reading this signal, the ladder program changes REQ to “0".
Then, CNC(communication board) changes this signal to "0".

 

  • Timing chart of signal of PMC address for control

 

1 : The ladder program prepares the transmission message after confirming REQ is "0", and REQ is changed to "1".
2 : The communication board transmits the message after changing COM to "1".
3 : After transmitting the message, the communication board changes COM to "0".
4 : The communication board sets RES_CODE after the response of the message is received and changes RES to "1".
5 : After reading RES_CODE, the ladder program changes REQ to "0".
6 : The communication board changes RES_CODE to "0".
7 : The communication board changes RES to "0".

 

0x00..0x3F are available for RES_CODE. 0x01..0x0F and 0x21..0x2F are fixed for system and the meaning is as follows.

= 0x00
Success.
= 0x01
CNC has no parameter or CNC doesn't accept the start of the unsolicited messaging service.
= 0x02
here isn't "Unsolicited messaging server" or the sever doesn't run.
= 0x03
CNC fails to transmit.
= 0x04
CNC fails to receive.
= 0x05
Transmission retry on CNC side exceeds the maximum count of retry.
= 0x06
CNC fails to make the Message data.
= 0x07
CNC receives the invalid packet.
= 0x08
CNC accepts the termination of the unsolicited messaging session.
= 0x09..0x0F
Reserved.
= 0x21
The PC application to receive the Message does not exist though the message has been received by the PC. (The PC application might be terminated abnormally.)
= 0x22
The PC application to receive the Message is not recognized to "Unsolicited messaging server" though the Message has been received by the PC. (only Unsolicited messaging server might be restarted.)
= 0x23
Failed in writing the received message to the PC side.
= 0x24
The timeout period (timeout * retry count) is expired.
= 0x25
Illegal data was included in the received message.
= 0x26..0x2F
Reserved.

0x00, 0x10..0x1F, 0x30..0x3F are available for the PC application.


Top Page

Privacy notice

This website uses cookies. By continuing to use it you agree to our privacy policy. 

https://www.inventcom.net/fanuc-focas-library/general/unsol_res
Fanuc Focas Library | General | Fwlib32
FOCAS 1/2 FANUC Open CNC FOCAS1 / FOCAS2 CNC/PMC Data window library... [read more]
Fwlib32
Fanuc Focas Library | General | General
General Description Top Page General Description Library files... [read more]
General
Fanuc Focas Library | General | Unsol_sim2
When you use the Macro variable for the control parameter(Simple method)(30i/31i/32i only) Top Page When you use the Macro... [read more]
Unsol_sim2
Fanuc Focas Library | General | Unsol_sim1
When you use the PMC address for the control parameter(Simple method)(30i/31i/32i only) Top Page When you use the PMC address for... [read more]
Unsol_sim1
Fanuc Focas Library | General | Protect
FOCAS1/Ethernet NC data protection Top Page NC data protection (160i/180i/210i/0i-B/0i-C/Power Mate i Only) A past... [read more]
Protect
Fanuc Focas Library | General | Overview
Outline Top Page Outline CNC/PMC Data Window Library is used for exchanging data and information between a personal computer and the CNC/PMC... [read more]
Overview
Fanuc Focas Library | General | Errcode
Return Status of Data Window... [read more]
Errcode
Fanuc Focas Library | General | Log
Communication Log Function... [read more]
Log
Fanuc Focas Library | General | Dnc1
Communication with Ethernet Board Ethernet version is realized by the socket communication (TCP/IP communication) with FANUC Ethernet Board, or FANUC Fast Ethernet Board. And in... [read more]
Dnc1
Fanuc Focas Library | General | Handle
Library handle Top Page Library handle At the library for HSSB, to establish the communication with the HSSB Board on CNC side, it is necessary... [read more]
Handle
Fanuc Focas Library | General | Update
FOCAS1/2 Ethernet HSSB Update History Top Page Update History of FOCAS1/2 Library... [read more]
Update
Fanuc Focas Library | General | flist_All
CNC: Function Reference related to library handle, node... [read more]
flist_All
Fanuc Focas Library | General | HSSB
Coexistence with... [read more]
HSSB
Fanuc Focas Library | General | Unsolic
FOCAS1/Ethernet Fast Ethernet Unsolicited Messaging Function Top Page Fast Ethernet Unsolicited Messaging Function... [read more]
Unsolic
Modified: 2018-06-10