Validity: Rule, Task
This keyword provides access to a volatile system string register.
Syntax |
STRING sr (I32 n) |
---|---|
n |
Index of the volatile register sr. Minimum representable number: 1 Maximum representable number: RTE.CFG keyword: num_sr Size: 128 Byte |
Notes |
The contents are lost at power off. At next switch on it is placed = "" (empty string) |
NOTE: From RTE 34.08.0 the contents of the 4*20 display that equips DISPAN/Vispan devices is associated with SR(0).
Registers are written to and read from all TASKs and RULEs.
Example
; in sr(1) the string "hello " is stored sr(1) = "hello " ; in sr(2) the string "meow " is stored sr(2) = "meow " ; in sr(3) the string "woof " is stored sr(3) = "woof " ; in sr(4) is stored the concatenation of the strings ; contained in sr(1), sr(2) and sr(3), and thus ; the string "hello meow woof " sr(4) = sr(1) # sr(2) # sr(3) |