72
1.2.28.
Extended function library
toboolean(value)
Converts
the
given
value
to
boolean
using
following
rules:
nil
,
boolean
false
,
0
,
empty
string,
'0'
string are treated as
false
, everything else as
true
string.split(str, sep)
Splits the given string into chunks by the given separator.Returns Lua table.
knxlib.decodeia(indaddressa, indaddressb)
Converts binary-encoded individual address to Lua string. This function accepts either one or
two arguments (interpreted as two single bytes).
knxlib.decodega(groupaddressa, groupaddressb)
Converts binary-encoded group adress to Lua string. This function accepts either one or two
arguments (interpreted as two single bytes).
knxlib.encodega(groupaddress, separate)
Converts Lua string to binary-encoded group adress. Returns group address a single Lua number
when second argument is
nil
or
false
and two separate bytes otherwise.
ipairs (t)
Returns three values: an iterator function, the table t, and 0, so that the construction
for
i,v
in
ipairs
(
t
)
do
body
end
will iterate over the pairs (1,t[1]), (2,t[2]), ···, up to the first integer key absent from the table.
next (table [, index])
Allows a program to traverse all fields of a table. Its first argument is a table and its second
argument is an index in this table. next returns the next index of the table and its associated
value. When called with
nil
as its second argument, next returns an initial index and its
associated value. When called with the last index, or with
nil
in an empty table, next returns
nil
.
If the second argument is absent, then it is interpreted as
nil
. In particular, you can use
next(t
) to
check whether a table is empty. The order in which the indices are enumerated is not specified,
even for numeric indices. (To traverse a table in numeric order, use a numerical for or the
ipairs
function.) The behavior of next is undefined if, during the traversal, you assign any value to a
non-existent field in the table. You may however modify existing fields. In particular, you may
clear existing fields.
pairs (t)
Returns three values: the
next
function, the table
t
, and
nil
, so that the construction
for
k,v
in
pairs
(
t
)
do
body
end
will iterate over all key–value pairs of table t.
tonumber (e [, base])
Tries to convert its argument to a number. If the argument is already a number or a string
convertible to a number, then tonumber returns this number; otherwise, it returns
nil
.
Содержание LogicMachine3 Re:actor
Страница 10: ...10 Terminal connection schemes KNX TP...
Страница 12: ...12 24V power supply...
Страница 13: ...13 Analog inputs e g reed contact...
Страница 14: ...14 Analog inputs 0 10V...
Страница 15: ...15 Digital output...
Страница 16: ...16 Resistive sensor input...
Страница 17: ...17 Analog output...
Страница 26: ...26 Make sure that bus status is Online press button in ETS...
Страница 35: ...35 o Then minimize side bar by pressing on left arrow icon to make the map more visible...
Страница 83: ...83 66 if err then 67 alert FTP upload failed s err 68 end...
Страница 107: ...107...
Страница 108: ...108 1 14 Help Documentation for scripting syntaxes is displayed in Help tab...
Страница 122: ...122 4 16 Running processes System running processes can be seen in Status Running processes window...
Страница 126: ...126 Datapoints can be shown also in a way of table which can be later exported as CSV file...
Страница 141: ...141...