NewsCNCnetPDMAbout usSupport
  

CNC_UNSOLICSTART | UNSOLIC

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.

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

#include "fwlib32.h" or "fwlib64.h"

FWLIBAPI short WINAPI cnc_unsolicstart( unsigned short FlibHndl, short number, HWND hWnd, UINT msgno, short chkalive, short *bill );

Arguments : Ethernet

FlibHndl   [ in ]

Specify the library handle. See "Library handle" for details.

number   [ in ]

The parameter number for unsolicited messaging. Reserved argument, so must be set to "1".

hWnd   [ in ]

Specify the window handle which receives the window message.

msgno   [ in ]

Specify the window message number (0-16383). The window message number which is added WM_APP(0x8000) is notified to the application.

chkalive   [ in ]

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.

bill   [ out ]

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
EW_NUMBER
(3)
The parameter number(number) for unsolicited message is wrong.
EW_ATTRIB
(4)
The window message number(msgno) is wrong.
EW_DATA
(5)
The interval time(chkalive) to check the existence signal transmitted from the communication board is wrong.
EW_PARAM
(9)
The parameter for the unsolicited message has not been set.
EW_BUSY
(-1)
The unsolicited message is being transmitted.
EW_FUNC
(1)
Unavailable. or Please stop receiving by cnc_unsolicstop. or The unsolicited messaging server has not started.
EW_BUFFER
(10)
The number of CNC which is able to be registered in the Unsolicited messaging server is exceeded.
EW_REJECT
(13)
The message transmission is begun with other destination PC.
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.

  • Series 16i/18i/21i, 0i, Power Mate i, Series 30i/31i/32i, PMi-A
    No.904#4=1 (must be set)
  • Series 0i-F, 30i/31i/32i(Embedded Ethernet(Built-in port))
    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)X E E E X X X X X E E E E E E E E
T (Turning) X E E E X - X X X E E E E E E E E
LC (Loader) - - - - - - X X X X X X X X X - -

0i-D0i-F16i18i30i-A30i-B
P (Punch press)E E X X - E
L (Laser) - - X - - E
W (Wire) - - X X X X


Power Mate i-DE
Power Mate i-HE
Power Motion i-AE

"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  

Privacy notice

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

https://www.inventcom.net/fanuc-focas-library/unsolic/cnc_unsolicstart

Fanuc Focas Library | Unsolic | cnc_rdunsolicmsg

Reads the unsolicited messaging data. This function is available only for Series 16i/18i/21i, 0i and Power Mate i. This function cannot be used with Visual Basic.... [read more]
Fanuc Focas Library | Unsolic | cnc_rdunsolicmsg

Fanuc Focas Library | Unsolic | cnc_rdunsolicmsg2

Reads the unsolicited messaging data. This function is available only for Series Series 30i/31i/32i, 0i-D/F and PMi-A. This function cannot be used with... [read more]
Fanuc Focas Library | Unsolic | cnc_rdunsolicmsg2

Fanuc Focas Library | Unsolic | cnc_rdunsolicprm

Reads the parameter for unsolicited messaging from CNC. This function is available only for Series 16i/18i/21i, 0i and Power Mate i. This function cannot be used... [read more]
Fanuc Focas Library | Unsolic | cnc_rdunsolicprm

Fanuc Focas Library | Unsolic | cnc_rdunsolicprm2

Reads the parameter for unsolicited messaging from CNC. This function is available only for Series Series 30i/31i/32i, 0i-D/F and PMi-A. This function cannot be... [read more]
Fanuc Focas Library | Unsolic | cnc_rdunsolicprm2

Fanuc Focas Library | Unsolic | cnc_unsolicstop

Directs the termination of reception of the unsolicited messaging. When the CNC parameter No.905#4 is 1, this function can be... [read more]
Fanuc Focas Library | Unsolic | cnc_unsolicstop

Fanuc Focas Library | Unsolic | cnc_wrunsolicprm

Sets the parameter for unsolicited messaging to CNC. This function is available only for Series 16i/18i/21i, 0i and Power Mate i. This function cannot be used with... [read more]
Fanuc Focas Library | Unsolic | cnc_wrunsolicprm

Fanuc Focas Library | Unsolic | cnc_wrunsolicprm2

Sets the parameter for unsolicited messaging to CNC. This function is available only for Series 30i/31i/32i, 0i-D/F and PMi-A. This function cannot be used... [read more]
Fanuc Focas Library | Unsolic | cnc_wrunsolicprm2

Fanuc Focas Library | Unsolic | flist_UnSolic

CNC: Function related to Unsolicited messaging function... [read more]
Fanuc Focas Library | Unsolic | flist_UnSolic
Modified: 2023-12-05