NewsCNCnetPDMAbout usSupport
  

CNC_RDUNSOLICMSG | UNSOLIC

Description

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. Please use Visual C++ for making your application.
Please refer to "Unsolicited Messaging Function" for the detail information of unsolicited messaging function.

This function does not have the argument, library handle "FlibHndl".
MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

#include "fwlib32.h"

FWLIBAPI short WINAPI cnc_rdunsolicmsg( short bill, IDBUNSOLICMSG *data );

Arguments : Ethernet

bill   [ in ]

Handle for the Message data reading. Specify the value acquired by the cnc_unsolicstart or the value notified by the argument(lParam) of the message reception function.

data   [ out ]

Pointer to IDBUNSOLICMSG structure in which the unsolicited messaging data will be stored.

The IDBUNSOLICMSG structure is as follows.

typedef struct idbunsolicmsg {
    short   getno ;
    struct {
        short   rdsize ;
        void    *data ;
    } msg[3] ;
} IDBUNSOLICMSG ;
getno
Number of the Message data which was acquired by the unsolicited messaging. (1-3).
rdsize
Size of PMC data which was transmitted by the unsolicited messaging. (byte)
data
Specify the pointer to the buffer in which the PMC data which was transmitted is stored. The size of this area must ensure the size which has been specified as "rdsize" at cnc_wrunsolicprm.
Setting example)
IP address : 192.168.0.1
TCP port number : 8196
PMC address : R2000
Retry number : 3
Timeout : 10 sec
Transmission data : 2
1st message : R2100-2149
2nd message : D110-149

IDBUNSOLICMSG data;
char msg1[50];
char msg2[40];
data.msg[0].data = msg1; // Contents of R2100-2149
data.msg[1].data = msg2; // Contents of D110-149

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_FUNC
(1)
Unavailable
EW_DATA
(5)
The message corresponding to the handle(bill) has not been transmitted.

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, 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
    No.904#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 X X X X X X X E E E E E E X X
T (Turning) X E X X X - X X X E E E E E E X X
LC (Loader) - - - - - - X X X X X X X X X - -

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


Power Mate i-DE
Power Mate i-HE
Power Motion i-AX

"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_unsolicstart   cnc_unsolicstop  

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_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_unsolicstart

Directs the starting of reception of the unsolicited messaging. The starting of reception directs by the PC that receives the unsolicited messaging. This... [read more]
Fanuc Focas Library | Unsolic | cnc_unsolicstart

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