User manual
Chapter 4
Ladder-Program Interfaces
4-4
Example 2: CTV #
N7:0
FF01
D08O
5
Example 2 reads the lower byte of elements 0 through 4 of file 7 and writes
them to addresses FF01 through FF09 (odd bytes only).
Data in PLC Processor Result of Transfer to VMEbus
Address Data (hex) Address Data Address
N7:0 0044 FF00 00 44 FF01
N7:1 0055 FF02 00 55 FF03
N7:2 0066 FF04 00 66 FF05
N7:3 2077 FF06 00 77 FF07
N7:4 3088 FF08 00 88 FF09
Copy from VME
This message tells the PLC-5/VME processor to read the specified amount
of data from VMEbus memory using VMEbus read operations and write it
into the specified file. As with the continuous-copy operations, if the
address falls within the enabled VMEbus slave memory of the
PLC-5/VME processor, the data is read from this dual-port memory
directly without doing actual VMEbus operations.
Example 1:
CFV
D004
D08
#
N8
:
0
4
The example above performs eight D08 read operations beginning at VME
address D004 and then writes the data as four elements (0-3) in file N8.
Example 2:
CFV
FF01
D08B
#
N7
:
0
3
Example 2 reads three consecutive bytes starting at FF01 in the VME A16
address space and writes the data into three elements in file N7:0.
Data on VMEbus Result of Transfer to PLC Processor
Address Data (hex) Address Data Address
N7:0 0022 FF00 11 22 FF01
N7:1 0033 FF02 33 44 FF03
N7:2 0044 FF04 55 66 FF05