EasyManuals Logo
Home>Allen-Bradley>Control Unit>MicroLogix 1200

Allen-Bradley MicroLogix 1200 Reference Manual

Allen-Bradley MicroLogix 1200
424 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #160 background imageLoading...
Page #160 background image
Publication 1762-RM001C-EN-P
10-10 Math Instructions
SWP - Swap
Instruction Type: output
Use the SWP instruction to swap the low and high bytes of a specified
number of words in a bit, integer, or string file. The SWP instruction has 2
operands:
Source is the word address containing the words to be swapped.
Length is the number of words to be swapped, regardless of the file
type. The address is limited to integer constants. For bit and integer
filetypes, the length range is 1 to 128. For the string filetype, the
length range is 1 to 41. Note that this instruction is restricted to a
single string element and cannot cross a string element boundary.
SWP
Swap
Source #ST10:1.DATA[0]
Length 13
SWP
Table 10.13 Execution Time for the SWP Instruction
Controller When Rung Is:
True False
MicroLogix 1200 Series B and higher 13.7
µ
s + 2.2
µ
s/swapped word 0.0
µ
s
MicroLogix 1500 Series B and higher 11.7
µ
s + 1.8
µ
s/swapped word 0.0
µ
s

Table of Contents

Other manuals for Allen-Bradley MicroLogix 1200

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley MicroLogix 1200 and is the answer not in the manual?

Allen-Bradley MicroLogix 1200 Specifications

General IconGeneral
BrandAllen-Bradley
ModelMicroLogix 1200
CategoryControl Unit
LanguageEnglish

Related product manuals