3 diagnostic function blocks, 1 smc_axisdiagnosticlog, Diagnostic function blocks – Lenze PLC Designer PLC-Designer (R2-x) SoftMotion User Manual
Page 255: Smc_axisdiagnosticlog, L-force | plc designer - softmotion
![background image](/manuals/566299/255/background.png)
L-force | PLC Designer - SoftMotion
The SM_FileFBs.lib library
Diagnostic function blocks
255
L
DMS 5.2 EN 03/2011 TD17
11.3
Diagnostic function blocks
11.3.1
SMC_AxisDiagnosticLog
This program organisation unit can be used to write selected axis values to a file cyclically.
The resulting file is ideal for diagnostic use.
As it usually takes quite some time to write data to a data medium, this program
organisation unit stores the collected data in a 5 KB buffer and the data is not written until
the WriteToFile POU action is called. This call should, therefore, be moved to a slower
(around 50 ms) task of lower priority to ensure that the actual motion task is not
obstructed and that the drive behaviour is not disturbed. If the buffer overflows, the
program organisation unit will generate an error.
Inputs/outputs (VAR_IN_OUT)
Axis: AXIS_REF;
Axis to be watched
Inputs (VAR_IN)
bExecute: BOOL
The program organisation unit starts on a rising edge. If a file of the same name already
exists, it will be overwritten.
bCloseFile: BOOL
The program organisation unit closes the file as soon as this input assumes the value TRUE.
sFileName: STRING(80)
File path and name
bSetPosition, bActPosition, bSetVelocity, bActVelocity, bSetAcceleration,
bActAcceleration: BOOL
These inputs determine whether the associated axis values will be saved to the file or not.
bySeparatorChar: BYTE (default: TAB)
ASCII code of the character to be written between two values of the same data item