Allen-Bradley 1763-L16AWA, 1763-L16BBB, 1763-L16BWA, 1763-L16DWD, MicroLogix 1100 Instruction Set Reference Manual

  • Hello! I am an AI chatbot trained to assist you with the Allen-Bradley 1763-L16AWA Instruction Set Reference Manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
MicroLogix™ 1100
Programmable
Controllers
Bulletin 1763 Controllers and 1762
Expansion I/O
Instruction Set Reference
Manual
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Important User Information
Solid state equipment has operational characteristics differing from those of
electromechanical equipment. Safety Guidelines for the Application,
Installation and Maintenance of Solid State Controls (publication SGI-1.1
available from your local Rockwell Automation sales office or online at
http://literature.rockwellautomation.com
) describes some important
differences between solid state equipment and hard-wired electromechanical
devices. Because of this difference, and also because of the wide variety of
uses for solid state equipment, all persons responsible for applying this
equipment must satisfy themselves that each intended application of this
equipment is acceptable.
In no event will Rockwell Automation, Inc. be responsible or liable for
indirect or consequential damages resulting from the use or application of
this equipment.
The examples and diagrams in this manual are included solely for illustrative
purposes. Because of the many variables and requirements associated with
any particular installation, Rockwell Automation, Inc. cannot assume
responsibility or liability for actual use based on the examples and diagrams.
No patent liability is assumed by Rockwell Automation, Inc. with respect to
use of information, circuits, equipment, or software described in this manual.
Reproduction of the contents of this manual, in whole or in part, without
written permission of Rockwell Automation, Inc., is prohibited.
Throughout this manual, when necessary, we use notes to make you aware
of safety considerations.
Rockwell Automation, DeviceNet, ModBus, Allen-Bradley, SLC 5/02, SLC 5/03, PLC-5, MicroLogix, SLC 500, RSLogix, RSLinx, and
RSLogix 500 are trademarks of Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
WARNING
Identifies information about practices or circumstances that can cause
an explosion in a hazardous environment, which may 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.
ATTENTION
Identifies information about practices or circumstances that can lead
to: personal injury or death, property damage, or economic loss.
Attentions help you identify a hazard, avoid a hazard, and recognize
the consequence.
SHOCK HAZARD
Labels may be on or inside the equipment, such as a drive or motor, to
alert people that dangerous voltage may be present.
BURN HAZARD
Labels may be on or inside the equipment, such as a drive or motor, to
alert people that surfaces may reach dangerous temperatures.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
3 Publication 1763-RM001C-EN-P - October 2009
Summary of Changes
The information below summarizes the changes to this manual since the
last printing as publication 1763-RM001B-EN-P, April 2007.
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. See the
latest release notes, 1763-RN003
, 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. See “Firmware Upgrades” below.
Firmware Upgrades
Enhanced features are added to the controllers through a firmware
upgrade. This firmware upgrade is not required, except to allow you
access to the latest features. To use the newest features, be sure your
controller’s firmware is at the following level:
To upgrade the firmware for a MicroLogix controller visit the MicroLogix
web site at http://www.ab.com/micrologix
.
To use all of the latest features, RSLogix 500 programming software must
be version 7.20.00 or higher.
Programmable
Controller
Firmware Revision Catalog Numbers
MicroLogix 1100 Series B, Revision C, FRN 9 1763-L16AWA, 1763-L16BWA, 1763-L16BBB,
and 1763-L16DWD controllers
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
4
Notes:
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
5 Publication 1763-RM001C-EN-P - October 2009
Table of Contents
Summary of Changes
Firmware Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Firmware Upgrades . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Table of Contents
Chapter 1
I/O Configuration Embedded I/O. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
MicroLogix 1100 Expansion I/O . . . . . . . . . . . . . . . . . . . . . . . 15
MicroLogix 1100 Expansion I/O Memory Mapping. . . . . . . . . . 16
I/O Addressing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
I/O Forcing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Input Filtering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Analog Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Latching Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Configuring Expansion
I/O Using RSLogix 500 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Preface
Who Should Use this Manual . . . . . . . . . . . . . . . . . . . . . . . . . 33
Purpose of this Manual. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Common Techniques Used in this Manual. . . . . . . . . . . . . . . . 33
Related Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Rockwell Automation Support . . . . . . . . . . . . . . . . . . . . . . . . 34
Chapter 1
Controller Memory and File
Types
Controller Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Data Files. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Protecting Data Files During Download. . . . . . . . . . . . . . . . . . 42
Static File Protection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Password Protection. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Clearing the Controller Memory . . . . . . . . . . . . . . . . . . . . . . . 46
Allow Future Access Setting (OEM Lock). . . . . . . . . . . . . . . . . 47
Web View Disable (OS Series B FRN 4 or later). . . . . . . . . . . . 47
Chapter 2
Function Files Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Real-Time Clock Function File . . . . . . . . . . . . . . . . . . . . . . . . 51
RTA - Real Time Clock Adjust Instruction . . . . . . . . . . . . . . . . 53
Memory Module Information Function File . . . . . . . . . . . . . . . 54
Base Hardware Information Function File . . . . . . . . . . . . . . . . 56
Communications Status File . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Ethernet Communications Status File. . . . . . . . . . . . . . . . . . . . 71
Input/Output Status File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
Chapter 3
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
6 Table of Contents
Programming Instructions
Overview
Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Using the Instruction Descriptions . . . . . . . . . . . . . . . . . . . . . 82
Chapter 4
Using the High-Speed
Counter and Programmable
Limit Switch
High-Speed Counter Overview . . . . . . . . . . . . . . . . . . . . . . . . 89
Programmable Limit Switch Overview. . . . . . . . . . . . . . . . . . . 89
High-Speed Counter (HSC) Function File . . . . . . . . . . . . . . . . 90
High-Speed Counter Function File Sub-Elements Summary . . . 92
HSC Function File Sub-Elements. . . . . . . . . . . . . . . . . . . . . . . 93
HSL - High-Speed Counter Load . . . . . . . . . . . . . . . . . . . . . . 118
RAC - Reset Accumulated Value . . . . . . . . . . . . . . . . . . . . . . 119
Programmable Limit Switch (PLS) File. . . . . . . . . . . . . . . . . . 120
Chapter 5
Using High-Speed Outputs PTO - Pulse Train Output. . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Pulse Train Output Function. . . . . . . . . . . . . . . . . . . . . . . . . 128
Pulse Train Outputs (PTO) Function File. . . . . . . . . . . . . . . . 133
Pulse Train Output Function File Sub-Elements Summary . . . 134
PWM - Pulse Width Modulation . . . . . . . . . . . . . . . . . . . . . . 149
PWM Function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150
Pulse Width Modulation (PWM) Function File . . . . . . . . . . . . 150
Pulse Width Modulated Function File Elements Summary . . . 152
Chapter 6
Relay-Type (Bit) Instructions XIC - Examine if Closed
XIO - Examine if Open . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
OTE - Output Energize. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
OTL - Output Latch
OTU - Output Unlatch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162
ONS - One Shot. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
OSR - One Shot Rising
OSF - One Shot Falling . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Chapter 7
Timer and Counter
Instructions
Timer Instructions Overview . . . . . . . . . . . . . . . . . . . . . . . . 167
TON - Timer, On-Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
TOF - Timer, Off-Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172
RTO - Retentive Timer, On-Delay . . . . . . . . . . . . . . . . . . . . . 173
How Counters Work . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174
CTU - Count Up
CTD - Count Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177
RES - Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178
Chapter 8
Compare Instructions Using the Compare Instructions . . . . . . . . . . . . . . . . . . . . . . 180
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
Table of Contents 7
EQU - Equal
NEQ - Not Equal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
GRT - Greater Than
LES - Less Than . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181
GEQ - Greater Than or Equal To
LEQ - Less Than or Equal To . . . . . . . . . . . . . . . . . . . . . . . . 182
MEQ - Mask Compare for Equal . . . . . . . . . . . . . . . . . . . . . 182
LIM - Limit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 184
Chapter 9
Math Instructions Using the Math Instructions . . . . . . . . . . . . . . . . . . . . . . . . . 188
Updates to Math Status Bits . . . . . . . . . . . . . . . . . . . . . . . . . 189
Using the Floating Point (F) Data File . . . . . . . . . . . . . . . . . . 190
ADD - Add
SUB - Subtract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 193
MUL - Multiply
DIV - Divide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
NEG - Negate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
CLR - Clear . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
ABS - Absolute Value . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
SCL - Scale . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196
SCP - Scale with Parameters . . . . . . . . . . . . . . . . . . . . . . . . . 197
SQR - Square Root . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 199
Chapter 10
Conversion Instructions Using Decode and Encode Instructions . . . . . . . . . . . . . . . . . 201
DCD - Decode 4 to 1-of-16 . . . . . . . . . . . . . . . . . . . . . . . . . 202
ENC - Encode
1-of-16 to 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
FRD - Convert from Binary Coded Decimal (BCD) . . . . . . . . 204
TOD - Convert to Binary Coded Decimal (BCD) . . . . . . . . . . 208
GCD - Gray Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
Chapter 11
Logical Instructions Using Logical Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . 211
Updates to Math Status Bits . . . . . . . . . . . . . . . . . . . . . . . . . 212
AND - Bit-Wise AND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 213
OR - Logical OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214
XOR - Exclusive OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
NOT - Logical NOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
Chapter 12
Move Instructions MOV - Move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217
MVM - Masked Move . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
8 Table of Contents
Chapter 13
File Instructions CPW - Copy Word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
COP - Copy File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
FLL - Fill File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 225
BSL - Bit Shift Left . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226
BSR - Bit Shift Right . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 228
FFL - First In, First Out (FIFO) Load . . . . . . . . . . . . . . . . . . . 230
FFU - First In, First Out (FIFO) Unload . . . . . . . . . . . . . . . . 232
LFL - Last In, First Out (LIFO) Load . . . . . . . . . . . . . . . . . . . 234
LFU - Last In, First Out (LIFO) Unload . . . . . . . . . . . . . . . . . 236
SWP - Swap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
Chapter 14
Sequencer Instructions SQC- Sequencer Compare . . . . . . . . . . . . . . . . . . . . . . . . . . 240
SQO- Sequencer Output . . . . . . . . . . . . . . . . . . . . . . . . . . . 243
SQL - Sequencer Load . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 246
Chapter 15
Program Control Instructions JMP - Jump to Label . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249
LBL - Label . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
JSR - Jump to Subroutine . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
SBR - Subroutine Label . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
RET - Return from Subroutine . . . . . . . . . . . . . . . . . . . . . . . 251
SUS - Suspend . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
TND - Temporary End . . . . . . . . . . . . . . . . . . . . . . . . . . . . 251
END - Program End . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252
MCR - Master Control Reset . . . . . . . . . . . . . . . . . . . . . . . . . 252
Chapter 16
Input and Output Instructions IIM - Immediate Input with Mask . . . . . . . . . . . . . . . . . . . . 255
IOM - Immediate Output with Mask . . . . . . . . . . . . . . . . . . 257
REF- I/O Refresh . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
Chapter 17
Using Interrupts Information About Using Interrupts . . . . . . . . . . . . . . . . . . . 259
User Interrupt Instructions . . . . . . . . . . . . . . . . . . . . . . . . . . 263
INT - Interrupt Subroutine . . . . . . . . . . . . . . . . . . . . . . . . . . 263
STS - Selectable Timed Start . . . . . . . . . . . . . . . . . . . . . . . . 264
UID - User Interrupt Disable . . . . . . . . . . . . . . . . . . . . . . . . 265
UIE - User Interrupt Enable . . . . . . . . . . . . . . . . . . . . . . . . . 266
UIF - User Interrupt Flush . . . . . . . . . . . . . . . . . . . . . . . . . . 267
Using the Selectable Timed Interrupt (STI) Function File . . . . 268
Using the Event Input Interrupt (EII) Function File . . . . . . . . 272
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
Table of Contents 9
Chapter 18
Process Control Instruction The PID Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279
The PID Equation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
PD Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
PID - Proportional Integral Derivative . . . . . . . . . . . . . . . . . 282
Input Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
Output Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287
Tuning Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 289
Runtime Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
Analog I/O Scaling. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
Application Notes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 300
Application Examples. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
Chapter 19
ASCII Instructions General Information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
ASCII Instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 309
Instruction Types and Operation. . . . . . . . . . . . . . . . . . . . . . 310
Protocol Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 311
String (ST) Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 312
Control Data File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
ACL - ASCII Clear Buffers . . . . . . . . . . . . . . . . . . . . . . . . . . 314
AIC - ASCII Integer to String . . . . . . . . . . . . . . . . . . . . . . . . 316
AWA - ASCII Write with Append . . . . . . . . . . . . . . . . . . . . . 317
AWT - ASCII Write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 319
ABL - Test Buffer for Line . . . . . . . . . . . . . . . . . . . . . . . . . . 322
ACB - Number of Characters in Buffer . . . . . . . . . . . . . . . . . 323
ACI - String to Integer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 324
ACN - String Concatenate . . . . . . . . . . . . . . . . . . . . . . . . . . 326
AEX - String Extract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
AHL - ASCII Handshake Lines . . . . . . . . . . . . . . . . . . . . . . . 328
ARD - ASCII Read Characters . . . . . . . . . . . . . . . . . . . . . . . . 330
ARL - ASCII Read Line . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 331
ASC - String Search . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 333
ASR - ASCII String Compare . . . . . . . . . . . . . . . . . . . . . . . . . 334
Timing Diagram for ARD, ARL, AWA, and AWT Instructions . 336
Using In-line Indirection. . . . . . . . . . . . . . . . . . . . . . . . . . . . 336
ASCII Instruction Error Codes . . . . . . . . . . . . . . . . . . . . . . . . 337
ASCII Character Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
Chapter 20
Communications Instructions Messaging Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
SVC - Service Communications . . . . . . . . . . . . . . . . . . . . . . 344
MSG - Message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 346
The Message Element . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 347
Timing Diagram for the MSG Instruction . . . . . . . . . . . . . . . . 356
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
10 Table of Contents
Communication Servicing Selection and Message Servicing
Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 359
MSG Instruction Ladder Logic. . . . . . . . . . . . . . . . . . . . . . . . 360
Local Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
Configuring a Local Message . . . . . . . . . . . . . . . . . . . . . . . . 363
Local Messaging Examples . . . . . . . . . . . . . . . . . . . . . . . . . . 373
Remote Messages. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 388
Configuring a Remote Message. . . . . . . . . . . . . . . . . . . . . . . 391
Configuring a Multi-hop Remote Message on EtherNet/IP
Communication Channel . . . . . . . . . . . . . . . . . . . . . . . . . . . 394
Configuring a MicroLogix 1100 CIP Generic Message via Ethernet
(OS Series B FRN 4 or later) . . . . . . . . . . . . . . . . . . . . . . . . . 409
MSG Instruction Error Codes . . . . . . . . . . . . . . . . . . . . . . . . 414
Special Function with MSG instruction (OS Series B FRN 4 or
later) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 416
Configure MSG Setup Screen to send SMTP message. . . . . . . 422
Chapter 21
Recipe and Data Logging RCP - Recipe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 427
Data Logging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
Queues and Records . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 433
Configuring Data Log Queues . . . . . . . . . . . . . . . . . . . . . . . 437
DLG - Data Log Instruction . . . . . . . . . . . . . . . . . . . . . . . . . 439
Data Log Status File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 440
Retrieving (Reading) Records . . . . . . . . . . . . . . . . . . . . . . . . 442
Accessing the Retrieval File . . . . . . . . . . . . . . . . . . . . . . . . . 442
Conditions that Will Erase the Data Retrieval File . . . . . . . . . 444
Chapter 22
LCD - LCD Information LCD Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 445
LCD Function File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 446
LCD Function File Sub-Elements Summary . . . . . . . . . . . . . . 447
LCD Function File Sub-Elements. . . . . . . . . . . . . . . . . . . . . . 448
LCD - LCD Instruction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 453
Appendix A
MicroLogix 1100 Memory
Usage and Instruction
Execution Time
Programming Instructions Memory usage and Execution Time 457
MicroLogix 1100
Scan Time Worksheet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 462
Appendix B
System Status File Status File Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 466
Status File Details. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 467
Appendix C
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
Table of Contents 11
Fault Messages and Error
Codes
Identifying Controller Faults . . . . . . . . . . . . . . . . . . . . . . . . . 491
Contacting Rockwell Automation for Assistance. . . . . . . . . . . 499
Appendix D
Protocol Configuration DH-485 Communication Protocol . . . . . . . . . . . . . . . . . . . . 502
DF1 Full-Duplex Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . 505
DF1 Half-Duplex Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . 506
DF1 Radio Modem Protocol . . . . . . . . . . . . . . . . . . . . . . . . . 517
Modbus RTU Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 524
ASCII Driver. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 534
Ethernet Driver . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536
Appendix E
Knowledgebase Quick Starts # 17444 “Quick Start” Pulse Train Output (PTO) . . . . . . . . . . 539
# 17446 “Quick Start” Pulse Width Modulation (PWM) . . . . . . 542
# 17447 “Quick Start” High Speed Counter (HSC) . . . . . . . . . 544
# 17465 “Quick Start” Message (MSG) . . . . . . . . . . . . . . . . . . 548
# 17501 “Quick Start” Selectable Timed Interrupt (STI). . . . . . 551
# 17503 “Quick Start” Real Time Clock (RTC) . . . . . . . . . . . . 554
# 17558 “Quick Start” User Interrupt Disable (UID) . . . . . . . . 555
# 18465 “Quick Start” RTC Synchronization
Between Controllers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556
# 18498 “Quick Start” Data Logging (DLG) . . . . . . . . . . . . . . 559
Appendix F
How to Use 40kHz PTO/PWM
of MicroLogix 1100 Series B
Controller
Basic requirements to use 40KHz PTO and PWM in MicroLogix
Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 569
PTO and PWM function file changes in Series B Controller . . 569
RSLogix500 display issues. . . . . . . . . . . . . . . . . . . . . . . . . . . 570
Instruction issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 571
Appendix 23
Number Systems Binary Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579
Hexadecimal Numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581
Hex Mask . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
Appendix H
MicroLogix 1100 Firmware
Changes in OS Series B FRN 4
System Related. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585
Serial Communications Related . . . . . . . . . . . . . . . . . . . . . . . 585
Ethernet Communications Related. . . . . . . . . . . . . . . . . . . . . 586
Application Layer Related . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
Embedded IO Configuration Related . . . . . . . . . . . . . . . . . . . 588
Web-Server Related . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
RSLogix500 compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
12 Table of Contents
Glossary
Index
MicroLogix 1100 List of Instructions and Function Files
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
13 Publication 1763-RM001C-EN-P - October 2009
Chapter
1
I/O Configuration
This section discusses the various aspects of Input and Output features of
the MicroLogix 1100 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 13
MicroLogix 1100 Expansion I/O on page 15
MicroLogix 1100 Expansion I/O Memory Mapping on page 16
I/O Addressing on page 24
I/O Forcing on page 25
Input Filtering on page 25
Latching Inputs on page 28
Embedded I/O
The MicroLogix 1100 provide discrete I/O and analog input 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 1100
Controllers
1763-L16BWA 10 24V dc
discrete
6 relay
2 0~10V dc
analog
1763-L16AWA 10 120V ac 6 relay
2 0~10V dc
analog
1763-L16BBB 10 24V dc 2
2
2
relay
24V dc FET
high-speed
24V dc FET
2 0~10V dc
analog
1763-L16DWD 10 12/24Vdc 6
relay
2 0~10V dc
analog
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
14 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 input
interrupts, and latching inputs. The 1763-L16BBB has two high-speed
outputs for use as pulse train output (PTO) and/or pulse width
modulation (PWM) outputs.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
I/O Configuration 15
MicroLogix 1100
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
For the MicroLogix 1100, Bulletin 1762 expansion I/O is used to provide
discrete and analog inputs and outputs, and specialty modules. You can
attach up to four expansion I/O modules in any combination.
Addressing Expansion I/O Slots
The figure below shows the addressing for the MicroLogix 1100 and its
I/O.
The expansion I/O is addressed as slots 1 through 4 (the controller’s
embedded I/O is addressed as slot 0). Modules are counted from left to
right as shown below.
TIP
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 24 for complete information
on address formats.
Expansion I/O
Embedded I/O = Slot 0
Slot 1
Slot 2
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
16 I/O Configuration
MicroLogix 1100
Expansion I/O Memory
Mapping
Discrete I/O Configuration
1762-IA8 ,1762-IQ8, and 1762-IQ8OW6 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-IQ32T Input Image
For each input module, the input data file contains the current state of the
field input points. Bit positions 0…15 together with word 0/1 correspond
to input terminals 0…31.
r = read only
1762-OX6I and 1762-IQ8OW6 Output Image
For each output module, the output data file contains the
controller-directed state of the discrete output points. Bit positions 0
through 5 correspond to output terminals 0 through 5.
Word
Bit Position
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0xxxxxxxxrrrrrrrr
Word
Bit Position
1514131211109876543210
0rrrrrrrrrrrrrrrr
Word
Bit Position
1514131211109876543210
0rrrrrrrrrrrrrrrr
1rrrrrrrrrrrrrrrr
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
I/O Configuration 17
r/w = read and write, 0 = always at a 0 or OFF state
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
1762-OV32T, 1762-OB32T Output Image
For each output module, the output data file contains the
controller-directed state of the discrete output points. Bit positions 0…15
together with word 0/1 correspond to output terminals 0…31.
r/w = read and write
Word
Bit Position
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
00000000000r/wr/wr/wr/wr/wr/w
Word
Bit Position
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
000000000r/wr/wr/wr/wr/wr/wr/wr/w
Word
Bit Position
1514131211109876543210
0 r/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/w
Word
Bit Position
1514131211109876543210
0 r/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/w
1 r/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/wr/w
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
18 I/O Configuration
Analog I/O Configuration
The following table shows the data ranges for 0 to 10V dc and 4 to 20 mA.
1762-IF2OF2 Input Data File
For each input module, slot x, words 0 and 1 contain the analog values of
the inputs. The module can be configured to use either raw/proportional
data or scaled-for-PID data. The input data file for each configuration is
shown below.
The bits are defined as follows:
Sx = General status bits for channels 0 and 1. This bit is set when an
error (over- or under-range) exists for that channel, or there is a
general module hardware error.
Valid Input/Output Data Word Formats/Ranges
Normal Operating Range Full Scale Range Raw/Proportional Data Scaled-for-PID
0 to 10V dc 10.5V dc 32,760 16,380
0.0V dc 0 0
4 to 20 mA 21.0 mA 32,760 16,380
20.0 mA 31,200 15,600
4.0 mA 6240 3120
0.0 mA 0 0
Raw/Proportional Format
Word
Bit Position
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 Channel 0 Data 0 to 32,768 0 0 0
1 0 Channel 1 Data 0 to 32,768 0 0 0
2 reserved
3 reserved
4 reserved S1 S0
5 U0O0U1O1reserved
Scaled-for-PID Format
Word
Bit Position
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 Channel 0 Data 0 to 16,383 0 0
1 0 0 Channel 1 Data 0 to 16,383 0 0
2 reserved
3 reserved
4 reserved S1 S0
5 U0O0U1O1reserved
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
I/O Configuration 19
Ox = Over-range flag bits for channels 0 and 1. These bits can be
used in the control program for error detection.
Ux = Under-range flag bits for channels 0 and 1. These bits can be
used in the control program for error detection.
1762-IF2OF2 Output Data File
For each module, slot x, words 0 and 1 contain the channel output data.
1762-IF4 Input Data File
For each module, slot x, words 0 and 1 contain the analog values of the
inputs. The module can be configured to use either raw/proportional data
or scaled-for-PID data. The input data file for either configuration is
shown below.
The bits are defined as follows:
Sx = General status bits for channels 0 through 3. This bit is set when an error
(over- or under-range) exists for that channel, or there is a general module
hardware error.
Raw/Proportional Format
Word
Bit Position
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 Channel 0 Data 0 to 32,768 0 0 0
1 0 Channel 1 Data 0 to 32,768 0 0 0
Scaled-for-PID Format
Word
Bit Position
1514131211109876543210
0 0 0 Channel 0 Data 0 to 16,383 0 0
1 0 0 Channel 1 Data 0 to 16,383 0 0
1762-IF4 Input Data File
Word
Bit Position
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 SGN0 Channel 0 Data
1 SGN1 Channel 1 Data
2 SGN2 Channel 2 Data
3 SGN3 Channel 3 Data
4 reserved S3 S2 S1 S0
5U0 O0U1O1U2O2U3O3reserved
6 reserved
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
Publication 1763-RM001C-EN-P - October 2009
20 I/O Configuration
Ox = Over-range flag bits for channels 0 through 3. These bits are set when the
input signal is above the user-specified range. The module continues to
convert data to the maximum full range value during an over-range condition.
The bits reset when the over-range condition clears.
UIx = Under-range flag bits for input channels 0 through 3. These bits are set
when the input signal is below the user-specified range. The module continues
to convert data to the maximum full range value during an under-range
condition. The bits reset when the under-range condition clears.
SGNx = The sign bit for channels 0 through 3.
1762-OF4 Input Data File
For each module, slot x, words 0 and 1 contain the analog output module
status data for use in the control program.
The bits are defined as follows:
SOx = General status bits for output channels 0 through 3. This bit is
set when an error (over- or under-range) exists for that channel, or
there is a general module hardware error.
OOx = Over-range flag bits for output channels 0 through 3. These
bits indicate an input signal above the user range and can be used
in the control program for error detection. The module continues to
convert analog data to the maximum full range value while this bit is
set (1). The bit is reset (0) when the error clears.
UOx = Under-range flag bits for output channels 0 through 3. These
bits indicate an input signal below the user range. They can be used
in the control program for error detection. The module continues to
convert analog data to the minimum full range value while this bit is
set (1). The bit is reset (0) when the error clears.
1762-OF4 Input Data File
Word
Bit Position
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 Reserved SO3 SO2 SO1 SO0
1 Reserved UO0 OO0 UO1 OO1 UO2 OO2 UO3 OO3
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive
/