MVM (Masked Move) Ladder Logic Instruction

The Masked Move instruction is a ladder logic rung output instruction that copies the Source value through a mask and places the masked copy in the Destination tag. The Source remains unchanged. The instruction is enabled when the preceding logic is true and disabled otherwise. The values can be constants, tags or any combination.

Constant or immediate values always default to decimal display. To display the value in a different radix precede the value with one of the following prefixes.

Prefix              Description                 Example

  •             16#                  hexadecimal           16#FFF0
  •             8#                    Octal                           8#16
  •             2#                    Binary                        2#01010101

List of possible arguments

The SOURCE VALUEMASK VALUE, and DESTINATION VALUE can be any combination of the following data types.

  • CONSTANT             Can’t be the DESTINATION obviously
  • SINT              
  • INT
  • DINT

Note: Arithmetic status flags are affected (S:V, S:Z, S:N, S:C). Overflow, Zero, Negative, and Carry.

Leave a Comment