Description
Reads all slave table
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specifies the pointer to the OUT_ALLSLVTBL structure to store the acquired parameter.
The OUT_ALLSLVTBL structure is as follows.
typedef struct _OUT_ALLSLVTBL{
T_SLVTBL slv_tbl[80];
} OUT_ALLSLVTBL;
typedef struct _T_SLVTBL{
T_SLAVE_IND_PARA slv_ind_para;
unsigned char slv_enable;
unsigned char slt_num;
unsigned char dgn_path;
unsigned char dgn_kind;
unsigned short dgn_top_address;
unsigned char dgn_size;
unsigned char pad;
} T_SLVTBL;
/* SLAVE INDICATION PARAMETER */
typedef struct _T_SLAVE_IND_PARA
{
unsigned char slv_idx;
unsigned char slv_no;
} T_SLAVE_IND_PARA;
- slv_tbl.slv_idx
- number of slave index
- ange: from 0 to 47
- slv_tbl.slv_no
- number of slave station
- range: from 0 to 125
- slv_tbl.slv_enable
- show whether the communication with the slave is valid or invalid
0x00 : invalid 0xff : valid - slv_tbl.slt_num
- number of slot for I/O module
- range: from 1 to 128
- slv_tbl.dgn_path
- PMC path number of diagnosis data
- range: from 1 to 3
- slv_tbl.dgn_kind
- PMC address of diagnosis data
- range: R or E
- slv_tbl.dgn_top_address
- top number of PMC address of diagnosis data
- range: depend on the PMC address
- slv_tbl.dgn_size
- the size of diagnosis data
- range: from 0 to 244
- unit: byte
- slv_tbl.pad
- unused
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 | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
(6) |
In order to get more information for this err_no return value, execute cnc_getdtailerr function. err_no of ODBERR structure.
|
|||||||||
(13) |
In order to get more information for this err_no return value, execute cnc_getdtailerr function. err_no of ODBERR structure.
|
As for the other return codes or the details, see "Return status of Data window function"
CNC option
This function need the following CNC option.
For HSSB connection,
CNC parameter
This function is not related to CNC parameter.
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 | H |
"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
pbm_ini_prm pbm_exe_subfunc pbm_rd_subprm pbm_rd_errcode