Chapter 6: Instructions
159
Instruction
Mnemonic
WRITE Remote Intelligent I/O
Data
Range
Bit
■
Word
RMWR
Write data to the shared memory
of an intelligent I/O unit on a
remote I/O drop
Double words
Ladder
Read NR5 words from NR6, and write them to
remote I/O loop NN1, station NN2, slot NN3, module
memory address NR4.
Description
1. NN1: Remote I/O network number (number).
NN2: Station number on the remote network (number).
NN3: Slot number of the intelligent I/O module to write to (number).
NR4: Starting address of the shared memory to write (number/register).
NR5: Number of words to write (number/register).
NR6: Starting address of the data to write (number/register).
2. This instruction is used to write data to the shared memory of intelligent I/O modules installed
on remote I/O drops. Intelligent modules include the high-speed counter, analog module, SDU
module, and positioning module. Refer to the specific intelligent I/O module user's manual for
detailed instructions on using the RMWR instructions with the given module.
3. If the NR6 parameter is a constant value instead of a register address, then this constant value
will be written to all of the shared memory locations specified. This function is useful for
initializing the shared memory of an intelligent I/O module on a remote I/O drop.
4. The remote I/O network is a number from 1 to 3. The first remote I/O module in the base rack
is assigned network ID 1, the second is 2, and the third is remote I/O network 3.
5. Each intelligent I/O module on a remote I/O network may only be written to once in a given
scan. To prevent writing to a module more than once per scan, place the RMWR instruction at
the end of the program.
Example
Program Expression
Operation Results
The first remote master (F8.0) is installed and there are no
initialization errors (F8.8). The communication is
completed (F8.14). Once these conditions are true, the
program then writes eight words to shared memory
address 0 of the intelligent module located in slot 4 of
station 5 of remote I/O network 1. All eight addresses are
written with the value of $5555.
RMWR
Nt = NN1:NN2
To = NN3:NR4
Fr = NR5:NR6
R
NNx: number
NRx: number/register
RRx: register
RMWR
Nt = 1:5
To = 4:0
Fr = 8:$5555
F8.0 F8.8 F8.14
Содержание D320 PLC
Страница 1: ...D320 PLC User s Manual...
Страница 18: ...6 D320 PLC User s Manual...
Страница 28: ...16 D320 PLC User s Manual...
Страница 34: ...22 D320 PLC User s Manual...
Страница 78: ...66 D320 PLC User s Manual...
Страница 176: ...164 D320 PLC User s Manual...
Страница 210: ...198 D320 PLC User s Manual...
Страница 258: ...246 D320 PLC User s Manual...