Allen-Bradley MicroLogix 1200 Reference guide

Category
Processors
Type
Reference guide

This manual is also suitable for

MicroLogix™ 1200
and MicroLogix 1500
Programmable
Controllers
(Bulletins 1762 and 1764)
Instruction Set
Reference Manual
Important User
Information
Because of the variety of uses for the products described in this
publication, those responsible for the application and use of this control
equipment must satisfy themselves that all necessary steps have been
taken to assure that each application and use meets all performance and
safety requirements, including any applicable laws, regulations, codes
and standards.
The illustrations, charts, sample programs and layout examples shown in
this guide are intended solely for purposes of example. Since there are
many variables and requirements associated with any particular
installation, Rockwell International Corporation does not assume
responsibility or liability (to include intellectual property liability) for
actual use based upon the examples shown in this publication.
Rockwell Automation publication SGI-1.1, Safety Guidelines for the
Application, Installation and Maintenance of Solid-State Control
(available from your local Rockwell Automation office), describes some
important differences between solid-state equipment and
electromechanical devices that should be taken into consideration when
applying products such as those described in this publication.
Reproduction of the contents of this copyrighted publication, in whole or
part, without written permission of Rockwell Automation, is prohibited.
Throughout this manual we use notes to make you aware of safety
considerations:
Attention statements help you to:
identify a hazard
avoid a hazard
recognize the consequences
PLC-5 is a registered trademark; and MicroLogix, SLC 500, RSLogix, and RSLinx are trademarks of Rockwell Automation.
Modbus is a trademark of Schneider Electric Incorporated.
DeviceNet is a trademark of Open DeviceNet Vendor Association (ODVA).
ATTENTION
!
Identifies information about practices or circumstances
that can lead to personal injury or death, property
damage or economic loss
IMPORTANT
Identifies information that is critical for successful
application and understanding of the product.
3 Publication 1762-RM001C-EN-P - November 2000
Summary of Changes
The information below summarizes the changes to this manual since
the last printing as publication 1762-RM001B-US-P, April 2000.
To help you locate new and updated information in this release of the
manual, we have included change bars as shown to the right of this
paragraph.
Firmware Revision History
Features are added to the controllers through firmware upgrades. Use
the listing below to be sure that your controller’s firmware is at the
level you need. Firmware upgrades are not required, except to allow
you access to the new features.
MicroLogix 1200
Catalog
Number
Series
Letter
Revision
Letter
Firmware
Release No.
Release Date Enhancement
1762-L24AWA
1762-L24BWA
1762-L40AWA
1762-L40BWA
A A FRN1 March 2000 Initial product release.
1762-L24AWA
1762-L24BWA
1762-L40AWA
1762-L40BWA
A B FRN2 May 2000 The trim pots (trimming potentiometers) on the controller
operated in reverse of the ladder logic. Corrected.
1762-L24AWA
1762-L24BWA
1762-L40AWA
1762-L40BWA
B A FRN3 November 2000 MicroLogix 1200 controllers now offer:
Full ASCII (read/write)
PTO Controlled Stop
PWM Ramping
RTC and String Messaging
Static Data File Protection
Comms Reset Pushbutton Bit
1762-L24BXB
1762-L40BXB
B A FRN3 November 2000 Initial product release. Supports all the features listed above
for the 1762-L24xWA and 1762-L40xWA controllers.
Publication 1762-RM001C-EN-P - November 2000
Summary of Changes 4
MicroLogix 1500
Catalog
Number
Series
Letter
Revision
Letter
Firmware
Release No.
Release Date Enhancement
1764-LSP A B FRN2 February 1999 Initial product release.
1764-LSP A C FRN3 October 1999 MicroLogix 1500 Controllers with 1764-LSP Processor can now
be used with Compact I/O (Bulletin 1769) Expansion Cables and
Power Supplies.
1764-LSP B A FRN4 April 2000 MicroLogix 1500 Controllers with 1764-LSP Processor can now
use:
String Data File Type
ASCII Instruction Set Support
Modbus RTU Slave protocol
Ramping, when using PWM outputs
Static Data File Protection
RTC Messaging
1764-LRP B A FRN4 April 2000 Initial product release. MicroLogix 1500 Controllers with
1764-LRP Processor has all the features of the 1764-LSP, plus:
Second communications port (isolated RS-232)
Data Logging capability
1764-LSP B B FRN5 October 2000 For both the 1764-LSP and LRP processors:
When using the PTO feature, the controller can now
perform a controlled stop when using PTO outputs. The
deceleration phase of the PTO can be initiated early via
ladder logic.
Enhanced program compare bit functionality in the Memory
Module.
1764-LRP B B FRN5 October 2000
Publication 1762-RM001C-EN-P - November 2000
Summary of Changes 5
New Information
The table below lists sections that document new features and
additional information about existing features.
For This New Information See
Added MicroLogix 1200 1762-L24BXB and 1762-L40BXB Controllers Chapter 1, 5, 6
Added configuration information for several new I/O modules:
1762-IQ16, -OA8, -OB8, -OB16, -OW16, -IF4
1769-OB16P and -IT6
Chapter 1
Added section on Configuring Expansion I/O Using RSLogix 500 Chapter 1
Made minor changes to clarify data file numbering. Chapter 2
Modified section on Writing Data to the Real-Time Clock Chapter 3
In the Communications Status File, General Channel Status Block, Bit 15,
the Comms Toggle Push Button Bit, is now valid for MicroLogix 1200 and
MicroLogix 1500 (previously was only the MicroLogix 1500).
Chapter 3
Added IMPORTANT notes about using the High-Speed Counter (HSC). Chapter 5
Added IMPORTANT notes about using the High-Speed Outputs (PTO and
PWM).
Chapter 6
Modified text that describes the PWM Accel/Decel Delay (ADD)
parameter.
Chapter 6
Added PTO Controlled Stop (CS) parameter (MicroLogix 1500 only). Chapter 6
Modified text that describes the Scale (SCL) instruction. Chapter 10
Corrected text for the PID Reset Term (Ti). The last sentence now reads:
“A value of 1 adds the maximum integral term into the PID equation.
(previously said that “a value of 1 adds the minimum integral term...”)
Chapter 19
MicroLogix 1200 Series B Controllers can use the entire set of ASCII
instructions
Chapter 20
Added section on Programming ASCII Instructions with information on
how to prevent communications shut-down when using ASCII
instructions.
Chapter 20
Added Ctrl-characters to the ASCII Character Set chart. Chapter 20
Added MSG File Element description. Chapter 21
The ASCII String Manipulation Error bit (S:5/15) now applies to
MicroLogix 1200 Series B Controllers as well as the MicroLogix 1500.
Appendix C
Added Fault Classification (non-user, recoverable, non-recoverable) to the
Fault Messages troubleshooting table.
Appendix D
Added new Error Code:
001A - User Program Incompatible with OS at Power-Up
Appendix D
Added alphabetical list of instructions for easy reference. Inside Back
Cover
ASCII Protocol can be used by MicroLogix 1200 Series B Controllers as
well as the MicroLogix 1500.
Appendix E
Updated Instruction Execution Times Appendix A
and B, and
throughout
manual
Publication 1762-RM001C-EN-P - November 2000
Summary of Changes 6
i Publication 1762-RM001C-EN-P
Table of Contents
Preface Who Should Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . P-1
Purpose of this Manual. . . . . . . . . . . . . . . . . . . . . . . . . . . . . P-1
Common Techniques Used in this Manual. . . . . . . . . . . . . . . P-2
Rockwell Automation Support . . . . . . . . . . . . . . . . . . . . . . . P-3
Chapter 1
I/O Configuration Embedded I/O. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
MicroLogix 1200 Expansion I/O . . . . . . . . . . . . . . . . . . . . . . 1-3
MicroLogix 1200 Expansion I/O Memory Mapping. . . . . . . . . 1-4
MicroLogix 1500 Compact Expansion I/O. . . . . . . . . . . . . . 1-7
MicroLogix 1500 Compact Expansion I/O Memory Mapping 1-9
I/O Addressing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-13
I/O Forcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14
Input Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14
Latching Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-15
Configuring Expansion I/O Using RSLogix 500 . . . . . . . . . . 1-18
Chapter 2
Controller Memory and File
Types
Controller Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2
Data Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-5
Protecting Data Files During Download. . . . . . . . . . . . . . . . . 2-6
Static File Protection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-8
Password Protection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9
Clearing the Controller Memory . . . . . . . . . . . . . . . . . . . . . 2-10
Allow Future Access Setting (OEM Lock). . . . . . . . . . . . . . . 2-10
Chapter 3
Function Files Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
Real-Time Clock Function File . . . . . . . . . . . . . . . . . . . . . . . 3-3
Trim Pot Information Function File . . . . . . . . . . . . . . . . . . . . 3-5
Memory Module Information Function File . . . . . . . . . . . . . . 3-6
DAT Function File (MicroLogix 1500 only) . . . . . . . . . . . . . . 3-9
Base Hardware Information Function File . . . . . . . . . . . . . . 3-12
Communications Status File . . . . . . . . . . . . . . . . . . . . . . . . 3-13
Input/Output Status File . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-18
Chapter 4
Programming Instructions
Overview
Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
Using the Instruction Descriptions. . . . . . . . . . . . . . . . . . . . . 4-2
Publication 1762-RM001C-EN-P
Table of Contents ii
Chapter 5
Using the High-Speed
Counter
High-Speed Counter (HSC) Function File . . . . . . . . . . . . . . . 5-2
High-Speed Counter Function File Sub-Elements Summary . . 5-4
HSC Function File Sub-Elements. . . . . . . . . . . . . . . . . . . . . . 5-5
HSL - High-Speed Counter Load . . . . . . . . . . . . . . . . . . . . . 5-26
RAC - Reset Accumulated Value . . . . . . . . . . . . . . . . . . . . . 5-27
Chapter 6
Using High-Speed Outputs PTO - Pulse Train Output. . . . . . . . . . . . . . . . . . . . . . . . . . . 6-1
Pulse Train Output Function. . . . . . . . . . . . . . . . . . . . . . . . . 6-2
Pulse Train Outputs (PTO) Function File. . . . . . . . . . . . . . . . 6-6
Pulse Train Output Function File Sub-Elements Summary . . . 6-7
PWM - Pulse Width Modulation . . . . . . . . . . . . . . . . . . . . . 6-18
PWM Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6-18
Pulse Width Modulation (PWM) Function File . . . . . . . . . . . 6-19
Pulse Width Modulated Function File Elements Summary . . 6-20
Chapter 7
Relay-Type (Bit) Instructions XIC - Examine if Closed
XIO - Examine if Open . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-1
OTE - Output Energize. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-3
OTL - Output Latch, OTU - Output Unlatch . . . . . . . . . . . . . 7-4
ONS - One Shot. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7-5
OSR - One Shot Rising, OSF - One Shot Falling. . . . . . . . . . . 7-6
Chapter 8
Timer and Counter
Instructions
Timer Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . 8-1
TON - Timer, On-Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-4
TOF - Timer, Off-Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-5
RTO - Retentive Timer, On-Delay . . . . . . . . . . . . . . . . . . . . . 8-6
How Counters Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-7
CTU - Count Up, CTD - Count Down . . . . . . . . . . . . . . . . . . 8-9
RES - Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-10
Chapter 9
Compare Instructions Using the Compare Instructions . . . . . . . . . . . . . . . . . . . . . . 9-2
EQU - Equal, NEQ - Not Equal . . . . . . . . . . . . . . . . . . . . . . . 9-3
GRT - Greater Than, LES - Less Than . . . . . . . . . . . . . . . . . . 9-4
GEQ - Greater Than or Equal To, LEQ - Less Than or Equal To 9-5
MEQ - Mask Compare for Equal . . . . . . . . . . . . . . . . . . . . . . 9-6
LIM - Limit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-7
Publication 1762-RM001C-EN-P
Table of Contents iii
Chapter 10
Math Instructions Using the Math Instructions . . . . . . . . . . . . . . . . . . . . . . . . 10-2
Updates to Math Status Bits . . . . . . . . . . . . . . . . . . . . . . . . 10-3
ADD - Add, SUB - Subtract . . . . . . . . . . . . . . . . . . . . . . . . . 10-4
MUL - Multiply, DIV - Divide . . . . . . . . . . . . . . . . . . . . . . . 10-5
NEG - Negate. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-6
CLR - Clear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-6
SCL - Scale. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-7
SCP - Scale with Parameters . . . . . . . . . . . . . . . . . . . . . . . . 10-8
SQR - Square Root . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-9
SWP - Swap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10-10
Chapter 11
Conversion Instructions Using Decode and Encode Instructions . . . . . . . . . . . . . . . . 11-1
DCD - Decode 4 to 1-of-16. . . . . . . . . . . . . . . . . . . . . . . . . 11-2
ENC - Encode 1-of-16 to 4 . . . . . . . . . . . . . . . . . . . . . . . . . 11-3
FRD - Convert from Binary Coded Decimal (BCD). . . . . . . . 11-4
TOD - Convert to Binary Coded Decimal (BCD) . . . . . . . . . 11-8
Chapter 12
Logical Instructions Using Logical Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . 12-1
Updates to Math Status Bits . . . . . . . . . . . . . . . . . . . . . . . . 12-2
AND - Bit-Wise AND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-3
OR - Logical OR. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-4
XOR - Exclusive OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-5
NOT - Logical NOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12-6
Chapter 13
Move Instructions MOV - Move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-1
MVM - Masked Move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13-3
Chapter 14
File Instructions COP - Copy File. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-2
FLL - Fill File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-3
BSL - Bit Shift Left . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-4
BSR - Bit Shift Right . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14-6
FFL - First In, First Out (FIFO) Load . . . . . . . . . . . . . . . . . . 14-8
FFU - First In, First Out (FIFO) Unload . . . . . . . . . . . . . . . 14-11
LFL - Last In, First Out (LIFO) Load. . . . . . . . . . . . . . . . . . 14-14
LFU - Last In, First Out (LIFO) Unload. . . . . . . . . . . . . . . . 14-17
Publication 1762-RM001C-EN-P
Table of Contents iv
Chapter 15
Sequencer Instructions SQC- Sequencer Compare . . . . . . . . . . . . . . . . . . . . . . . . . 15-2
SQO- Sequencer Output. . . . . . . . . . . . . . . . . . . . . . . . . . . 15-5
SQL - Sequencer Load . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15-8
Chapter 16
Program Control Instructions JMP - Jump to Label. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-1
LBL - Label . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-2
JSR - Jump to Subroutine . . . . . . . . . . . . . . . . . . . . . . . . . . 16-2
SBR - Subroutine Label. . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-3
RET - Return from Subroutine. . . . . . . . . . . . . . . . . . . . . . . 16-3
SUS - Suspend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-4
TND - Temporary End . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-4
END - Program End . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16-5
MCR - Master Control Reset . . . . . . . . . . . . . . . . . . . . . . . . 16-5
Chapter 17
Input and Output Instructions IIM - Immediate Input with Mask . . . . . . . . . . . . . . . . . . . . 17-1
IOM - Immediate Output with Mask . . . . . . . . . . . . . . . . . . 17-3
REF- I/O Refresh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17-4
Chapter 18
Using Interrupts Information About Using Interrupts . . . . . . . . . . . . . . . . . . 18-2
User Interrupt Instructions . . . . . . . . . . . . . . . . . . . . . . . . . 18-7
INT - Interrupt Subroutine . . . . . . . . . . . . . . . . . . . . . . . . . 18-7
STS - Selectable Timed Start . . . . . . . . . . . . . . . . . . . . . . . . 18-8
UID - User Interrupt Disable. . . . . . . . . . . . . . . . . . . . . . . . 18-9
UIE - User Interrupt Enable . . . . . . . . . . . . . . . . . . . . . . . 18-10
UIF - User Interrupt Flush . . . . . . . . . . . . . . . . . . . . . . . . 18-11
Using the Selectable Timed Interrupt (STI) Function File . . 18-12
Using the Event Input Interrupt (EII) Function File . . . . . . 18-17
Chapter 19
Process Control Instruction The PID Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-1
The PID Equation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-2
PD Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-2
PID - Proportional Integral Derivative . . . . . . . . . . . . . . . . . 19-3
Input Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-4
Output Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-7
Tuning Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-8
Runtime Errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-16
Analog I/O Scaling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-17
Application Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-18
Application Examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . 19-22
Publication 1762-RM001C-EN-P
Table of Contents v
Chapter 20
ASCII Instructions General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-1
ASCII Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-1
Instruction Types and Operation. . . . . . . . . . . . . . . . . . . . . 20-2
Protocol Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-4
String (ST) Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-5
Control Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-6
ACL - ASCII Clear Buffers . . . . . . . . . . . . . . . . . . . . . . . . . . 20-7
AIC - ASCII Integer to String . . . . . . . . . . . . . . . . . . . . . . . . 20-8
AWA - ASCII Write with Append. . . . . . . . . . . . . . . . . . . . . 20-9
AWT - ASCII Write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-11
ABL - Test Buffer for Line. . . . . . . . . . . . . . . . . . . . . . . . . 20-14
ACB - Number of Characters in Buffer. . . . . . . . . . . . . . . . 20-15
ACI - String to Integer . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-16
ACN - String Concatenate . . . . . . . . . . . . . . . . . . . . . . . . . 20-18
AEX - String Extract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-19
AHL - ASCII Handshake Lines. . . . . . . . . . . . . . . . . . . . . . 20-20
ARD - ASCII Read Characters . . . . . . . . . . . . . . . . . . . . . . 20-22
ARL - ASCII Read Line . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-23
ASC - String Search. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-25
ASR - ASCII String Compare . . . . . . . . . . . . . . . . . . . . . . . 20-26
Timing Diagram for ARD, ARL, AWA, and AWT Instructions 20-28
Using In-line Indirection. . . . . . . . . . . . . . . . . . . . . . . . . . 20-29
ASCII Instruction Error Codes . . . . . . . . . . . . . . . . . . . . . . 20-30
ASCII Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20-31
Chapter 21
Communications Instructions Messaging Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-1
MSG - Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-3
The Message File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-4
Local Messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-7
Configuring a Local Message. . . . . . . . . . . . . . . . . . . . . . . . 21-9
Remote Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21-16
Configuring a Remote Message . . . . . . . . . . . . . . . . . . . . . 21-18
MSG Instruction Error Codes. . . . . . . . . . . . . . . . . . . . . . . 21-21
Timing Diagram for the MSG Instruction . . . . . . . . . . . . . . 21-23
SVC - Service Communications . . . . . . . . . . . . . . . . . . . . . 21-26
MSG Instruction Ladder Logic . . . . . . . . . . . . . . . . . . . . . . 21-28
Local Messaging Examples . . . . . . . . . . . . . . . . . . . . . . . . 21-29
Publication 1762-RM001C-EN-P
Table of Contents vi
Chapter 22
Data Logging
(MicroLogix 1500 1764-LRP
Processor only)
Queues and Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-2
Configuring Data Log Queues . . . . . . . . . . . . . . . . . . . . . . 22-6
DLG - Data Log Instruction. . . . . . . . . . . . . . . . . . . . . . . . . 22-8
Data Log Status File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22-9
Retrieving (Reading) Records . . . . . . . . . . . . . . . . . . . . . . 22-11
Accessing the Retrieval File . . . . . . . . . . . . . . . . . . . . . . . 22-11
Conditions that Will Erase the Data Retrieval File . . . . . . . 22-13
Appendix A
MicroLogix 1200 Memory
Usage and Instruction
Execution Time
Programming Instructions Memory Usage and Execution Time A-1
MicroLogix 1200 Scan Time Worksheet. . . . . . . . . . . . . . . . . A-7
Appendix B
MicroLogix 1500 Memory
Usage and Instruction
Execution Time
Programming Instructions Memory usage and Execution Time B-1
MicroLogix 1500 Scan Time Worksheet. . . . . . . . . . . . . . . . . B-6
Appendix C
System Status File Status File Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-2
Status File Details. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . C-3
Appendix D
Fault Messages and Error
Codes
Identifying Controller Faults . . . . . . . . . . . . . . . . . . . . . . . . . D-1
Contacting Rockwell Automation for Assistance. . . . . . . . . . . D-9
Appendix E
Protocol Configuration DH-485 Communication Protocol . . . . . . . . . . . . . . . . . . . . . E-2
DF1 Full-Duplex Protocol. . . . . . . . . . . . . . . . . . . . . . . . . . . E-5
DF1 Half-Duplex Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . E-6
Modbus RTU Slave Protocol . . . . . . . . . . . . . . . . . . . . . . . E-9
ASCII Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . E-13
Glossary
Index
MicroLogix 1200 and 1500 Alphabetical List of Instructions
1 Publication 1762-RM001C-EN-P
Preface
Read this preface to familiarize yourself with the rest of the manual. It
provides information concerning:
who should use this manual
the purpose of this manual
related documentation
conventions used in this manual
Rockwell Automation support
Who Should Use this
Manual
Use this manual if you are responsible for designing, installing,
programming, or troubleshooting control systems that use MicroLogix
1200 or MicroLogix 1500 controllers.
You should have a basic understanding of electrical circuitry and
familiarity with relay logic. If you do not, obtain the proper training
before using this product.
Purpose of this Manual
This manual is a reference guide for MicroLogix 1200 and MicroLogix
1500 controllers. It describes the procedures you use to program and
troubleshoot your controller. This manual:
gives you an overview of the file types used by the controllers
provides the instruction set for the controllers
contains application examples to show the instruction set in use
Publication 1762-RM001C-EN-P
Preface 2
Related Documentation
The following documents contain additional information concerning
Rockwell Automation products. To obtain a copy, contact your local
Rockwell Automation office or distributor.
Common Techniques
Used in this Manual
The following conventions are used throughout this manual:
Bulleted lists such as this one provide information, not procedural
steps.
Numbered lists provide sequential steps or hierarchical information.
Italic type is used for emphasis.
Change bars appear beside information that has been changed or
added since the last revision of this manual. Change bars appear in
the margin as shown to the right of this paragraph.
For Read this Document Document Number
Information on understanding and applying micro controllers. MicroMentor 1761-MMB
Information on mounting and wiring the MicroLogix 1200 Programmable
Controller, including a mounting template and door labels.
MicroLogix 1200 Programmable
Controllers Installation Instructions
1762-IN006C-MU-P
Detailed information on planning, mounting, wiring, and troubleshooting
your MicroLogix 1200 system.
MicroLogix 1200 Programmable
Controllers User Manual
1762-UM001B-EN-P
Information on mounting and wiring the MicroLogix 1500 Base Units,
including a mounting template for easy installation
MicroLogix 1500 Programmable
Controllers Base Unit Installation
Instructions
1764-IN001A-ML-P
Detailed information on planning, mounting, wiring, and troubleshooting
your MicroLogix 1500 system.
MicroLogix 1500 Programmable
Controllers User Manual
1764-UM001A-US-P
A description on how to install and connect an AIC+. This manual also
contains information on network wiring.
Advanced Interface Converter (AIC+) User
Manual
1761-6.4
Information on how to install, configure, and commission a DNI DeviceNet Interface User Manual 1761-6.5
Information on DF1 open protocol. DF1 Protocol and Command Set
Reference Manual
1770-6.5.16
In-depth information on grounding and wiring Allen-Bradley
programmable controllers
Allen-Bradley Programmable Controller
Grounding and Wiring Guidelines
1770-4.1
A description of important differences between solid-state programmable
controller products and hard-wired electromechanical devices
Application Considerations for
Solid-State Controls
SGI-1.1
An article on wire sizes and types for grounding electrical equipment National Electrical Code - Published by the National Fire
Protection Association of Boston, MA.
A complete listing of current documentation, including ordering
instructions. Also indicates whether the documents are available on
CD-ROM or in multi-languages.
Allen-Bradley Publication Index SD499
A glossary of industrial automation terms and abbreviations Allen-Bradley Industrial Automation
Glossary
AG-7.1
Publication 1762-RM001C-EN-P
Preface 3
Rockwell Automation
Support
Rockwell Automation offers support services worldwide, with over 75
Sales/Support Offices, 512 authorized Distributors and 260 authorized
Systems Integrators located throughout the United States alone, plus
Rockwell Automation representatives in every major country in the world.
Local Product Support
Contact your local Rockwell Automation representative for:
sales and order support
product technical training
warranty support
support service agreements
Technical Product Assistance
If you need to contact Rockwell Automation for technical assistance,
please review the Fault Messages and Error Codes on page D-1 and the
Troubleshooting appendix in your controllers User Manual first. Then call
your local Rockwell Automation representative. Rockwell Automation
phone numbers appear on the back of this manual.
Your Questions or Comments on this Manual
If you find a problem with this manual, or you have any suggestions for
how this manual could be made more useful to you, please contact us at
the address below:
Rockwell Automation
Control and Information Group
Technical Communication, Dept. A602V
P.O. Box 2086
Milwaukee, WI 53201-2086
or visit our internet page at:
http://www.ab.com/micrologix
or http://www.rockwellautomation.com
Publication 1762-RM001C-EN-P
Preface 4
1 Publication 1762-RM001C-EN-P
Chapter
1
I/O Configuration
This section discusses the various aspects of Input and Output features of
the MicroLogix 1200 and MicroLogix 1500 controllers. Each controller
comes with a certain amount of embedded I/O, which is physically located
on the controller. The controller also allows for adding expansion I/O.
This section discusses the following I/O functions:
Embedded I/O on page 1-1
MicroLogix 1200 Expansion I/O on page 1-3
MicroLogix 1200 Expansion I/O Memory Mapping on page 1-4
MicroLogix 1500 Compact Expansion I/O on page 1-7
MicroLogix 1500 Compact Expansion I/O Memory Mapping on
page 1-9
I/O Addressing on page 1-13
I/O Forcing on page 1-14
Input Filtering on page 1-14
Latching Inputs on page 1-15
Embedded I/O
The MicroLogix 1200 and 1500 provide discrete I/O that is built into the
controller as listed in the following table. These I/O points are referred to as
Embedded I/O.
Controller Family Inputs Outputs
Quantity Type Quantity Type
MicroLogix 1200
Controllers
1762-L24BWA 14 24V dc 10 relay
1762-L24AWA 14 120V ac 10 relay
1762-L24BXB 14 24V dc 10 5 relay
5 FET
1762-L40BWA 24 24V dc 16 relay
1762-L40AWA 24 120V ac 16 relay
1762-L40BXB 24 24V dc 16 8 relay
8 FET
MicroLogix 1500
Base Units
1764-24BWA 12 24V dc 12 relay
1764-24AWA 12 120V ac 12 relay
1764-28BXB 16 24V dc 12 6 relay
6 FET
Publication 1762-RM001C-EN-P
1-2 I/O Configuration
AC embedded inputs have fixed input filters. DC embedded inputs have
configurable input filters for a number of special functions that can be
used in your application. These are: high-speed counting, event
interrupts, and latching inputs. The 1764-28BXB has two high-speed
outputs for use as pulse train output (PTO) and/or pulse width
modulation (PWM) outputs. The 1762-L24BXB and -L40BXB each have
one high-speed output.
Publication 1762-RM001C-EN-P
I/O Configuration 1-3
MicroLogix 1200
Expansion I/O
If the application requires more I/O than the controller provides, you can
attach I/O modules. These additional modules are called expansion I/O.
Expansion I/O Modules
MicroLogix 1200 expansion I/O (Bulletin 1762) is used to provide discrete
and analog inputs and outputs and, in the future, specialty modules. For
the MicroLogix 1200, you can attach up to six additional I/O modules.
The number of 1762 I/O modules that can be attached to the MicroLogix
1200 is dependent on the amount of power required by the I/O modules.
See your MicroLogix 1200 User Manual, publication 1762-UM001A-US-P
for more information on valid configurations.
Addressing Expansion I/O Slots
The figure below shows the addressing for the MicroLogix 1200 and its
I/O.
The expansion I/O is addressed as slots 1 through 6 (the controllers
embedded I/O is addressed as slot 0). Modules are counted from left to
right as shown below.
NOTE
Visit the MicroLogix web site (http://www.ab.com/
micrologix.) for the MicroLogix 1200 Expansion I/O
System Qualifier.
NOTE
In most cases, you can use the following address format:
X:s/b (X = file type letter, s = slot number, b = bit number)
See I/O Addressing on page 1-13 for complete
information on address formats.
Expansion I/O
Embedded I/O = Slot 0
Slot 1
Slot 2
Publication 1762-RM001C-EN-P
1-4 I/O Configuration
MicroLogix 1200
Expansion I/O Memory
Mapping
Discrete I/O Configuration
1762-IA8 and 1762-IQ8 Input Image
For each input module, the input data file contains the current state of the
field input points. Bit positions 0 through 7 correspond to input terminals
0 through 7.
r = read only, x = not used, always at a 0 or OFF state
1762-IQ16 Input Image
For each input module, the input data file contains the current state of the
field input points. Bit positions 0 through 15 correspond to input
terminals 0 through 15.
r = read only
1762-OA8, 1762-OB8, and 1762-OW8 Output Image
For each output module, the output data file contains the
controller-directed state of the discrete output points. Bit positions 0
through 7 correspond to output terminals 0 through 7.
r/w = read and write, 0 = always at a 0 or OFF state
1762-OB16 and 1762-OW16 Output Image
For each output module, the output data file contains the
controller-directed state of the discrete output points. Bit positions 0
through 15 correspond to output terminals 0 through 15.
r/w = read and write
Word
Bit Position
1514131211109876543210
0xxxxxxxxrrrrrrrr
Word
Bit Position
1514131211109876543210
0rrrrrrrrrrrrrrrr
Word
Bit Position
1514131211109876543210
000000000r/wr/wr/wr/wr/wr/wr/wr/w
Word
Bit Position
1514131211109876543210
0 r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w r/w
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82
  • Page 83 83
  • Page 84 84
  • Page 85 85
  • Page 86 86
  • Page 87 87
  • Page 88 88
  • Page 89 89
  • Page 90 90
  • Page 91 91
  • Page 92 92
  • Page 93 93
  • Page 94 94
  • Page 95 95
  • Page 96 96
  • Page 97 97
  • Page 98 98
  • Page 99 99
  • Page 100 100
  • Page 101 101
  • Page 102 102
  • Page 103 103
  • Page 104 104
  • Page 105 105
  • Page 106 106
  • Page 107 107
  • Page 108 108
  • Page 109 109
  • Page 110 110
  • Page 111 111
  • Page 112 112
  • Page 113 113
  • Page 114 114
  • Page 115 115
  • Page 116 116
  • Page 117 117
  • Page 118 118
  • Page 119 119
  • Page 120 120
  • Page 121 121
  • Page 122 122
  • Page 123 123
  • Page 124 124
  • Page 125 125
  • Page 126 126
  • Page 127 127
  • Page 128 128
  • Page 129 129
  • Page 130 130
  • Page 131 131
  • Page 132 132
  • Page 133 133
  • Page 134 134
  • Page 135 135
  • Page 136 136
  • Page 137 137
  • Page 138 138
  • Page 139 139
  • Page 140 140
  • Page 141 141
  • Page 142 142
  • Page 143 143
  • Page 144 144
  • Page 145 145
  • Page 146 146
  • Page 147 147
  • Page 148 148
  • Page 149 149
  • Page 150 150
  • Page 151 151
  • Page 152 152
  • Page 153 153
  • Page 154 154
  • Page 155 155
  • Page 156 156
  • Page 157 157
  • Page 158 158
  • Page 159 159
  • Page 160 160
  • Page 161 161
  • Page 162 162
  • Page 163 163
  • Page 164 164
  • Page 165 165
  • Page 166 166
  • Page 167 167
  • Page 168 168
  • Page 169 169
  • Page 170 170
  • Page 171 171
  • Page 172 172
  • Page 173 173
  • Page 174 174
  • Page 175 175
  • Page 176 176
  • Page 177 177
  • Page 178 178
  • Page 179 179
  • Page 180 180
  • Page 181 181
  • Page 182 182
  • Page 183 183
  • Page 184 184
  • Page 185 185
  • Page 186 186
  • Page 187 187
  • Page 188 188
  • Page 189 189
  • Page 190 190
  • Page 191 191
  • Page 192 192
  • Page 193 193
  • Page 194 194
  • Page 195 195
  • Page 196 196
  • Page 197 197
  • Page 198 198
  • Page 199 199
  • Page 200 200
  • Page 201 201
  • Page 202 202
  • Page 203 203
  • Page 204 204
  • Page 205 205
  • Page 206 206
  • Page 207 207
  • Page 208 208
  • Page 209 209
  • Page 210 210
  • Page 211 211
  • Page 212 212
  • Page 213 213
  • Page 214 214
  • Page 215 215
  • Page 216 216
  • Page 217 217
  • Page 218 218
  • Page 219 219
  • Page 220 220
  • Page 221 221
  • Page 222 222
  • Page 223 223
  • Page 224 224
  • Page 225 225
  • Page 226 226
  • Page 227 227
  • Page 228 228
  • Page 229 229
  • Page 230 230
  • Page 231 231
  • Page 232 232
  • Page 233 233
  • Page 234 234
  • Page 235 235
  • Page 236 236
  • Page 237 237
  • Page 238 238
  • Page 239 239
  • Page 240 240
  • Page 241 241
  • Page 242 242
  • Page 243 243
  • Page 244 244
  • Page 245 245
  • Page 246 246
  • Page 247 247
  • Page 248 248
  • Page 249 249
  • Page 250 250
  • Page 251 251
  • Page 252 252
  • Page 253 253
  • Page 254 254
  • Page 255 255
  • Page 256 256
  • Page 257 257
  • Page 258 258
  • Page 259 259
  • Page 260 260
  • Page 261 261
  • Page 262 262
  • Page 263 263
  • Page 264 264
  • Page 265 265
  • Page 266 266
  • Page 267 267
  • Page 268 268
  • Page 269 269
  • Page 270 270
  • Page 271 271
  • Page 272 272
  • Page 273 273
  • Page 274 274
  • Page 275 275
  • Page 276 276
  • Page 277 277
  • Page 278 278
  • Page 279 279
  • Page 280 280
  • Page 281 281
  • Page 282 282
  • Page 283 283
  • Page 284 284
  • Page 285 285
  • Page 286 286
  • Page 287 287
  • Page 288 288
  • Page 289 289
  • Page 290 290
  • Page 291 291
  • Page 292 292
  • Page 293 293
  • Page 294 294
  • Page 295 295
  • Page 296 296
  • Page 297 297
  • Page 298 298
  • Page 299 299
  • Page 300 300
  • Page 301 301
  • Page 302 302
  • Page 303 303
  • Page 304 304
  • Page 305 305
  • Page 306 306
  • Page 307 307
  • Page 308 308
  • Page 309 309
  • Page 310 310
  • Page 311 311
  • Page 312 312
  • Page 313 313
  • Page 314 314
  • Page 315 315
  • Page 316 316
  • Page 317 317
  • Page 318 318
  • Page 319 319
  • Page 320 320
  • Page 321 321
  • Page 322 322
  • Page 323 323
  • Page 324 324
  • Page 325 325
  • Page 326 326
  • Page 327 327
  • Page 328 328
  • Page 329 329
  • Page 330 330
  • Page 331 331
  • Page 332 332
  • Page 333 333
  • Page 334 334
  • Page 335 335
  • Page 336 336
  • Page 337 337
  • Page 338 338
  • Page 339 339
  • Page 340 340
  • Page 341 341
  • Page 342 342
  • Page 343 343
  • Page 344 344
  • Page 345 345
  • Page 346 346
  • Page 347 347
  • Page 348 348
  • Page 349 349
  • Page 350 350
  • Page 351 351
  • Page 352 352
  • Page 353 353
  • Page 354 354
  • Page 355 355
  • Page 356 356
  • Page 357 357
  • Page 358 358
  • Page 359 359
  • Page 360 360
  • Page 361 361
  • Page 362 362
  • Page 363 363
  • Page 364 364
  • Page 365 365
  • Page 366 366
  • Page 367 367
  • Page 368 368
  • Page 369 369
  • Page 370 370
  • Page 371 371
  • Page 372 372
  • Page 373 373
  • Page 374 374
  • Page 375 375
  • Page 376 376
  • Page 377 377
  • Page 378 378
  • Page 379 379
  • Page 380 380
  • Page 381 381
  • Page 382 382
  • Page 383 383
  • Page 384 384
  • Page 385 385
  • Page 386 386
  • Page 387 387
  • Page 388 388
  • Page 389 389
  • Page 390 390
  • Page 391 391
  • Page 392 392
  • Page 393 393
  • Page 394 394
  • Page 395 395
  • Page 396 396
  • Page 397 397
  • Page 398 398
  • Page 399 399
  • Page 400 400
  • Page 401 401
  • Page 402 402
  • Page 403 403
  • Page 404 404
  • Page 405 405
  • Page 406 406
  • Page 407 407
  • Page 408 408
  • Page 409 409
  • Page 410 410
  • Page 411 411
  • Page 412 412
  • Page 413 413
  • Page 414 414
  • Page 415 415
  • Page 416 416
  • Page 417 417
  • Page 418 418
  • Page 419 419
  • Page 420 420
  • Page 421 421
  • Page 422 422
  • Page 423 423
  • Page 424 424

Allen-Bradley MicroLogix 1200 Reference guide

Category
Processors
Type
Reference guide
This manual is also suitable for

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI