UMX-TPS-TX100 series – User's Manual 121
Value Change with Intervals (Case)
Command and Response
ç <loc>:case(<min> <max> <val>;)
æ <loc>:case
Parameters
Parameter Parameter description
<loc> The location of the variable
1-30
<min> The lowest value of the interval
Integer
<max> The highest value of the interval
Integer
<val> The new value that will be valid if the current value is in the interval
Integer
Examples
ç
æ
A typical example when two different ranges of values have to meet:
Incoming values: between 0 and 255 (e.g. the slider of a controller can have these values).
Outgoing values: between 0 and 100 (e.g. the controlled device accepts these values).
The command looks like:
ç
æ
Min Max New value
Case 1 1 25 10
Case 2 50 20
Case 3 51 75 30
Case 4 100 40
Case 5 101 125 50
150
Case 7 151 175 70
Case 8 200 80
Case 9 201 225 90
Case 10 255 100
Scan and Store
be scanned according to the pattern and the result will be the value of the variable (number or string type).
Command and Response
ç <loc>:scanf(<path>.<property>;<pattern>)
æ <loc>:scanf
Parameters
Parameter Parameter description
<loc> The location of the variable
1-30
<path>.<property>
<pattern> The pattern that scans the property for the desired result
see below
Pattern options
Pattern Pattern description
%s
%<number>s
%c One character
%<number>c The next <number> of characters
%[<characters>]
%[^<characters>]
%* Ignored part
<custom_text>
The patterns can be combined to get the desired result as shown in the examples.
ATTENTION! Do not forget to escape the % character as shown in below example.
Examples
ç
æ
ç
æ