ph_upbraw PowerHome formula function
Description
Send raw UPB commands to a single UPB device.
Syntax
ph_upbraw ( ctlr, nid, uid, chan, cmd, arg1, arg2 )
Argument Description
ctlr String. The ID of the UPB controller to use.
nid Integer. The Network ID to send to.
uid Integer. The Unit ID to send to.
chan Integer. The channel to send to.
cmd Integer. The command to send.
arg1 Integer. Argument 1 for the command.
arg2 Integer. Argument 2 for the command.
Return value
Integer. Returns a 0 if successful, -1 is returned if the controller is not available, -2 is returned if the controller does not support UPB.
Usage
Use this funciton to send raw UPB commands to single UPB device. Valid commands are 34 for Goto (arg1 is level, arg2 is ramp), 35 for Fade Start (arg1 is level, arg2 is ramp), 36 for Fade Stop (arg1 and arg2 ignored), 37 for Blink (arg2 is blink rate), 38 for Indicate (arg1 is level, arg2 is ramp).   You can also use the enumerated values ugoto, ufadestart, ufadestop, ublink, and uindicate.