LOG_EVENT(a, ...)
Logs the values of the operands a, ... in the Event Log. This function can have 1 to 3 operands. This function is very useful for troubleshooting.
Parameters
a, etc.(REAL, DINT, or DWORD)
The values to record in the Event Log.
Return Value
The LOG_EVENT function does not return a value.
Remarks
The LOG_EVENT function can only be used in the Expression (113) command and user functions. Multiple LOG_EVENT statements can be used in a single Expression (113) command. Do not use with the assignment operator (:=). Use this function by itself only. Other functions can be nested inside.
For calculation-intensive projects, logging of assignment expressions, immediate commands, and the COPY function may be disabled in the Programming Properties. The LOG_EVENT function provides a method of troubleshooting even when the aforementioned logging is disabled.
Examples
LOG_EVENT(_Axis[0].ActPos);
LOG_EVENT(MyVariable, _Axis[0].ActPos);
LOG_EVENT(MyVariable, ABS(_Axis[0].ActPos), MyArray[0]);
LOG_EVENT(MyVariable + MyOtherVariable, _Axis[0].StatusBits, SIN(123));
See Also
Copyright © 2024 Delta Computer Systems, Inc. dba Delta Motion