ph_setothervar PowerHome formula function (Deprecated)
Description
Sets the value of an internal variable on the specified controller.
Syntax
ph_setothervar ( controller, var, value )
Argument |
Description |
controller
|
The ID of the controller.
|
var
|
The number of the internal variable whose value you wish to set.
|
value
|
The value you wish to set the internal variable to.
|
Return value
Integer. Returns 0 if successful. - 1 is returned if the controller is not available, - 2 is returned if the controller does not support internal variables, - 3 is returned if the variable is out of range, - 4 is returned if the value is out of range.
Usage
Currently only supported by the CPU-XA/Ocelot controller. To use this function with the CPU-XA/Ocelot, specify the ID of the controller whose type is CPU-XA/Ocelot. The "var" must be a number from 0 to 127 corresponding to the internal variable of the CPU-XA/Ocelot you wish to set. The "value" must be in the range of 0 to 65535 for the CPU-XA/Ocelot.