22.11.2.8 Initialize Memory (Variable
Specification)
Initializes all devices at once. The Set data
specified with Parameter 2 are set from the Set Word Address
specified with Parameter 1 into the addresses specified with
Parameter 3. The valid range for the number of addresses is from 1
to 640. The Write- to Address, Write Data, and number of addresses
can each be designated indirectly.
_memset_EX ([Write- to Address], Write Data,
Words)
-
Parameter 1: Device address + Temporary
address
-
Parameter 2: Numeric value, Internal Device,
Temporary address (The valid range for Parameter 2 is from
[decimal] 0 to 65535, or [hexadecimal] 0 to FFFF).
-
Parameter 3: Numeric value, Internal Device,
Temporary address (The valid range for Parameter 3 is from 1 to
640.)
Example expression:
[t:0000]=10
[w:[#INTERNAL]LS0050]=0
[w:[#INTERNAL]LS0051]=5
_memset_EX([w:[#INTERNAL]LS0100]#[t:0000], [w:[#INTERNAL]LS0050],
[w:[#INTERNAL]LS0051])
In the example above, "0" will be written into the five words
from LS0100 to LS0114.
|