ph_getothervar PowerHome formula function (Deprecated)
Description
Retrieves an internal variable value from a controller.
Syntax
ph_getothervar ( controller, var )
Argument Description
controller The ID of the controller.
var The number of the internal variable whose value you wish to retrieve.
Return value
Long. Returns the value of the internal variable you requested. –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.
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 retrieve. Values will be in the range of 0 to 65535 for the CPU-XA/Ocelot.