Actions

Difference between revisions of "%udd"

From Zenitel Wiki

(See also)
Line 1: Line 1:
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.
+
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)          - ''Returns the content of UDD variable 8''
 
  %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(%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 ===

Revision as of 16:42, 5 July 2011

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.