Command Formulas - Digi SkyCloud Z4500 Series User Manual

Table of Contents

Advertisement

Automation Control
[Fn Reg16 to Signed]
Example 2: Assume the invoking pin is the input of a MODBUS module configured as hex and the
source is a 32-bit Holding register. Use the register value as a signed integer.
[Current Input] [Ent]
[Fn Reg32 to Signed]
Fn Reg32 to Float
Performs the conversion of a 32 bit hex value to a float value. The value to be converted is taken from
the last value in the calculator's stack.
Example 1: Assume the invoking pin is an input of a MODBUS module configured as hex and the
source is a 32-bit Holding register. Use the register value as a float.
[Current Input] [Ent]
[Fn Reg32 to Float]
Fn Reg32 M10K to Signed
Performs the conversion of a 32 bit hex value in Modulo 10000 (M10K) format to a signed integer. The
value to be converted is taken from the last value in the calculator's stack.
Example:
[Current Input] [Ent]
[Fn Reg32 M10K to Signed]
Fn Reg32 M10K to Unsigned
Performs the conversion of a 32 bit hex value in Modulo 10000 (M10K) format to an unsigned integer.
The value to be converted is taken from the last value in the calculator's stack.
Example:
[Current Input] [Ent]
[Fn Reg32 M10K to Unsigned]
Fn Hex Bit State - Position
Takes a hex value and returns the bit value at the indicated position
In-line Parameters
Bit Position: Integer (1-32)
n
Fn Hex Non-Zero State
Takes a hex value and returns 1 if any bit is set.
Returns 0 if no value is set

Command formulas

Fn Save Value
Takes the value in the stack and saves at a specified interval. This function requires one parameter
that defines an interval time value in seconds at which the value will be saved. A value of zero will save
at every change.
Example:
[Fn Save Value] 15
Welcome to Digi SkyCloud
Use Automation Control formulas
108

Advertisement

Table of Contents
loading

Table of Contents