
- type = 1
+-----------------------+
│ Axis information 1 │ <-- buf.u.alm2.alm[0].axis
│-----------------------│
│ Alarm number 1 │ <-- buf.u.alm2.alm[0].alm_no
│-----------------------│
│ Message length 1 │ <-- buf.u.alm2.alm[0].msg_len
│-----------------------│
│ Alarm message 1 │ <-- buf.u.alm2.alm[0].alm_msg
│-----------------------│
:
│-----------------------│
│ Axis information n │
│-----------------------│
│ Alarm number n │
│-----------------------│
│ Message length n │
│-----------------------│
│ Alarm message n │
│-----------------------│
│ 0xFFFF (End of data) │
+-----------------------+
Maximum value of n is N.
"Axis information" indicates axes in which any alarm is arising by
each bits.
bit0 The 1st axis.
bit1 The 2nd axis.
: :
bit31 The 32nd axis.
"1" of each bit indicates any alarm is arising the
corresponding axis. When all bits are "0", the alarm is not
axis-type one but any ordinary one. When the same alarm is
arising for the multiple axes, the corresponding multiple bits
of the axis information are set as "1".
"Alarm number" is the alarm number (binary format).
"Message length" is a length of the alarm message. A value between 0
and 32 is stored with binary format.
"Alarm message" the alarm message. It is ASCII string which is same as
one displayed in the CNC's alarm screen. 2-byte characters such as
Japanese Kanji character are represented using SHIFT-JIS code. A null
character ('¥x00') is added at the end of the string only when the
string length is less than or equal to 32 bytes. A blank character is
stored in the message of any axis-type alarm instead of the axis name
character. The application program must store the suitable axis-name
character in it.
When no alarms which belong to specified kind arise, only "End of
data" is stored.
This function can't read the alarm mesages (numbers 1000 to 1999)
issued by PMC.