User guide
eWON 500-2001-4001-4002 User Guide - Programming the eWON
eWON 500®2001®4001®4002® Version 4_3_0 - User Guide - 10/5/05 - ©ACT'L sa - Page 149
9.2.42 LOGEVENT
Syntax [command]
LOGEVENT S1 [,S2]
• S1 is the phrase to log
• S2 is the type of logging. This parameter is optional and can take the following ranges of values:
If the logging level is not specified, it is considered to be an error.
Purpose:
Appends an event to the log file. The current time is automatically used for event logging.
Example:
9.2.43 LOGIO
Syntax [command]
LOGIO S1
Purpose:
Force historical logging of Tag name given by S1.
The Tag must have historical logging enabled
(Warning: not available on all eWON’s versions - see “Table of comparisons between eWON types” on page 233).
The point is logged at the time the LOGIO command is issued with its current value.
Note: If the Tag is configured for historical logging with logging dead band equal to –1 and time interval equal to 0, no point will be logged
automatically and it is possible to program a purely scripted logging.
Example:
9.2.44 LTRIM
Syntax[Command]
LTRIM S1
• S1 is a string.
Purpose:
LTRIM returns a copy of a string with the leftmost spaces removed.
Example:
See also:
“RTRIM” on page 162
Range of values Description
0 .. 99 Error
-99 .. -1 Warning
100 .. 199 Trace
Table 96: LOGEVENT - ranges of values
logevent "Save this in log", 120
REM Would append 978353046;"01/01/2001 12:44:06";"Save this in log" to the
log file.
LOGIO "mytag"
b$ = LTRIM a$