Description
Please refer to "Unsolicited Messaging Function" for the detail information of unsolicited messaging function. This function does not have the argument, library handle "FlibHndl".
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments : Ethernet
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.
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 |
---|---|
(1) |
|
(5) |
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.
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) | |||||||||||||||||
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 | X |
"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