Programming options
5.3 Powerful and easy-to-use instruction set
Easy Book
Manual, 05/2009, A5E02486774-01
61
Move and Block Move instructions
You use the move instructions to copy data elements to a new memory address and convert
from one data type to another. The source data is not changed by the move process.
MOVE copies a data element stored at a specified address to a new
address.
MOVE_BLK (interruptible move) copies a block of data elements to a new
address
UMOVE_BLK (uninterruptible move) copies a block of data elements to a
new address
●
The MOVE instruction copies a single data element from the source address specified by
the IN parameter to the destination address specified by the OUT parameter.
●
The MOVE_BLK and UMOVE_BLK instructions have an additional COUNT parameter.
The COUNT specifies how many data elements are copied. The number of bytes per
element copied depends on the data type assigned to the IN and OUT parameter tag
names in the PLC tag table.
Counters
You use the counter instructions to count internal program events and external process
events. Each counter uses a structure stored in a data block to maintain counter data. You
assign the data block when the counter instruction is placed in the editor. These instructions
use software counters whose maximum counting rate is limited by the execution rate of the
OB they are placed in.
CTU counts up.
CTD counts down.
CTUD counts up and down.
Select the count value data type from the drop-down list under the counter name.