Actions

Difference between revisions of "%udd"

From Zenitel Wiki

 
(11 intermediate revisions by 4 users not shown)
Line 1: Line 1:
%udd( , ) : [[Event_Handler]] macro - read [[UDD|User Defined Data]]
+
{{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===
 +
'''%udd(index)'''
 +
'''%udd(label)'''
  
Format: '''%udd(index)'''
+
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.
  
Returns the User Defined Data out of the location ''index''.  
+
===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")
  
User Defined Data is written either asynchronously with DP message [[WRITE_USER_DEF_DATA]] ($WUDD), or synchronously with EventHandler statement [[wudd]]
+
=== See also ===
  
<p>
+
'''Applications were UDD are used:'''
 +
* [[CCTV control by relays (RCO) when using Call Request]]
 +
 
 +
'''Related articles:'''
 +
* Built-in command to write to UDD: [[WUDD]]
 +
*Data message to write to UDD: [[WRITE_USER_DEF_DATA|$WUDD]]
 +
*Variable for text string: [[tmp statement|tmp]]
  
  
Line 13: 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.