ph_setanalogoutraw PowerHome formula function
Description
Sets the value of an Analog I/O device using
a RAW value vs using a CALC value like the ph_setanalogout(
) function
Syntax
ph_setanalogoutraw ( as_id, al_value )
Argument | Description |
as_id | String. The ID of the Analog I/O device you
wish to set the value for |
al_value | Long. The RAW value you would like assigned to
the Analog I/O device |
Return value
Integer. Returns 0 if the command to
set the Analog I/O device is successfully queued with the associated controller.
Returns -100 if the ID in the as_id parameter is not valid. Returns -1
if the associated controller is not found or active. Returns -51 if
the command is not supported
by the controller.
Usage
Use this function to queue a request
to change an Analog I/O device with its associated controller using a RAW value
vs using a CALC value. Most of the time you will want to use the
ph_setanalogout( ) to set Analog I/O devices using a CALC value. If for some
reason a CALC value is not desired or available, then you can use this function
to set a
RAW value instead
Examples
The following examples demonstrate typical syntax/usage for this function.
• ph_setanalogoutraw("FLOOR1TSTATCOOLSP",76) - Returns
0 if the command was successfully queued with the
controller