This function allows you to generate a crash (ACC) file and control its overwrite protection status.
To use this function, the following setting must be enabled in the device configuration:
Accelerometer > Crash Detection > "Enable Crash Detection..."
In the Function Menu | On the Diagram |
---|---|
![]() |
![]() |
Name | Value Type | Description |
---|---|---|
generate |
bool |
Signal to generate a crash file |
unlock |
bool |
On rising edge, removes overwrite protection |
Trigger logic depends on the input source!
The function is triggered every time a constant with value True is connected to the
generate
input.It is triggered on rising edge (when value changes from False to True) if a variable or output of another function is connected to the
generate
input.
Name | Value Type | Description |
---|---|---|
active |
bool |
Crash file is being generated. Value True is set when file generation starts, and False when it completes. |
time |
int32 |
File creation time in UNIX format (0 – crash file does not exist) |
locked |
bool |
Set to True if the file is protected from overwriting |
None