Download Print this page

Omron NS Reference Manual page 34

Hide thumbs Also See for NS:

Advertisement

Section2 Functions
NS series Macro Reference
MEMSET
Writes a value to multiple word addresses in the PT memory
Applicable versions
Format
Function
Return Value
Example
System Version 6.2 or higher
MEMSET(D, c, n)
Writes data c for n-word from a word address D in the PT memory ($W/$HW).
D: Starting address
c: Set value
-32767 to 32768 (decimal format)
H0000 to HFFFF (hexadecimal format)
n: Number of elements to write
1 to 32768 ($W)
1 to 8192 ($HW)
None
Writing 5 for 10 words from $W100 ($W100 to $W109)
-
MEMSET($W100, 5, 10);
Writes 5 for 10 words from $W100 ($W100 to $W109)
-
$HW100=5;
$W200=10;
MEMSET($W100, $HW100, $W200);
14

Advertisement

loading

This manual is also suitable for:

Ns-series