Actions

Difference between revisions of "%udd"

From Zenitel Wiki

(See also)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The '''%udd''' macro is used in the [[Event Handler]] to read the value of an [[UDD]] (User Defined Data variable). Text formatting parameters can be added at the end.
+
{{AI}}
 
+
The '''%udd''' macro is used in the [[Event Handler]] to read the value of an [[UDD]] (User Defined Data variable). [[Event_Handler#Formating|Text formatting parameters]] can be added at the end. <br>
 +
From AMC 11.02 also alphanumeric labeling can be used. Alphanumeric labeling will be cleared after reset.
 
===Syntax===
 
===Syntax===
 
  '''%udd(index)'''
 
  '''%udd(index)'''
 +
'''%udd(label)'''
  
 
Returns the content of UDD at the location ''index''.  
 
Returns the content of UDD at the location ''index''.  
 
* index:  0 – 6000 ( 0 - 600 before AMC 9.01)  
 
* index:  0 – 6000 ( 0 - 600 before AMC 9.01)  
 +
* label:  1 - 16 characters alphanumeric label, no space, must start with a - z, A - Z. 30 labels available.
  
 
===Examples===
 
===Examples===
  %udd(8)          - ''Read the content of UDD variable 8''
+
  %udd(8)          - ''Returns the content of UDD variable 8''
  %udd(%1.phy)      - ''Read the content of UDD variable in location...''
+
  %udd(%1.phy)      - ''Returns the content of UDD variable in indexed by the physical number of the event 'Owner'''
 +
%udd(myLabel)    - ''Return string/value of UDD label myLabel. (wudd "myLabel" "Hello World")
  
 
=== See also ===
 
=== See also ===
  
'''Applications were UDD is used:'''
+
'''Applications were UDD are used:'''
 
* [[CCTV control by relays (RCO) when using Call Request]]
 
* [[CCTV control by relays (RCO) when using Call Request]]
  
Line 25: Line 29:
  
 
[[Category:Event Handler]]
 
[[Category:Event Handler]]
 +
[[Category:Event Handler macros]]

Latest revision as of 09:50, 4 October 2019

AI.png

The %udd macro is used in the Event Handler to read the value of an UDD (User Defined Data variable). Text formatting parameters can be added at the end.
From AMC 11.02 also alphanumeric labeling can be used. Alphanumeric labeling will be cleared after reset.

Syntax

%udd(index)
%udd(label)

Returns the content of UDD at the location index.

  • index: 0 – 6000 ( 0 - 600 before AMC 9.01)
  • label: 1 - 16 characters alphanumeric label, no space, must start with a - z, A - Z. 30 labels available.

Examples

%udd(8)           - Returns the content of UDD variable 8
%udd(%1.phy)      - Returns the content of UDD variable in indexed by the physical number of the event 'Owner'
%udd(myLabel)     - Return string/value of UDD label myLabel. (wudd "myLabel" "Hello World")

See also

Applications were UDD are used:

Related articles:

  • Built-in command to write to UDD: WUDD
  • Data message to write to UDD: $WUDD
  • Variable for text string: tmp


Back to Event_Handler#List_of_macros.