Description
Reads the CNC setting data information specified by "s_number" and "read_no".
The CNC setting data is basically non-continuous, and the attribute like the type and the size, etc. is different at each number. Use this function for the purpose such as displaying the setting data.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specify the start setting data number.
Specify the number of the setting data information to be read.
Pointer to the ODBSETIF structure including the setting data information. The ODBSETIF structure is as follows.
typedef struct odbsetif {
unsigned short info_no ; /* number of setting data information */
short prev_no ; /* previous setting data number */
short next_no ; /* next setting data number */
struct {
short set_no ; /* setting data number */
short set_type ; /* attribute of setting data */
} info[N] ; /* N is number of setting data information */
} ODBSETIF ;
- info_no
- Number of setting data information
Number of the setting data information which has been read actually. - prev_no
- Previous setting data number
Previous effective number of the setting data information which has been read first. - next_no
- Next setting data number
Next effective number of the setting data information which has been read last. - info[N].set_no
- Setting data number
The setting data number which exists actually. - info[N].set_type
- Attribute of setting data
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 (always)1 : enable bit 5 : write protection (always)0 : enable bit 6 : power must be off after writing (always)0 : disable 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 (always) 1 : enable bit 5 : write protection (always) 0 : enable bit 6 : power must be off after writing (always) 0 : disable 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 : array type attribute 0 : except array type 1 : array type bit 3 : sign 0 : with sign 1 : without sign bit 4 : settings input (always) 1 : enable bit 5 : write protection (always) 0 : enable bit 6 : power must be off after writing (always) 0 : disable bit 7 : read protection (always)0 : enable 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 setting data 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_rdset cnc_wrset cnc_rdsetr cnc_wrsets cnc_rdsetnum