Description
Reads the CNC parameter information specified by "s_number" and "*read_no".
The CNC parameter is basically non-continuous, and the attribute like the type and the size, etc. is different in each number.
Use this function for such as displaying the parameter.
This function can read the information of path type and machine group type of the parameter.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specify the start parameter number.
Specify the number of parameter information to be read.
The number which was read actually is returned.
Pointer to valiable of the previous parameter number to read.
After the function returns, parameter number which exists before the number indicated as s_number is set.
Pointer to valiable of the next parameter number to read.
After the function returns, parameter number which exists after the number to read is set.
Pointer to the ODBPARAIF2 structure including the parameter information. The ODBPARAIF2 structure is as follows.
typedef struct odbparaif2 {
short prm_no; /* number of parameter */
short size; /* parameter size */
short array; /* arrange type */
short unit; /* unit */
short dim; /* dimension */
short input; /* inout type */
short display; /* display information */
short others; /* other information */
} ODBPARAIF2 ;
- info[N].prm_no
- number of parameter
- info[N].size
- parameter size
- info[N].array
- arrange type
- info[N].unit
- unit
- info[N].dim
- dimension
- info[N].input
- input type
- info[N].display
- display information
- info[N].others
- other information
0 | : | bit type |
1 | : | byte type |
2 | : | word type |
3 | : | 2 word type |
4 | : | real number type |
0 | : | independent type |
1 | : | axes type |
2 | : | spindle type |
3 | : | paths type |
4 | : | machine gorup type |
0 | : | except real number |
1 | : | input unit |
2 | : | output unit |
3 | : | offset unit |
0 | : | except real number |
1 | : | length unit |
2 | : | angle unit |
3 | : | length + angle unit |
4 | : | velocity unit |
0 | : | normal |
1 | : | setting parameter |
2 | : | input prohibit |
bit 0 | : | symbol exist |
bit 1 | : | top of group |
bit 2 | : | bottom of group |
bit 3 | : | gap required |
bit 0 | : | unsigned |
bit 1 | : | power off required |
bit 2 | : | not output |
bit 3 | : | not compared |
bit 4 | : | loader attribute |
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) |
Start parameter number (s_number) is wrong. |
As for the other return codes or the details, see "Return status of Data window function"
CNC option
For HSSB connection,
For Ethernet connection,
The Ethernet function and the extended driver/library function are necessary. However, in case of Series 0i-F, 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.
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 | O |
"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_rdparam cnc_wrparam cnc_rdparar cnc_wrparas cnc_rdparam_ext cnc_rdparanum