![Embedded Systems LM5p-GSM Product Manual Download Page 110](http://html1.mh-extra.com/html/embedded-systems/lm5p-gsm/lm5p-gsm_product-manual_2399466110.webp)
110
bit.band (x1 [, x2...])
Binary and between any number of variables
bit.bor (x1 [, x2...])
Binary and between any number of variables
bit.bxor (x1 [, x2...])
Binary and between any number of variables
bit.lshift (value, shift)
Left binary shift
bit.rshift (value, shift)
Right binary shift
6.2.25.
Input and Output Facilities
The I/O library provides two different styles for file manipulation. The first one uses implicit file
descriptors; that is, there are operations to set a default input file and a default output file, and
all input/output operations are over these default files. The second style uses explicit file
descriptors.
When using implicit file descriptors, all operations are supplied by table
io
. When using explicit
file descriptors, the operation
io.open
returns a file descriptor and then all operations are
supplied as methods of the file descriptor.
The table
io
also provides three predefined file descriptors with their usual meanings from C:
io.stdin, io.stdout
, and
io.stderr
. The I/O library never closes these files.
Unless otherwise stated, all I/O functions return
nil
on failure (plus an error message as a
second result and a system-dependent error code as a third result) and some value different
from
nil
on success.
io.close ([file])
Equivalent to
file:close()
. Without a file, closes the default output file.
io.flush ()
Equivalent to file:flush over the default output file.
io.input ([file])
When called with a file name, it opens the named file (in text mode), and sets its handle as the
default input file. When called with a file handle, it simply sets this file handle as the default
input file. When called without parameters, it returns the current default input file. In case of
errors this function raises the error, instead of returning an error code.
io.lines ([filename])
Opens the given file name in read mode and returns an iterator function that, each time it is
called, returns a new line from the file. Therefore, the construction
for line in io.lines(filename) do body end
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 ...