Directs the starting of reception of the unsolicited messaging. The starting of reception directs by the PC that receives the unsolicited messaging.
This function is available only for Series 16i/18i/21i, 0i, Power Mate i, Series 30i/31i/32i and PMi-A. This function cannot be used with Visual Basic. Please use Visual C++ for making your application.
Please refer to "Unsolicited Messaging Function" for the detail information of unsolicited messaging function.
Universal Fanuc Driver
Fanuc Focas Library CD
Arguments : Ethernet
Specify the library handle. See "Library handle" for details.
The parameter number for unsolicited messaging. Reserved argument, so must be set to "1".
Specify the window handle which receives the window message.
Specify the window message number (0-16383). The window message number which is added WM_APP(0x8000) is notified to the application.
Specify the interval time(sec) that the unsolicited messaging server checks the existence signal transmitted from the communication board. Set the value longer than "alivetime" which has been set by cnc_wrunsolicprm. When the existence signal from CNC cannot be received during the time of about twice the value of chkalive, the message of wParam=-1 is transmitted to the application. When OFF/ON of the CNC power supply is done during this interval, the information of CNC power OFF(wParam=-1) cannot be notified to the application by the Unsolicited messaging server. So, the operation after that is not guaranteed.
Pointer to the data in which the handle for the Message data reading will be stored. This data will be used later when the Message data is read at cnc_rdunsolicmsg.
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.
The major error codes are as follows.
|Return code||Meaning/Error handling|
or The starting of reception was directed excluding PC that receives the unsolicited messaging.
As for the other return codes or the details, see "Return status of Data window function"
For Ethernet connection,
The Ethernet function and the extended driver/library function are necessary. However, in case of Series 16i/18i/21i-B, 0i-B/C/D/F, Series 30i and PMi-A the required CNC option is as follows. When Embedded Ethernet is used,
above two optional functions are not required.
The Ethernet function and the extended driver/library function are necessary.
However, in case of Series 16i/18i/21i-B, 0i-B/C/D/F, Series 30i and PMi-A the required CNC option is as follows.
When Embedded Ethernet is used,
When Ethernet board is used,
- only Ethernet function is required.
This function is not related to CNC parameter.
This function is related to the following CNC parameter.
See the manual of FAST Ethernet for details.
No.904#4=1 (must be set)
No.14880#4=1 (must be set)
This function can be used in any CNC mode.
|P (Punch press)||-|
|Power Mate i-D|
|Power Mate i-H|
|Power Motion i-A||E|
|"O"||:||Both Ethernet and HSSB|
|"X"||:||Cannot be used|
Note) 0i-C does not support the HSSB function.