EasyManuals Logo

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 #67 background imageLoading...
Page #67 background image
Publication 1762-RM001C-EN-P
Programming Instructions Overview 4-5
Indirect Addressing of a File
Address: N[N50:100]:10
Description: In this example, the source of the COP instruction is
indirected by N50:100. The data in N50:100 defines the data file
number to be used in the instruction. In this example, the copy
instruction source A is defined by N[N50:100]:10. When the instruction
is scanned, the data in N50:100 is used to define the data file to be
used for the COP instruction. If the value of location N50:100 = 27,
this instruction copies 15 elements of data from N27:10 (N27:10 to
N27:24) to N7:0 (N7:0 to N7:14)
NOTE
If a number larger than 255 is placed in N50:100 in
this example, a controller fault occurs. This is because
the controller has a maximum of 255 data files. In
addition, the file defined by the indirection should
match the file type defined by the instruction, in this
example an integer file.
NOTE
This example also illustrates how to perform a limit
check on the indirect address. The limit instruction at
the beginning of the rung is monitoring the indirect
element. If the data at N50:100 is less than 10 or
greater than 25, the copy instruction is not processed.
This procedure can be used to make sure an indirect
address does not access data an unintended location.
0001
LIM
Limit Test
Low Lim 10
10<
Test N50:100
10<
High Lim 25
25<
LIM B3:0
0
COP
Copy File
Source #N[N50:100]:10
Dest #N7:0
Length 15
COP

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
SeriesMicroLogix 1200
TypeProgrammable Logic Controller (PLC)
MountingDIN rail or panel mount
Programming LanguageLadder Logic
Programming SoftwareRSLogix 500
I/O PointsUp to 40
Communication PortsRS-232, RS-485
Memory6 KB user memory
Power Supply24V DC or 120/240V AC
ExpansionSupports expansion I/O modules
Operating Temperature0°C to 55°C (32°F to 131°F)
Dimensions90 mm x 110 mm
Weight0.5 kg (1.1 lbs)

Related product manuals