EasyManuals Logo

Embedded Systems LogiMachine5 Power User Manual

Embedded Systems LogiMachine5 Power
254 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #74 background imageLoading...
Page #74 background image
74
o hour number (0-23)
o minute number (0-59)
o second number (0-59)
3 byte date - dt.date table with the following items:
o day number (1-31)
o month number (1-12)
o year number (1990-2089)
4 byte unsigned integer - dt.uint32 number
4 byte signed integer - dt.int32 number
4 byte floating point - dt.float32 number
4 byte access control - dt.access number, currently not fully supported
14 byte ASCII string - dt.string string, null characters ('\0') are discarded during
decoding
6.1.14. Data storage function
storage object provides persistent key-value data storage for user scripts. Only the following
Lua data types are supported:
boolean
number
string
table
storage.set(key, value)
Sets new value for the given key. Old value is overwritten. Returns boolean as the result and an
optional error string.
storage.get(key, default)
Gets value for the given key or returns default value (nil if not specified) if key is not found in
the data storage.
Note: all user scripts share the same data storage. Make sure that same keys are not used to
store different types of data.
Examples
The following examples shows the basic syntax of storage.set. Result will return
boolean true since the passed parameters are correct
result=storage.set('my_stored_value_1', 12.21)
This example will return false as the result because we are trying to store a function
which is not possible.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Embedded Systems LogiMachine5 Power and is the answer not in the manual?

Embedded Systems LogiMachine5 Power Specifications

General IconGeneral
BrandEmbedded Systems
ModelLogiMachine5 Power
CategoryController
LanguageEnglish