^26 - The Target Channel Level Port

This port is a read only value of the target level of the specified output. This is useful because an output that is fading to off will report an on value if it it has not completed the fade.
It reports a single specified output level target.
The value is in hex with 0xFE as full.

Syntax

LDA ^26,x
Where x is the output number(base zero) you want the target level of.
LDA ^26,0 will give the target of output 1.
LDA ^26,1 will give the target of output 2.

This port will report the target level not the current level so it may be misleading if a long fade hasn’t completed. Use port ^25,x the Current Output Level port if worried about this.

Example

Master toggle button that checks the target level of outputs on the controller.

Task1()
{
LDA ^26,2	    //Load the target level of output 3
BNE TOGGLE_OFF	//If on turn all lights off, if off keep checking
LDA ^26,3	    //Load the target level of output 4
BNE TOGGLE_OFF
LDA ^26,4		//Load the target level of output 5
BNE TOGGLE_OFF
LDA ^26,5		//Load the target level of output 6
BNE TOGGLE_OFF
LDA ^26,6		//Load the target level of output 7
BNE TOGGLE_OFF
LDA ^26,7		//Load the target level of output 8
BNE TOGGLE_OFF
LDA ^26,8		//Load the target level of output 9
BNE TOGGLE_OFF
LDA ^26,9		//Load the target level of output 10
BNE TOGGLE_OFF
LDA ^26,10		//Load the target level of output 11
BNE TOGGLE_OFF
Preset(A=BedroomArea,P=1,F=0)	//Turn on bedroom
Null
    TOGGLE_OFF:
        Preset(A=BLA,P=4,F=0)	//Turn off everything
        Null
}