Topic: DMD0008

MOVE - Move Value


The Move Value (MOVE) instruction is used to copy the contents of a single source value to a single destination location. While the Move Value instruction can copy individual fields of a structure, Move Value CANNOT be used to copy complete structures, MEMCOPY - Copy Memory Range must be used to copy a complete structure contents.

 

If the Source and Destination are different block types, any data conversion that is required will automatically be performed during the copy operation. For example, if the source is D0 (integer) and the Destination is R0 (floating point), each integer value will be converted to a floating point number as it is copied.

 

If the size of the Destination element are smaller than the Source element, the values will be truncated during the copy operation. For example, if the source is D0 and the Destination is V0, the low Word of D0 (32-bit) will be moved to V0 (16-bit).

 

For those familiar with DirectLOGIC PLCs, a Move Value operation is analogous to a set of LD and OUT instructions.

 

Parameters:

Note: Use the F9 key (Element Browser) or Down-Arrow key (Auto-Complete) at any time to see a complete list of the memory locations that are valid in the current field of the instruction.

 

Source - designates the value to be copied. This can be any constant value or any readable numeric location.

 

Destination - designates the location where the value will be copied to. This can be any writable numeric location.

 


See Also:

 


Rung Example: