Reads the alarm messages from PMC.
Universal Fanuc Driver
Fanuc Focas Library CD
Specify the library handle.
See "Library handle" for details.
Specify the number of alarm messages to be read before function call and actual number of alarm messages being read is stored after the function call.
|-1||:||There is no alarm.|
|0||:||All alarms were read.|
|1||:||Alarm still exists.|
If the alarm still exists, it is possible to read the remained PMC alarms by setting "s_number = s_number + read_num" and calling this function again.
The number of array must be required so as to store the PMC alarms specified by 'read_num'.
The ODBPMCALM structure is as follows.
Type MyODBPMCALM nOdb_pmcalm(0 To 9) As ODBPMCALM End Type ' In case that the read_num is 10.
- Alarm message character string is set.
The message is terminated with NULL('\0').
The alarm messages are described in "fwpmcalm.ini".(except 30i, 0i-D/F, PMi-A)
Customized alarm messages can be acquired by modifying the messages in "fwpmcalm.ini" file.
Please copy "fwpmcalm.ini" onto the application folder or Windows system folder.
When this file does not exist there, this function outputs the internal default messages.
Series 30i, 0i-D/F and PMi-A does not use "fwpmcalm.ini" file.
- "fwpmcalm.ini" file format is as follows.
- Key = "Alarm message strings"
PMC-NA : indicates the following messages are for PMC-NA. OTHERS : indicates the following messages are for other PMCs than PMC-NA.
Key is defined as the next format.
In case of error message : ERxx (xx is error number) In case of warning message : WNxx (xx is warning number)
When the same message numbers exist, '_x' (x=1,2,...) is attached to the key.
- Alarm message strings
An arbitrary character string can be specified up to 128 characters (NULL as the terminator is included).
The ';' cannot be used in the character string.
Moreover, the '%02d'(For the decimal number) and the '%02x'(For the hexadecimal number) are described into the messages which show the group number, etc..
- Example :
[OTHERS] ER01 = "ER01 PROGRAM DATA ERROR" ER35_1 = "ER35 TOO MUCH OUTPUT DATA IN GROUP(%02d)" WN01 = "WN01 LADDER MAX SIZE ERROR"
- Notes for modifying "fwpmcalm.ini" file
1) Please do not modify the Section, PMC-NA, OTHERS, and the Key themselves. 2) A Key and corresponding message can be deleted.
When a Key and corresponding message are deleted, the fixed message which this function holds internally is acquired.
3) The modifying of alarm messages is possible, but the new Key cannot be added.
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|
The specification of the starting number (s_number) is wrong.
data(read_num) is out of range.
As for the other return codes or the details, see "Return status of Data window function"
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.
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,
When Ethernet board is used,
- only Ethernet function is required.
This function is not related to CNC parameter.
This function can be used in any CNC mode.
|P (Punch press)||-|
|Power Mate i-D|
|Power Mate i-H|
|Power Motion i-A||O|
|"O"||:||Both Ethernet and HSSB|
|"X"||:||Cannot be used|
Note) 0i-C does not support the HSSB function.