![Embedded Systems LM5p-GSM Product Manual Download Page 102](http://html1.mh-extra.com/html/embedded-systems/lm5p-gsm/lm5p-gsm_product-manual_2399466102.webp)
102
6.2.15.
Log function
log(var1, [var2, [var3, ...]])
Converts variables to human-readable form and stores them in the main database. All items are
accessible in the "Logs" module.
Example
1.
-- log function accepts Lua nil, boolean, number and table (up to 5 nested levels) type
variables
2.
a
={
key1
=
'value1'
, key2
=
2
}
3.
b
=
'test'
4.
c
=
123.45
5.
-- logs all passed variables
6.
log
(
a, b, c
)
6.2.16.
Scheduled scripting date/time format
Scheduled scripting uses standard
cron
format for date/time parameters. Valid values are:
*
— execute script every minute, hour or day.
*/N
— execute script every N minutes, hours or days. N is an integer, script is executed
when current value divided by N gives 0 in modulo. For example, script with hour
parameter set to
*/8
will be executed when hour is 0, 8 and 16.
N
— execute script exactly at N minute, hour or day.
N-K
— execute script when minute, hour or day is between N-K range (inclusive).
N,K
— it is possible to specify several
N
and
N-K
type parameters separated by comma.
For example, script with minute parameter set to 15,50-52 will get executed when minute
is 15, 50, 51 and 52
6.2.17.
Time function
os.sleep(delay)
Delay the next command execution for the
delay
seconds.
os.microtime ()
Returns two values: current timestamp in seconds and timestamp fraction in nanoseconds
os.udifftime (sec, usec)
Returns time difference as floating point value between now and timestamp components
passed to this function (seconds, nanoseconds)
Summary of Contents for LM5p-GSM
Page 10: ...10 1 Terminal connection schemes Model ...
Page 12: ...12 canX connection Powering over 24V terminals ...
Page 15: ...15 Digital output e g relay contactor ...
Page 16: ...16 Digital or Analog input e g pushbutton or 0 5V current measurement sensor ...
Page 17: ...17 Digital input e g pushbutton ...
Page 18: ...18 1 wire connection ...
Page 19: ...19 2 Standards supported ...
Page 22: ...22 3 Insert SIM card and close the holder Close the front cover ...
Page 36: ...36 ...
Page 48: ...48 ...
Page 120: ...120 Show logs window show logs in separate window Edit custom JavaScript ...
Page 156: ...156 Additional classes additional CSS classes for the element ...
Page 201: ...201 ...
Page 221: ...221 Clear binary object value at priority 12 bacnet write 127001 binary value 2305 nil 12 ...
Page 246: ...246 value event getvalue res value 100 255 grp write 1 1 6 res dt uint8 ...
Page 277: ...277 ...
Page 282: ...282 Press this button to upload new settings to all modified all devices ...