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.