Actions

Difference between revisions of "Wudd"

From Zenitel Wiki

(Syntax)
 
(11 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. In order to write to an UDD in another exchange via AlphaNet, the data command [[WRITE_USER_DEF_DATA|$WUDD]] must be used.
+
{{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''.  
+
 +
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)  
 
* 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)
 
* 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'''
  
 +
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 ===
 
=== 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]]
 
*Data message to write to UDD: [[WRITE_USER_DEF_DATA|$WUDD]]
 
*Macro to read UDD: [[%udd]]
 
*Macro to read UDD: [[%udd]]

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.