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.
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.
Pointer to the ODBPARAIF structure including the parameter information. The ODBPARAIF structure is as follows.
typedef struct odbparaif {
unsigned short info_no ; /* number of parameter information */
short prev_no ; /* previous parameter number */
short next_no ; /* next parameter number */
struct {
short prm_no ; /* parameter number */
short prm_type ; /* attribute of parameter */
} info[N] ; /* N is number of parameter information */
} ODBPARAIF ;
- info_no
- Number of parameter information
Number of the parameter information which has been read actually. - prev_no
- Previous parameter number
Previous effective number of parameter information which has been read first. - next_no
- Next parameter number
Next effective number of parameter information which has been read last. - info[N].prm_no
- Parameter number
Parameter number which exists actually. - info[N].prm_type
- Attribute of parameter
The following attributes are set. -
- Series 15, 16/18/21, 16i/18i/21i, 0i-A/B/C, Power Mate i
- Series 15i
- Series 30i, 0i-D/F, PMi-A
bit 0, 1 : type attribute 0 : bit type 1 : byte type 2 : word type 3 : 2-word type bit 2 : axis attribute 0 : without axis 1 : with axis bit 3 : sign ( Series 16/18/21, 16i/18i/21i, 0i-A/B/C, Power Mate i ) 0 : with sign 1 : without sign bit 4 : settings input 0 : disable 1 : enable bit 5 : write protection 0 : enable 1 : disable bit 6 : power must be off after writing 0 : not necessary 1 : necessary bit 7 : read protection 0 : enable 1 : disable bit 8 : spindle parameter ( Series 16/18/21, 16i/18i/21i, 0i-A/B/C, Power Mate i ) 0 : no spindle 1 : spindle bit 9,..,15 : (reserve)
bit 0, 1 : (reserve) bit 2 : axis attribute 0 : without axis 1 : with axis bit 3 : (reserve) bit 4 : settings input 0 : disable 1 : enable bit 5 : write protection 0 : enable 1 : disable bit 6 : power must be off after writing 0 : not necessary 1 : necessary bit 7 : read protection 0 : enable 1 : disable bit 8 : spindle parameter 0 : no spindle 1 : spindle bit 9,..,11 : type attribute 0 : bit type 1 : byte type 2 : word type 3 : 2-word type 4 : real type bit 12,..,15 : (reserve)
bit 0, 1 : type attribute 0 : bit type 1 : byte type 2 : word type 3 : 2-word type or real type bit 2 : axis attribute 0 : without axis 1 : with axis bit 3 : sign 0 : with sign 1 : without sign bit 4 : settings input 0 : disable 1 : enable bit 5 : write protection 0 : enable 1 : disable bit 6 : power must be off after writing 0 : not necessary 1 : necessary bit 7 : read protection 0 : enable 1 : disable bit 8 : spindle parameter 0 : no spindle 1 : spindle bit 9,..,11 : (reserve) bit 12 : in case of type attribute = 3 0 : except real type 1 : real type bit 13,..,15 : (reserve)
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 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.
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