Actions

Difference between revisions of "Wudd"

From Zenitel Wiki

 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
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.
+
{{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.
  
 
===Syntax===
 
===Syntax===
 
  '''WUDD index value'''
 
  '''WUDD index value'''
 +
'''WUDD "label" "string"'''
 +
'''WUDD "label" value'''
  
Write ''value'' to UDD 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
  
 +
===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"
  
===Example===
+
=== See also ===
wudd 8 4321 - ''Write value 4321 to variable 8''
 
  
See DP message [[WRITE_USER_DEF_DATA|$WUDD]] for explanation of the concept. User Defined Data is read with Event Handler macro [[%udd]].
+
'''Applications were UDD are used:'''
 +
* [[CCTV control by relays (RCO) when using Call Request]]
  
Related command:
+
'''Related articles:'''
'''Write to an UDD variable''':
+
*Data message to write to UDD: [[WRITE_USER_DEF_DATA|$WUDD]]
* Data command: [[WRITE USER DEF DATA|$WUDD]]
+
*Macro to read UDD: [[%udd]]
'''Read an UDD variable''':
+
*Variable for text string: [[tmp statement|tmp]]
* Macro: [[%udd]]
 
  
[[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.