Allen-Bradley MicroLogix 1200 Reference Manual page 182

Hide thumbs Also See for MicroLogix 1200:
Table of Contents

Advertisement

13-4
Move Instructions
Publication 1762-RM001C-EN-P
Table 13.6 Mask Example (Word Addressing Level)
Word
Value in
Hexadecimal
Value in Destination
FFFF
Before Move
Source Value
5555
Mask
F0F0
Value in Destination
5F5F
After Move
• Valid constants for the mask are -32768 to 32767 (word) and
-2,147,483,648 to 2,147,483,647 (long word). The mask is displayed as
a hexadecimal unsigned value from 0000 0000 to FFFF FFFF.
Addressing Modes and File Types can be used as shown in the following
table:
Table 13.7 MVM Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 4-2.
Data Files
Parameter
Source
• •
• • • • •
Mask
• •
• • • • •
Destination
• •
• • • • •
(1) The ST file is not valid for MicroLogix 1500 1764-LSP Series A processors.
(2) See Important note about indirect addressing.
You cannot use indirect addressing with: S, ST, MG, PD, RTC,
IMPORTANT
HSC, PTO, PWM, STI, EII, BHI, MMI, DAT, TPI, CS, IOS, and
DLS files.
Updates to Math Status Bits
After a MVM instruction is executed, the arithmetic status bits in the status
file are updated. The arithmetic status bits are in word 0 bits 0-3 in the
processor status file (S2).
Table 13.8 Math Status Bits
With this Bit:
S:0/0
Carry
S:0/1
Overflow
S:0/2
Zero Bit
S:0/3
Sign Bit
Value in Binary
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1
1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0
0 1 0 1 1 1 1 1 0 1 0 1 1 1 1 1
(1)
Function Files
The Controller:
always resets
always resets
sets if destination is zero, otherwise resets
sets if the MSB of the destination is set, otherwise resets
Address
Address
(2)
Level
Mode
• •
• •
• • •
• •
• •
• •

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Micrologix 1500

Table of Contents