beautypg.com

Ln function, Log_event function, Ln( a ) – Delta RMC151 User Manual

Page 373: Log_event( a, ... )

background image

5 Programming

LOG(a)
Returns the logarithm (base 10) of a.

Parameters

a (REAL)
The input value.

Return Value

Returns a REAL.

Remarks

If a is less than zero, the task will fault. An error will be logged in the Event Log and the

user program running on the task will stop.

Examples

LOG(1000.0) returns 3.0.
LOG(15.0) returns 1.1760913.

5.14.2.25. LN Function

LN(a)
Returns the natural logarithm (base e) of a.

Parameters

a (REAL)
The input value.

Return Value

Returns a REAL.

Remarks

If a is less than zero, the task will fault. An error will be logged in the Event Log and the

user program running on the task will stop.

Examples

LN(1.0) returns 0.0
LN(2.718282) returns 1.0.

5.14.2.26. LOG_EVENT Function

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.

deltamotion.com

353

This manual is related to the following products: