Description
Reads the A/D conversion data. The A/D conversion data is stored in "data" of "ODBAD".
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specify the type of analog voltage input.
0, 1 | : | Analog for general purpose |
100, 101 | : | Load current of analog spindle |
200 | : | Load current of CNC controlled axis |
0 | : | Analog for general purpose(4 channel) -- only 16/18 MODEL B/C |
2 | : | CNC controlled axis load current |
Specify the kind of analog voltage(specification of connector).
- Specification of analog for general purpose
- Specification of load current of analog spindle.
- Specification of Load current of CNC controlled axis.
- When MAX_AXIS=15, av_type=16,..,24 are not used.
- When MAX_AXIS=10, av_type=11,..,24 are not used.
inp_type | av_type | Input channel | Signal | Connector |
---|---|---|---|---|
0 | 0 | Channel1 | AIN2 | JA6 |
1 | 0 | Channel2 | AIN3 | JA6 |
inp_type | av_type | Analog spindle | Signal | Connector |
---|---|---|---|---|
100 | 0 | 1st spindle | AIN0 | JA6 |
101 | 0 | 2nd spindle | AIN1 | JA6 |
inp_type | av_type | Servo axis | Signal | Connector |
---|---|---|---|---|
200 | 1 | 1st axis | AMP1 | JV1 |
200 | 2 | 2nd axis | AMP2 | JV2 |
: | ||||
200 | 10 | 10th axis | AMP10 | JV10 |
200 | 11 | 11th axis | AMP11 | JV11 |
: | ||||
200 | 23 | 23th axis | AMP23 | JV23 |
200 | 24 | 24th axis | AMP24 | JV24 |
- Specification of analog for general purpose(16/18 MODEL B/C)
- Specification of Load current of CNC controlled axis.
- 9axis-32axis are effective for Series 30i.
inp_type | av_type | Servo axis | Signal | Connector |
---|---|---|---|---|
0 | 0 | Channel1 | AIN0 | JA6 |
0 | 1 | Channel2 | AIN1 | JA6 |
0 | 2 | Channel3 | AIN2 | JA6 |
0 | 3 | Channel4 | AIN3 | JA6 |
inp_type | av_type | Servo axis | Signal | Connector |
---|---|---|---|---|
2 | 1 | 1st axis | AMP1 | JV1 |
2 | 2 | 2nd axis | AMP2 | JV2 |
2 | 3 | 3rd axis | AMP3 | JV3 |
2 | 4 | 4th axis | AMP4 | JV4 |
2 | 5 | 5th axis | AMP5 | JV5 |
2 | 6 | 6th axis | AMP6 | JV6 |
2 | 7 | 7th axis | AMP7 | JV7 |
2 | 8 | 8th axis | AMP8 | JV8 |
: | ||||
2 | 31 | 31th axis | AMP31 | JV31 |
2 | 32 | 32th axis | AMP32 | JV32 |
Pointer to the ODBAD structure including A/D conversion data. The ODBAD structure is as follows.
Series 15B
typedef struct odbad {
short datano ; /* type of analog voltage input */
short type ; /* kind of analog voltage
(specification of connector) */
char data ; /* digital voltage */
} ODBAD ;
Series 15i, 16/18, 16i/18i/21i, 30i, 0i, Power Mate i, PMi-A
typedef struct odbad {
short datano ; /* type of analog voltage input */
short type ; /* kind of analog voltage
(specification of connector) */
short data ; /* digital voltage */
} ODBAD ;
- datano
- The type of analog voltage input is stored.
- type
- The kind of analog voltage(specification of connector) is stored.
- data
- The analog voltage data is set, which is input in A/D converter of the CNC, with conversion into digital value.
- Series 15/15i
- The A/D conversion data (0,..,255) which is converted from input voltage data is stored with binary format. The digital data is linearly proportional to the input voltage as follows.
Input voltage data -10V 0 0V 128 (half - adjust value) 10V 255
- Series 16/18, 16i/18i/21i, 30i, 0i, Power Mate i, PMi-A
- Specification of analog for general purpose(16/18 MODEL B/C)
The A/D conversion data (0,..,255) which is converted from input voltage data is stored with binary format. The digital data is linearly proportional to the input voltage as follows.Input voltage data -10V 0 0V 128 (half - adjust value) 10V 255 - Specification of Load current of CNC controlled axis.
The digital value which is converted from the load current is stored with binary format. It is possible to get the load current using this value as following formula.The load current (A) = adcnv.data * N / 6554 N : the value read from Parameter No.2086
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) |
The type of analog voltage input (inp_type) is wrong. |
(4) |
The kind of analog voltage (av_type) 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.