![Rockwell Automation Samsung NX-SCU User Manual Download Page 29](http://html.mh-extra.com/html/rockwell-automation/samsung-nx-scu/samsung-nx-scu_user-manual_1475457029.webp)
29
Shared Memory instruction - WRITE in WinFPST
[Programming Example]
Shared Memory instruction - WRITE in WinGPC
[Programming Example]
Shared Memory Allocation Table
SCU has built-in shared memory that is READ/WRITE accessible from
PLC CPU unit.
Inside the shared memory, the sending and receiving areas are
allocated. Therefore, PLC CPU unit and RS232C external devices
performs data READ/WRITE through SCU shared memory.
S1: Installation slot number of SCU
unit
S2: Starting address of the CPU where
the input data is stored.
n: The number of words of source
data to write to the destination.
D: Starting address of SCU shared
memory where the data will be
stored.
[
F151 WRT
, S1, S2, n, D
]
K0: SCU slot (slot 0)
DT100: Starting address of the PLC
CPU where the input data is
stored. (DT100)
K10: The number of words of source
data to write to the destination.
(2 words)
K1: Starting address of SCU shared
memory where the data will be
stored. (Address 1)
When R0 is on, 10 words from NX700 PLC data register DT100 (DT100 to DT109) will
be sent to the SCU shared memory address 1 (CH1 sending buffer).
[
F151 WRT
, K0, DT100, K10, K1 ]
RO
WRITE
To = NN1 : NR2
Sz = NR3
Fr = NN5
NN1 : Slot no. of SCU mounted.
(Number, and first I/0 slot start
from 0)
NR2 :First address to write on the shared
memory of SCU. (number/ register)
NR3 : Number of words to be written
NR5 : First address of data to writes
(number/ register)
When M0.1 becomes ON, 2 words from data register W0 of NX70/NX700 PLC is
transmitted into shared memory address 1 (CH1 transmission buffer) of SCU
installed in slot no. 0.
WRITE
To = 0 : 1
Sz = 2
Fr = W0
M0.1
NN1(0) : Slot no. of SCU mounted.
( Slot no. 0)
NR2(1) : First address to write on the
shared memory of SCU. (address 1)
NR3(2) : Number of words to be written
(2 words)
NN5(W0) : Start word operand of write
data (W0)