ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Managing the data
File managing
369
If an alarm event occurs, the alarm state of the alarm message is set from FALSE to TRUE by the
application program and the alarm code (i.e. the array index of the changed array element) as well as
additional information, if any, are transferred to STORE_ALARM. STORE_ALARM detects the change
of the alarm state and automatically saves the message with a time stamp in the alarm file. As long as
the alarm state of this or another message does not change, no new entry is made in the alarm file.
If necessary, the alarm file can be directly processed in the device with READ_ALARM (
→
page
or transferred to a PC via FTP for direct processing, for example, with Excel.
File structure in linear mode vs. ring mode
2 different methods can be used to write to the memory:
a) In the ring mode:
The data is written to the memory up to a file limit indicated in MAX_POS (number of datasets). The
write operation then restarts automatically at the first memory location. The previous datasets are
overwritten. The storage operation continues uninterrupted.
b) In the linear mode:
The data is written to the memory up to a file limit indicated in MAX_POS (number of datasets). This
ends the write operation automatically. No dataset is overwritten.
Principle:
Dataset number
Dataset contents
1 Timestamp,Byte1,Byte2,...,ByteMax
2 Timestamp,Byte1,Byte2,...,ByteMax
3 Timestamp,Byte1,Byte2,...,ByteMax
: :
MAX_POS Timestamp,Byte1,Byte2,...,ByteMax
Structure of the alarm messages
3616
Structure of the alarm message in the CSV dataset
Name
Data type
Description
Timestamp
Byte
More details about alarm
Byte 0
Alarm code
Byte 1
Alarm code, also index in the ALARMSTATE matrix
Alarmstate
Bool
State of the alarm message:
TRUE:
alarm is activated
FALSE: alarm is deactivated
Alarmaddition
Byte
More details about alarm
Byte 0
Byte 1
Byte 2
Alarmvalue
Byte 3
Alarm value (value of the parameter which triggered the current
alarm message)