7.LW3Programmer'sReference
HDMI-TPS-TX200series–User'sManual
103
Appliedfirmwarepackage:v1.3.2b3 | LDCsoftware:v2.5.7b2
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
Value
Valuedescription
<loc>
The location of the variable
1-30
<operand>
The value that is added to the variable
Integer
Negativevalueisalsoaccepted
<min>
The lowest allowed value (optional)
Integer
Negativevalueisalsoaccepted
<max>
Thehighestallowedvalue(optional)
Integer
Negativevalueisalsoaccepted
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
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
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
Parameterdescription
Value
<loc>
The location of the variable
1-30
<min>
The lowest value of the interval
Integer
<max>
Thehighestvalueoftheinterval
Integer
<val>
The new value that will be valid if the current value is in the interval
Integer
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
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