Setup Pages
X-600M Users Manual
Name:
This is the name of the register. Names are short (20 character max) identifiers that are used in Lua
scripts to reference Registers. They may not contain spaces or special characters. Names must
begin with a lowercase letter.
Description:
This is a simple description of the register for documentation purposes. The description will appear
in emails and on the dashboard when this register is associated with a component.
Type:
Constant:
Fixed constant
Boolean:
1 or 0 (TRUE or FALSE)
Float:
IEEE 754 floating point number
Expression:
Lua expresson
Timer:
Countdown timer
If
Expression
is selected a text box opens. Type the text for a Lua expression into this box.
Alternatively, you can create the script with a text editor, then copy and paste it into the text box.
When you click
Add
, the script is checked for correct syntax. If an error occurs the first error will be
highlighted. You will not be able to add a script with faulty syntax. For further information see
Section: Control/Logic - Lua Scripts.
If
Timer
is selected, this will cause the register to act as a countdown timer. Values can be assigned
to timer registers, after which the register value will decrement by 1 every second until it reaches 0.
Whenever an expression (function) Register is read (accessed), the Lua script is executed and the
register is set to the results. This is useful for a scaling a raw sensor value into engineering units,
usually with a Y=mX+b equation. For example, if you wanted to convert a 1-Wire temperature
sensor (owSensor1) from Fahrenheit to Celsius, you would create a new register and enter the
Page 64
Xytronix Research & Design, Inc.
Содержание X-600M
Страница 1: ...X 600MTitle Page Goes Here...
Страница 6: ...X 600M Users Manual Page 4 Xytronix Research Design Inc...
Страница 99: ...X 600M Users Manual Setup Pages Xytronix Research Design Inc Page 97...
Страница 116: ...Appendix B Installing New Firmware X 600M Users Manual Page 114 Xytronix Research Design Inc...