Actions

Difference between revisions of "Wudd"

From Zenitel Wiki

 
(25 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Event_Handler]] statement - Write User Defined Data.
+
{{AI}}
 +
The '''WUDD''' command is used in the [[Event Handler]] to write a value to [[UDD]] (User Defined Data variable). The value is changed immediately, before the next statement is executed. The WUDD command can only be used to change values in local exchange. In order to write to an UDD in another exchange via AlphaNet, the data command [[WRITE_USER_DEF_DATA|$WUDD]] must be used. <br>
 +
From AMC 11.02 alphanumeric storing from event handler is possible (not via $WUDD). Alphanumeric storing is cleared after reset.
  
Format: '''wudd index value'''
+
===Syntax===
 +
'''WUDD index value'''
 +
'''WUDD "label" "string"'''
 +
'''WUDD "label" value'''
  
Write ''value'' to User Defined Data at the location ''index''. Index = 0 - 6000
+
 +
Write ''value'' to UDD at the location ''index'', or write ''value'' or ''string'' to a labeled variable.  
 +
* index:  0 – 6000 ( 0 - 600 before AMC 9.01)
 +
* label:  1 - 16 characters label (alpha numeric), must start with alphabetic characters (a-z, A-Z). No space allowed. 30 labels available, cleared on reset.
 +
* value:  32 bit value (16 bit value before AMC 9.03)
 +
* string: 1-128 characters string
  
Command string action to Write a value to User Defined Data. The value is changed immediately, before the next statement is executed. Can only be used to change values in local exchange.
+
===Examples===
 +
WUDD 8 4321          - ''Write value 4321 to variable 8''
 +
WUDD %1.phy %2.dir    - ''Write the directory number of the 'Related To' station to the location identified by the physical number of the event 'Owner'''
  
Example:  
+
WUDD "LastAlarm" "Alarm from %1.nam"
  wudd 8 4321 - ''Write value 4321 to variable 8''
+
LOG "%UDD(LastAlarm)"
 +
WUDD "myPhyNumber" %1.phy
 +
LOG "My phy = %UDD(myPhyNumber)"
 +
 +
Received in 28-External Data Input:
 +
  WUDD "RadioRef" "%scutf(%edi, +,2)"
 +
WUDD "RadioAddr" "%scutf(%edi, +,3)"
 +
Used in event trigger:
 +
EDO "%UDD(RadioAddr) %UDD(RadioRef) 32144\x0D\x0A"
  
See DP message [[WRITE_USER_DEF_DATA]] for explanation of the concept. User Defined Data is read with EventHandler macro [[%udd]].
+
=== See also ===
 +
 
 +
'''Applications were UDD are used:'''
 +
* [[CCTV control by relays (RCO) when using Call Request]]
 +
 
 +
'''Related articles:'''
 +
*Data message to write to UDD: [[WRITE_USER_DEF_DATA|$WUDD]]
 +
*Macro to read UDD: [[%udd]]
 +
*Variable for text string: [[tmp statement|tmp]]
  
Related command: [[tmp statement|tmp]]
 
  
 
Back to [[Event_Handler#Built-In Action Commands]].
 
Back to [[Event_Handler#Built-In Action Commands]].

Latest revision as of 16:19, 4 October 2019

AI.png

The WUDD command is used in the Event Handler to write a value to UDD (User Defined Data variable). The value is changed immediately, before the next statement is executed. The WUDD command can only be used to change values in local exchange. In order to write to an UDD in another exchange via AlphaNet, the data command $WUDD must be used.
From AMC 11.02 alphanumeric storing from event handler is possible (not via $WUDD). Alphanumeric storing is cleared after reset.

Syntax

WUDD index value
WUDD "label" "string"
WUDD "label" value


Write value to UDD at the location index, or write value or string to a labeled variable.

  • index: 0 – 6000 ( 0 - 600 before AMC 9.01)
  • label: 1 - 16 characters label (alpha numeric), must start with alphabetic characters (a-z, A-Z). No space allowed. 30 labels available, cleared on reset.
  • value: 32 bit value (16 bit value before AMC 9.03)
  • string: 1-128 characters string

Examples

WUDD 8 4321           - Write value 4321 to variable 8
WUDD %1.phy %2.dir    - Write the directory number of the 'Related To' station to the location identified by the physical number of the event 'Owner'
WUDD "LastAlarm" "Alarm from %1.nam"
LOG "%UDD(LastAlarm)"
WUDD "myPhyNumber" %1.phy
LOG "My phy = %UDD(myPhyNumber)"

Received in 28-External Data Input:

WUDD "RadioRef" "%scutf(%edi, +,2)"
WUDD "RadioAddr" "%scutf(%edi, +,3)"

Used in event trigger:

EDO "%UDD(RadioAddr) %UDD(RadioRef) 32144\x0D\x0A"

See also

Applications were UDD are used:

Related articles:

  • Data message to write to UDD: $WUDD
  • Macro to read UDD: %udd
  • Variable for text string: tmp


Back to Event_Handler#Built-In Action Commands.