Number in XML structure
Contents

1.Description

This module holds up to 4 numeric values (INT or FLOAT) in an XML structure. The values output in the XML structure are FLOAT values.

The names of the four XML tags can be set via the inputs E1, E3, E5 and E7. Sending a value to one of these inputs does not result in the output of XML structure.
Values can be assigned to these tags via the inputs E2, E4, E6 and E8. Sending a value to one of the inputs results in the output of an XML structure for precisely this value at Output A1, if a name has been assigned to the associated tag.
When sending a value >0 to Input E9, an XML structure is output at Output A1 along with all tags to which names have been assigned.
Important
No check is carried out to determine whether the specified tag names meet the XML guidelines!
Note
During an exchange via TCP/IP, it is advisable to link the "Queue" module " (18018_Queue.hsl) to this output.

2.Inputs

No.NameInitialisationDescription
1E1 Tag 1""
Name of XML Tag 1
2E2 Value 10
Numeric value 1
3E3 Tag 2""
Name of XML Tag 2
4E4 Value 20
Numeric value 2
5E5 Tag 3""
Name of XML Tag 3
6E6 Value 30
Numeric value 3
7E7 Tag 4""
Name of XML Tag 4
8E8 Value 40
Numeric value 4
9E9 Send all0
If this input receives a value not equal to zero, then an XML structure with all values is created.

3.Outputs

No.NameInitialisationSBCDescription
1A1 SEND""s
XML structure as text. No special characters, e.g. CR and LF, are contained in this structure.
s = send, sbc = send by change

4.Value table as an example

The value assignments listed in the table at the inputs are carried out one after the other in exactly the sequence specified.
Valueat InputOutput at A1Comment
T1E1Tag name defined
t2E3Tag name defined
TAG 4E7Tag name defined (invalid, according to the XML guidelines)
5E2<T1>5.0</T1>A tag name has already been defined for this value (E1)
4.25E4<t2>4.25</t2>A tag name has already been defined for this value (E3)
-2789E6No tag name has been defined to this value (E5), therefore no output!
-0,002E8<TAG 4>-0.002</TAG 4>A tag name has already been defined for this value (E7)
TdreiE5Tag name defined
1E9<T1>5.0</T1><t2>4.25</t2><Tdrei>-2789</Tdrei><TAG 4>-0.002</TAG 4>Since a tag name has since been defined at E5, <Tdrei> is also output.

5.Other

Recalculation during start:No
Module is retentive:No
Internal designation:18027
Category:Data exchange

6.Similar functions

Integer from XML structure