When you use the Macro variable for the control parameter(Simple method)(30i/31i/32i only)
In the response method, the method to use the macro variable as the control data is explained. The custom macro variable and the RTM variable can be used to the control data.
Note) The PMC address can be also used for the transmission data. In the following explanations, the macro variable is used as the transmission data.
Explanation of macro variable for control
Details of the Macro variable for the control used for the unsolicited messaging function are shown. The one Macro variable is necessary to control.
The example which uses "#xxxx" as Macro variable for the control data is shown.
REQ (#xxxx)
[Name]
Transmission request variable for message
[Division]
Inpit/output variavle
[Function]
The transmission of unsolicited message is requested.
[Operation]
After preparing the transmission message to the Macro variable for the transmission, the NC program changes this signal to "1". Then, the message is transmitted to the PC. After receiving the response of the message, CNC(communication board) changes this signal to "0".
Timing chart of macro variable for control
1
:
The NC program prepares the transmission message after confirming REQ is "0", and REQ is changed to "1".
2
:
The comminucation board transmits the transmission message.
3
:
The communication board completes the transmission processing of the message.
4
:
The communication board completes the reception processing after receiving the response of the message.
5
:
After completing the reception processing, the communication board changes REQ to “0".