Description
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
Declaration
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.
Return
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 |
---|---|
(3) |
|
(4) |
|
(5) |
|
(9) |
|
(-1) |
|
(1) |
|
(10) |
|
(13) |
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"
CNC option
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.
When Ethernet board is used,
- only Ethernet function is required.
CNC parameter
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)
CNC mode
This function can be used in any CNC mode.
Available CNC
0i-A | 0i-B/C(Note) | 0i-D | 0i-F | 15 | 15i | 16 | 18 | 21 | 16i-A | 18i-A | 21i-A | 16i-B | 18i-B | 21i-B | 30i-A | 30i-B | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
M (Machining) | |||||||||||||||||
T (Turning) | - | ||||||||||||||||
LC (Loader) | - | - | - | - | - | - | - | - |
0i-D | 0i-F | 16i | 18i | 30i-A | 30i-B | |
---|---|---|---|---|---|---|
P (Punch press) | - | |||||
L (Laser) | - | - | - | - | ||
W (Wire) | - | - |
Power Mate i-D | |
Power Mate i-H | |
Power Motion i-A | E |
"O" | : | Both Ethernet and HSSB | |
"E" | : | Ethernet | |
"H" | : | HSSB | |
"X" | : | Cannot be used | |
"-" | : | None |
Note) 0i-C does not support the HSSB function.
See Also
cnc_wrunsolicprm cnc_rdunsolicprm cnc_unsolicstop cnc_rdunsolicmsg