![Allen-Bradley 1763-L16AWA Скачать руководство пользователя страница 218](http://html.mh-extra.com/html/allen-bradley/1763-l16awa/1763-l16awa_instruction-set-reference-manual_2900141218.webp)
Publication 1763-RM001C-EN-P - October 2009
218
Move Instructions
•
Valid constants are -32,768 to 32,767 (word) and -2,147,483,648 to
2,147,483,647 (long word).
Addressing Modes and File Types can be used as shown in the following
table:
Updates to Math Status Bits
After a MOV instruction is executed, the arithmetic status bits in the status
file are updated. The arithmetic status bits are in word 0, bits 0 to 3 in the
processor status file (S2).
MOV Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 82.
Parameter
Data Files
Function Files
(1)
CS - Comms
IO
S -
I/O
DL
S
- Dat
a
L
o
g
Address
Mode
(2)
Address Level
O
I
S
B
T,
C
, R
N
F
ST
L
MG,
PD
RI/R
IX
PLS
RTC
HS
C
PTO, PWM
STI
EII
BH
I
MMI
LCD
Imme
diate
Di
re
c
t
Indir
e
c
t
Bi
t
Wo
rd
Long
W
o
rd
Eleme
n
t
Source
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Destination
•
•
•
•
•
•
•
•
•
•
•
(3)
•
•
•
•
(1) PTO and PWM files are valid for MicroLogix 1100 BBB unit.
(2) See Important note about indirect addressing.
(3) Some elements can be written to. Consult the function file for details.
IMPORTANT
You cannot use indirect addressing with: S, ST, MG, PD,
RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, and
DLS files.
Math Status Bits
With this Bit:
The Controller:
S:0/0
Carry
always resets
S:0/1
Overflow
sets when an overflow, infinity, or NAN (not a number)
condition is detected, otherwise resets
S:0/2
Zero Bit
sets if result is zero, otherwise resets
S:0/3
Sign Bit
sets if result is negative (MSB is set), otherwise resets
S:5/0
Math Overflow Trap
Bit
(1)
(1) Control bit.
sets Math Overflow Trap minor error if the Overflow bit is set,
otherwise it remains in last state
TIP
If you want to move one word of data without affecting
the math flags, use a copy (COP) instruction with a
length of 1 word instead of the MOV instruction.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive