
ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
Managing the data
File managing
370
File structure
Pointer
File structure in linear mode
1
Timestamp, alarm code (byte 0), alarm code (byte 1), alarm state,..., alarm value (byte 3)
2
Timestamp, alarm code (byte 0), alarm code (byte 1), alarm state,..., alarm value (byte 3)
3
Timestamp, alarm code (byte 0), alarm code (byte 1), alarm state,..., alarm value (byte 3)
: :
n
Timestamp, alarm code (byte 0), alarm code (byte 1), alarm state,..., alarm value (byte 3)
Parameters of the inputs
3534
Parameter
Data type
Description
ENABLE
BOOL
TRUE:
unit is executed
FALSE:
unit is not executed
> POU inputs and outputs are not active
FILENAME
STRING(80)
path and name of the CSV file,
e.g.:
'/home/project/alarm.csv'
ALARMCODE
WORD
alarm code, also index in the ALARMSTATE matrix
ALARMSTATE
ARRAY[1..255] OF BOOL
contains the state of all defined alarm messages:
TRUE:
alarm is activated
FALSE:
alarm is deactivated
ALARMADDITION
BYTE
more details about alarm
ALARMVALUE
DWORD
alarm value (value of the parameter which triggered the current alarm
message)
RINGMODE
BOOL
TRUE:
save in the ring mode
FALSE:
save in the linear mode
MAX_POS
DWORD
max. number of datasets
RESET
BOOL
delete file contents (alarm list) and dataset pointer
CFG_FILENAME
STRING(80)
for ring mode: contains the last dataset pointer,
path and name of the pointer file
e.g.:
'/home/project/pointer.txt'
Parameters of the outputs
3535
Parameter
Data type
Description
FILESIZE
DWORD
current file size [bytes]
WRITTEN_STRING STRING(80)
written
dataset
DATASET_POINTER
DWORD
number of next dataset
RING_CNT
DWORD
counter for number of ring buffer overflows
MODE
STRING(80)
current operating mode:
- 'ring'
- 'linear'
ALARM_EVENT
BOOL
TRUE (only for 1 cycle):
alarm
event
FALSE:
during further processing of the program
CURRENT_STATE
BOOL
state of current alarm