Actions

Difference between revisions of "Wudd"

From Zenitel Wiki

(New page: wudd( , ) : Event_Handler statement - Write User Defined Data. Format: '''wudd(index, number)''' Write ''number'' to User Defined Data at the location ''index''. Example: wudd 8 ...)
 
 
(32 intermediate revisions by 4 users not shown)
Line 1: Line 1:
wudd( , ) : [[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, number)'''
+
===Syntax===
 +
'''WUDD index value'''
 +
'''WUDD "label" "string"'''
 +
'''WUDD "label" value'''
  
Write ''number'' to User Defined Data at the location ''index''.  
+
 +
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
  
Example:
+
===Examples===
  wudd 8 4321 - ''Write value 4321 to variable 8''
+
  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'''
  
See DP message [[WRITE_USER_DEF_DATA]] for explanation of the concept. User Defined Data is read with EventHandler macro [[%udd]].
+
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"
  
<p>
+
=== See also ===
  
Back to [[Event_Handler#Statements]].
+
'''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]]
 +
 
 +
 
 +
Back to [[Event_Handler#Built-In Action Commands]].
 +
 
 +
[[Category:Event Handler]]
 +
[[Category:Built-In Action Commands]]

Latest revision as of 15: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.