
[Description]
Reads the detail informations of currently arising CNC alarms.
This function is used for displaying the alarm numbers or messages of
the currently arising alarms by the application program, etc.
Specify the kind of alarm to be read in "alm_type".
alm_type Kind of alarm
---------------+-----------------------------------------------
0 The parameter write switch is on. (SW)
1 A parameter that requires turning off the
power was input. (PW)
2 I/O error (IO)
3 Foreground P/S (PS)
4 Overtravel/external data input error (OT)
5 Overheat (OH)
6 Servo alarm (SV)
7 Data input/output error (SR)
8 Macro alarm (MC)
9 Spindle alarm (SP)
10 OT alarm that will not lead to a PS alarm (DS)
11 Alarm related to malfunction prevention (IE)
12 Background P/S (BG)
13 Synchronization error too high (SN)
14 Reserved
15 External alarm message (EX)
16 External alarm message (EX2)
17 External alarm message (EX3)
18 External alarm message (EX4)
19 PMC error (PC)
20 Not used
:
31 Not used
Specify data format in "type".
type Contents of read data
-------+-------------------------------------------------
0 Axis information and alarm number
1 Axis information, alarm number and alarm message
Format of input data
- type = 0
+-----------------------+
│ Axis information 1 │ <-- buf.u.alm1.alm[0].axis
│-----------------------│
│ Alarm number 1 │ <-- buf.u.alm1.alm[0].alm_no
│-----------------------│
:
│-----------------------│
│ Axis information n │
│-----------------------│
│ Alarm number n │
│-----------------------│
│ 0xFFFF (End of data) │
+-----------------------+
Maximum value of n is N.