Addition And Subtraction (Cycle Method); Value Change With Intervals (Case) - Lightware HDMI-TPS-TX226 User Manual

Hdbasettm multimedia extender
Table of Contents

Advertisement

 
7.LW3Programmer'sReference
7.10.3. Addition and Subtraction (Cycle Method)
Thevalueofanumericvariablecanbeincreasedbyaddingapositivevalueoritcanbedecreasedbyadding
anegativevalue.Minimumandmaximumvaluescanbedefinedaslimits.Thismethodhasthefeaturethat
ifthevaluehitsthelimit(min/max),thevaluewillbesteppedtotheotherendoftheinterval.
Command and Response
ç CALL·/CTRL/VARS/V<loc>:cycle(<operand>;<min>;<max>)
æ mO·/CTRL/VARS/V<loc>:cycle
Parameters
Parameter
Parameterdescription
<loc>
The location of the variable
<operand>
The value that is added to the variable
<min>
The lowest allowed value (optional)
<max>
Thehighestallowedvalue(optional)
Ifthecalculatedvalueisbeyondthelimit(min/max),thevaluewillbesteppedtotheotherendoftheinterval.
Examples
Changemessages(CHG)canbeseenaftereachresponseforthebetterunderstanding,whichisnotthepart
of the command, but it can be set as described in the
Example 1 – addition
ç GET/CTRL/VARS/V1.Value
æ pw/CTRL/VARS/V1.Value=18
ç CALL/CTRL/VARS/V1:cycle(1;10;20)
æ mO/CTRL/VARS/V1:cycle
æ CHG/CTRL/VARS/V1.Value=19
ç CALL/CTRL/VARS/V1:cycle(1;10;20)
æ mO/CTRL/VARS/V1:cycle
æ CHG/CTRL/VARS/V1.Value=20
ç CALL/CTRL/VARS/V1:cycle(1;10;20)
æ mO/CTRL/VARS/V1:cycle
æ CHG/CTRL/VARS/V1.Value=10
ç CALL/CTRL/VARS/V1:cycle(1;10;20)
æ mO/CTRL/VARS/V1:cycle
æ CHG/CTRL/VARS/V1.Value=11
Value
Valuedescription
1-30
Negativevalueisalsoaccepted
Integer
Negativevalueisalsoaccepted
Integer
Negativevalueisalsoaccepted
Integer
Subscription
section.
Example 2 – subtraction
ç GET/CTRL/VARS/V1.Value
æ pw/CTRL/VARS/V1.Value=13
ç CALL/CTRL/VARS/V1:cycle(-2;10;20)
æ mO/CTRL/VARS/V1:cycle
æ CHG/CTRL/VARS/V1.Value=11
ç CALL/CTRL/VARS/V1:cycle(-2;10;20)
æ mO/CTRL/VARS/V1:cycle
æ CHG/CTRL/VARS/V1.Value=20
ç CALL/CTRL/VARS/V1:cycle(-2;10;20)
æ mO/CTRL/VARS/V1:cycle
æ CHG/CTRL/VARS/V1.Value=18
Appliedfirmwarepackage:v1.3.2b3 | LDCsoftware:v2.5.7b2
HDMI-TPS-TX200series–User'sManual
7.10.4. Value Change with Intervals (Case)
Thiscommandcanbeusedtochangethevalueofavariableifitfitsinanyofthedefinedintervals.
Command and Response
ç CALL·/CTRL/VARS/V<loc>:case(<min><max><val>;)
æ mO·/CTRL/VARS/V<loc>:case
Parameters
Parameter
<loc>
The location of the variable
<min>
The lowest value of the interval
<max>
Thehighestvalueoftheinterval
<val>
The new value that will be valid if the current value is in the interval
Theparametersaredividedbyaspacecharacter,andtheintervalgroupsaredividedbysemicolon.Upto16
casescanbedefined.
Examples
ç CALL/CTRL/VARS/V1:case(102015)
æ mO/CTRL/VARS/V1:case
Atypicalexamplewhentwodifferentrangesofvalueshavetomeet:
Incomingvalues:between0and255(e.g.thesliderofacontrollercanhavethesevalues).
Outgoingvalues:between0and100(e.g.thecontrolleddeviceacceptsthesevalues).
Definedcases:
Thecommandlookslike:
ç CALL/CTRL/VARS/V1:case(12510;265020;517530;7610040;10112550;12615060;15117570;
17620080;20122590;226255100)
æ mO/CTRL/VARS/V1:case
Parameterdescription
Min
Max
New value
Case1
1
25
10
Case 2
26
50
20
Case 3
51
75
30
Case4
76
100
40
Case5
101
125
50
Case6
126
150
60
Case7
151
175
70
Case8
176
200
80
Case 9
201
225
90
Case10
226
255
100
103
Value
1-30
Integer
Integer
Integer

Advertisement

Table of Contents
loading

Table of Contents