Download Print this page

Omron NS Reference Manual page 33

Hide thumbs Also See for NS:

Advertisement

Section2 Functions
NS series Macro Reference
MEMCOPY
Applicable versions
Format
Function
Return Value
Example
Copies contents of $W in the PT memory
System version 4 or higher
MEMCOPY (S, D, n);
Copy data of $W or $HW in the PT memory.
S: Top address of source data.
D: Top address to which data will be copied.
n: The number of word data which will be taken from S.
Setting range is as follows:
When specifying "n" directly: 1 to 32767
When specifying "n" indirectly: $W0 to $W32767
Note: Index can be set when using address to specify for S. Setting range is for $W
is between 0 and 32767 and for $HW is between 0 to 8191.
None
MEMCOPY($W100, $W102, 2);
Take 2 words from $W 100 and copy to 102
<Before executing MEMCOPY>
$W100
1
2
$W101
5
6
9
0
$W102
3
4
$W103
$W104
$W105
$HW0 to $HW8191
3
4
n w ord
7
8
1
2
5
6
13
<After executing MEMCOPY>
$W100
1
2
$W101
5
6
$W102
1
2
$W103
5
6
$W104
$W105
3
4
7
8
3
4
7
8

Advertisement

loading

This manual is also suitable for:

Ns-series