Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Micro800 Controllers
Migration Guide
(Catalog Number 2080 Bulletin)
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://www.rockwellautomation.com/literature/) 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.
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.
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, for example, a drive or motor, to alert people that
dangerous voltage may be present.
BURN HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that
surfaces may reach dangerous temperatures.
IMPORTANT Identifies information that is critical for successful application and understanding of the product.
Allen-Bradley, Rockwell Software, Rockwell Automation, MicroLogix, Micro800, Micro810, Micro820, Micro830, Micro850, Connected Components Workbench, RSLogix, and SLC are trademarks of
Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
Table of Contents
Chapter 1
Micro800 Controller Overview Controller Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
MicroLogix 1000 Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Micro820 Controllers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Micro830 Controllers – 10 and 16-Point Controllers . . . . . . . . . . . 12
Micro830 Controllers – 24 and 48-Point Controllers . . . . . . . . . . . 13
Feature and Specification Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Chapter 2
Select a Suitable Micro800 Controller Convert to a Micro820 Controller. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Convert to a Micro830 Controller. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Wiring Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
MicroLogix 1000 Controller Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Micro820 Controller Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Micro830 Controller Wiring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Chapter 3
Convert an RSLogix 500 Project to a Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Connected Components Workbench Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
What You Need . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Project
Generate an Existing RSLogix 500 Project Report. . . . . . . . . . . . . . . . . . . 34
Create Equivalent Program Files in
Connected Components Workbench. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Configure Interrupts on a Micro800 Controller (Example) . . . . . . 38
Create Representative Data Files in
Connected Components Workbench. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Set Up Embedded I/O Variables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Substitute Binary (B3) and Integer (N7) Data Files. . . . . . . . . . . . . . 41
Set Up Variables for Index Addressing . . . . . . . . . . . . . . . . . . . . . . . . . 42
Set Up High Speed Counter (HSC) Instruction Variables . . . . . . . 42
Create an Equivalent Program in
Connected Components Workbench. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Basic Ladder Programming Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Replicate the Ladder Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Program Index Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Program High Speed Counter (HSC) Instruction. . . . . . . . . . . . . . . 55
Program Timer On Delay (TON) Instruction . . . . . . . . . . . . . . . . . . 57
Build and Test the Connected Components Workbench Project. . . . . 59
MicroLogix to Micro800 Converter Tool . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Chapter 4
RLL Instruction Mapping Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
Definitions, Acronyms, and Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 69
Bit Shift . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
BSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
BSR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
MSG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
EQU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
NEQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
LES. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
LEQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
GRT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
GEQ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
LIM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Control. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
JMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
LBL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
RET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
SUS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
TND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
I/O Related Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
IIM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
IOM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Selectable Timed Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
STD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
STE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
STS. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
File Manipulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
COP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Math . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
ADD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
SUB . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
MUL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
DIV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
DDV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
NEG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
SQR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 118
Appendix A
Original and Converted Pick and Place RSLogix 500 Pick and Place Ladder Diagram . . . . . . . . . . . . . . . . . . . . . . 157
Ladder Diagrams Connected Components Workbench Ladder Diagram
(Converter Tool) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Tool Conversion Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Connected Components Workbench Ladder Diagram
(Manual Conversion) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164
Notes:
About This Publication This document serves as a guide for replacing your existing MicroLogix™ 1000
controller with either a Micro820™ controller or a Micro830® controller.
Micro820 and Micro830 controllers are included in the Micro800® family of
controllers.
After you have selected a suitable controller, refer to the conversion walk-through
in Chapter 3 to become familiar with the basic steps that a user needs to perform
with Micro820 and Micro830 controllers.
Audience The intended audience of this document is users of MicroLogix 1000 controllers
who are converting to either a Micro820 or Micro830 controller, and who are
familiar with the RSLogix™ 500 programming software. Knowledge of
programming in ladder language is expected to be able to program Micro800
systems effectively.
Required Software To complete the steps in this document, the following software are required:
The conversion tool can convert most RSLogix 500 instruction blocks.
However, you may need to modify converted function blocks in
Connected Components Workbench to ensure it performs properly. All
information that require additional user attention is logged in a conversion
report so that you can make the required changes.
Additional Resources These documents contain additional information concerning related products
from Rockwell Automation.
Resource Description
Micro800 Programmable Controllers General Instructions, Provides reference information about the instruction
publication 2080-RM001 set available for developing programs for use in
Micro800 Control systems.
Micro820 Programmable Controllers User Manual, A more detailed description of how to install and use
publication 2080-UM005 your Micro820 programmable controllers.
Micro830 and Micro850 Programmable Controllers User A more detailed description of how to install and use
Manual, publication 2080-UM002 your Micro830 and Micro850 programmable controllers.
Micro800 Plug-in Modules User Manual, Description of features, installation, wiring, and
publication 2080-UM004 specifications for the Micro800 plug-in modules.
Micro800 and Connected Components Workbench Getting Provides information about basic Micro800
Started Guide, publication 2080-QR001 programmable controllers and Connected Component
Workbench functions.
Micro800 and Connected Components Workbench Provides information about Micro800 programmable
Application Guide, publication 2080-QR002 controllers and Connected Component Workbench
functions.
Industrial Automation Wiring and Grounding Guidelines, More information on proper wiring and grounding
publication 1770-4.1 techniques.
Connected Components Workbench Online Help Online Help that provides a description of the different
elements of the Connected Components Workbench
software.
Micro800 controllers are designed for low-cost, standalone machines. These economical small-size programmable logic
controllers (PLCs) are available in different form factors based on the number of I/O points embedded in the base, with a
range of features intended to address different requirements.
The Micro800 family shares programming environment, accessories, and plug-ins that allow machine builders to
personalize the controller for specific capabilities.
Micro810® controllers function as a smart relay with high current relay outputs, but with the programming capabilities of a
micro PLC. The Micro810 controllers come in a 12-point form factor.
Micro820 controllers are specifically designed for smaller standalone machines and remote automation projects. They have
embedded Ethernet and serial ports and microSD™ slots for data logging and recipe management. These controllers come as
20-point form factors that can accommodate up to two plug-in modules. They also support the Micro800 Remote LCD
(2080-REMLCD) module for easier configuration of settings such as IP address. The Remote LCD module can also
function as a simple IP65 text display.
Micro830 controllers are designed for standalone machine control applications. They have flexible communications and
I/O capabilities with up to five plug-ins. They come as a 10-, 16-, 24-, or 48-point form factors.
Micro850® expandable controllers are designed for applications that require more digital and analog I/O or higher
performance analog I/O. They can support up to four expansion I/O. Micro850 controllers include additional
communication connection options through an embedded 10/100 Base-T Ethernet port.
Several Micro830 and Micro850 controllers support basic positioning through embedded pulse train outputs (PTO).
These controllers also allow you to configure up to six high speed counters (HSC), and choose from nine HSC operation
modes. HSC is supported on all Micro830 and Micro850 modules, except on the 2080-LCxx-xxAWB module. PTO is
only supported on Micro830 and Micro850 catalog numbers that end in BB or VB, for example the 2080-LCxxxxxx
catalog number.
Controller Dimensions
The following section illustrates MicroLogix 1000 controllers and their counterparts from the Micro800 family.
C C
A B
MicroLogix 1000 Controller Dimensions
Controller Catalog Number A: mm (in.) B: mm (in.) C: mm (in.)
1761-L10BWA 120 (4.72) 73 (2.87) 80 (3.15)
1761-L16AWA 133 (5.24)
1761-L16BWA 120 (4.72)
1761-L16NWA
1761-L20AWA-5A 133 (5.24)
1761-L20BWA-5A 200 (787)
1761-L32AWA
1761-L32BWA
1761-L32AAA
1761-L10BWB 120 (4.72) 40 (1.57)
1761-L10BXB
1761-L16BBB
1761-L16BWB
1761-L16NWB
1761-L20BWB-5A 200 (7.87)
1761-L32BBB
1761-L32BWB
Micro820 Controllers
90 (3.54)
90 (3.54)
90 (3.54) 90 (3.54)
Feature Comparison Between MicroLogix 1000 Controllers and Micro800 Family Controllers
Features MicroLogix 1000 Micro820 Micro830
Memory
Memory (in user words) 1 KB combined 10 K/ 20 KB 4 K/8 KB (10/16 point)
User program/User data (preconfigured) 10 K/ 20 KB (24/48 point)
Memory module (for program Through hand-held programmer Via microSD card Via plug-in module,
backup and transport) 2080-MEMBAK-RTC
Run Mode Change None Yes(1)
Inputs/ Outputs
Embedded Digital I/O, max 32 19 48
Embedded Analog I/O Two current and Two voltage inputs One 0…10V analog output Via plug-in modules
with one current or voltage output on Four 24V DC digital inputs can be
20 pt. controllers configured as 0…10V analog inputs
(DC input models only) and via plug-in
modules
Expansion I/O Supported None
Thermocouple/ RTD None Via plug-in module, 2080-RTD2, 2080-TC2
Networked Expansion I/O, max None Via plug-in module, 2080-DNET20, up to 20 nodes for I/O operation
Added Functionality
Trim potentiometers None Via plug-in module, 2080-TRIMPOT6
PID None Yes (number limited only by memory)
High Speed Counters One @ 6.6 kHz Via plug-in module, 2080-MOT-HSC Two @ 10/16 points,
(embedded) (Not supported on AC Input models) Four @ 24 points,
Six @ 48 points
(Not supported on
AC Input models)
Motion: PTO/ PWM Support None PWM only One @ 10/16 points,
One @ 5 kHz Two @ 24 points,
(Not supported on Three @ 48 points
Relay Output models) (Not supported on
Relay Output models)
Real-Time Clock None Embedded Via plug-in module,
2080-MEMBAK-RTC
Recipe Storage None Via microSD card None
Data Logging None Via microSD card None
Floating Point Math None 32 bit and 64 bit 32 bit and 64 bit
Operating Power
120/240 V AC Yes Via Power Supply module, 2080-PS120-240VAC
24V DC Yes
Communication
RS-232 Ports 8-pin mini DIN Embedded RS232/RS485 8-pin mini DIN RS232/RS485 Serial
Serial Port Combo Port Combo
Feature Comparison Between MicroLogix 1000 Controllers and Micro800 Family Controllers
Features MicroLogix 1000 Micro820 Micro830
DeviceNet Peer-to-peer None Via 2080-DNET Plug-in
Messaging, Slave I/O
EtherNet/IP With 1761-NET-ENI or Yes None
1761-NET-ENIW
DH-485 Network with 1761-NET-AIC N/A
SCADA RTU - DF1 Half-duplex Yes N/A
Slave
SCADA RTU - DF1 Radio N/A
Modem
SCADA RTU - Modbus RTU N/A Yes
Slave
SCADA RTU - Modbus RTU N/A Yes
Master
Modbus TCP N/A Yes N/A
ASCII - Read/Write N/A Yes
CIP Serial N/A Yes
(1) Requires Connected Components Workbench Developer Edition Release 8 and above and Micro800 Controller Firmware 8 and above.
Notes:
This section helps you determine how to select and wire a suitable Micro800
controller (either a Micro820 or a Micro830 controller) for your existing
MicroLogix 1000 controller wiring configuration.
IMPORTANT For applications that require High Speed Counter (HSC) function, migrate
to a Micro830 controller. Refer to Convert to a Micro830 Controller on
page 18 for more information.
Convert to a Refer to the following table to see the suitable Micro820 controller to replace
your MicroLogix 1000 controller. Click on a catalog number to see the applicable
Micro820 Controller wiring configuration.
IMPORTANT An external power supply is required when migrating from any 1761-L*A
controller to a Micro820 controller. For more information on the
2080-PS120-240VAC power supply, refer to publication 2080-IN001.
For more information on the 2080-OB4 digital output, refer to
publication 2080-WD011.
Convert to a Refer to the following table to see the Micro830 controller to replace your
MicroLogix 1000 controller. Click on a catalog number to see the applicable
Micro830 Controller wiring configuration.
IMPORTANT An external power supply is required when migrating from any 1761-L*A
controller to a Micro830 controller.
For more information on the 2080-PS120-240VAC power supply, refer to
publication 2080-IN001.
For more information on the 2080-IF4 analog input, refer to
publication 2080-WD003.
For more information on the 2080-OF2 analog output, refer to
publication 2080-WD004.
For more information on the 2080-OW4I relay output, refer to
publication 2080-WD010.
For more information on the 2080-OB4 digital output, refer to
publication 2080-WD011.
Wiring Configuration This section contains wiring diagrams for MicroLogix 1000, Micro820, and
Micro830 controllers.
14...30VDC
14...30VDC
VDC VDC (+) VDC VDC +
COM COM
NOT NOT DC I/0 I/1 I/2 I/3 DC I/4 I/5 NOT NOT NOT NOT
USED USED COM COM USED USED USED USED
DC IN
VAC VAC VAC VAC NOT NOT NOT
+ 24V -
VDC O/0 VDC O/1 VDC O/2 VDC O/3 USED USED USED
CR CR
1761-L16BWB
14...30VDC 14...30VDC
VDC VDC (+) VDC VDC +
COM COM
NOT NOT DC I/0 I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9
USED USED COM COM
DC IN
+ 24V - VAC VAC VAC VAC VAC
VDC O/0 VDC O/1 VDC O/2 VDC O/3 VDC O/4 O/5
CR CR CR CR
1761-L32BWB
NOT NOT DC I/0 I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 I/15 I/16 I/17 I/18 I/19
USED USED COM COM
NOT NOT DC I/0 I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 I/15 I/16 I/17 I/18 I/19
USED USED COM COM
1761-L10BWA
14...30VDC
VDC VDC +
VDC (+) COM
VDC
COM
+ 24V - DC I/0 I/1 I/2 I/3 DC I/4 I/5 NOT NOT NOT
COM COM USED USED USED
DC OUT
85...264 VAC
VAC VAC VAC VAC NOT NOT NOT
L1 L2/N VDC O/0 VDC O/1 VDC O/2 VDC O/3 USED USED USED
CR CR CR CR
1761-L16BWA
14...30V DC
VDC + VDC
COM VDC +
VDC
COM
+ 24V - DC I/0 I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9
COM COM
DC OUT
85...264 VAC
VAC VAC VAC VAC VAC
L1 L2/N VDC O/0 VDC O/1 VDC O/2 VDC O/3 VDC O/4 O/5
CR CR CR CR
1761-L16AWA
79...132V AC 79...132V AC
L2/N L1 L2/N L1
NOT NOT AC I/0 I/1 I/2 I/3 AC I/4 I/5 I/6 I/7 I/8 I/9
USED USED COM COM
85...264 VAC
VAC VAC VAC VAC VAC
L1 L2/N VDC O/0 VDC O/1 VDC O/2 VDC O/3 VDC O/4 O/5
CR CR CR CR
1761-L32AAA
79…132V AC 79…132V AC
L2/N L1 L2/N L1
NOT NOT AC I/0 I/1 I/2 I/3 AC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 I/15 I/16 I/17 I/18 I/19
USED USED COM COM
85…264 VAC
VAC VAC
L1 L2/N VDC O/0 VDC O/1 VAC O/2 O/3 VAC O/4 O/5 O/6 O/7 VAC O/8 O/9 O/10 O/11
CR CR CR CR CR CR CR CR CR CR
1761-L32AWA
79…132V AC 79…132V AC
L2/N L1 L2/N L1
NOT NOT AC I/0 I/1 I/2 I/3 AC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 I/15 I/16 I/17 I/18 I/19
USED USED COM COM
85…264 VAC
VAC VAC VAC VAC VAC
L1 L2/N VDC O/0 VDC O/1 VDC O/2 O/3 VDC O/4 O/5 O/6 O/7 VDC O/8 O/9 O/10 O/11
CR CR CR CR CR CR CR CR CR CR
1761-L32BWA
14…30 V DC
VDC + VDC VDC +
Com
VDC
Com
+ 24V – DC I/0 I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 I/15 I/16 I/17 I/18 I/19
COM COM
DC OUT
85…264 VAC
VAC VAC VAC VAC VAC
L1 L2/N VDC O/0 VDC O/1 VDC O/2 O/3 VDC O/4 O/5 O/6 O/7 VDC O/8 O/9 O/10 O/11
CR CR CR CR CR CR CR CR CR CR
1761-L10BXB
14...30 VDC 14...30 VDC
VDC VDC VDC VDC
COM COM
NOT NOT DC I/0 I/1 I/2 I/3 DC I/4 I/5 NOT NOT NOT NOT
USED USED COM COM USED USED USED USED
SUPR
SUPR
SUPR
CR CR
VDC
VDC
COM
1761-L16BBB
14...30VDC 14...30VDC
VDC VDC (+) VDC VDC +
COM COM
NOT NOT DC I/0 I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9
USED USED COM COM
DC IN
+ 24V - VAC VAC DC DC NOT
VDC O/0 VDC O/1 24V+ O/2 O/3 O/4 O/5 24V - USED
CR
1761-L20BWA-5A
14…30V DC Analog
Channels
VDC (–) VDC (+)
VDC (+)
VDC (–)
+ 24V – DC I/0 I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 IA IA/0 IA/1 IA IA IA/2 IA/3 IA
COM COM SHD V (+) V (+) (–) SHD I (+) I (+) (–)
DC OUT
85…264 VAC
VAC VAC VAC VAC NOT OA OA/0 OA/0 OA
L1 L2/N VDC O/0 VDC O/1 VDC O/2 O/3 VDC O/4 O/5 O/6 O/7 USED SHD V (+) I (+) (–)
CR CR CR CR CR CR
Analog
Channel
VAC 2 VDC 1 VDC 2
VAC 2 VDC 1 VDC 2
VAC 1 COM COM COM
VAC 1
COM
1761-L20AWA-5A
79…132V AC Analog
79…132V AC
Channels
L2/N L1 L2/N L1
NOT NOT AC I/0 I/1 I/2 I/3 AC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 IA IA/0 IA/1 IA IA IA/2 IA/3 IA
USED USED COM COM SHD V (+) V (+) (–) SHD I (+) I (+) (–)
85…264 VAC
VAC VAC VAC VAC NOT OA OA/0 OA/0 OA
L1 L2/N VDC O/0 VDC O/1 VDC O/2 O/3 VDC O/4 O/5 O/6 O/7 USED SHD V (+) I (+) (–)
CR CR CR CR CR CR
Analog
Channel
1761-L20BWB-5A
79...132V AC Analog
79...132V AC
channels
L2/N L1 L2/N L1
NOT NOT AC I/0 I/1 I/2 I/3 AC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 IA IA/0 IA/1 IA IA IA/2 IA/3 IA
USED USED COM COM SHD V (+) V (+) (–) SHD I (+) I (+) (–)
85...264 VAC
VAC VAC VAC VAC NOT OA OA/0 OA/0 OA
L1 L2/N VDC O/0 VDC O/1 VDC O/2 O/3 VDC O/4 O/5 O/6 O/7 USED SHD V (+) I (+) (–)
CR CR CR CR CR CR
Analog
channel
1761-L32BBB
Sinking Configuration Sourcing Configuration
14…30V DC 14…30V DC
VDC VDC + VDC + VDC
Com Com
NOT NOT DC I/0 I/1 I/2 I/3 DC I/4 I/5 I/6 I/7 I/8 I/9 I/10 I/11 I/12 I/13 I/14 I/15 I/16 I/17 I/18 I/19
USED USED COM COM
Sourcing Outputs
CR
-DC a
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-DC24 I-01 I-03 I-04 I-06 I-08 I-10 NU
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-DC24 VO-0 CM0 CM1 CM2 O-03 O-04 O-06
CR CR CR CR
+DC c
-DC a
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-DC24 I-01 I-03 I-04 I-06 I-08 I-10 NU
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-DC24 VO-0 CM0 CM1 CM2 O-03 O-04 O-06
CR CR CR CR
+DC c
1 2 3 4 5 6 7 8 9 10 11 12
I-00 I-02 COM1 I-05 NC NC
1 2 3 4 5 6 7 8 9 10 11 12
-DC24 O-00 O-01 O-02 O-03 NC
CR CR
+DC c
L1 a L1 b +DC d
-DC c
L2 a L2 b -DC d
High speed inputs and outputs are indicated by .
2080-LC30-16QWB
1 2 3 4 5 6 7 8 9 10 11 12
I-00 I-02 COM1 I-05 I-07 I-09
1 2 3 4 5 6 7 8 9 10 11 12
-DC24 O-00 O-01 O-02 O-03 O-05
CR CR CR CR
+DC c
L1 a L1 b +DC d
-DC c
L2 a L2 b -DC d
High speed inputs and outputs are indicated by
2080-LC30-24QWB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-00 I-02 COM1 I-05 I-07 I-09 I-11 I-13
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-DC24 O-00 O-01 O-02 O-03 CM3 O-07 O-09
CR CR CR CR CR
+DC c
L1 a L1 b +DC d
-DC c
L2 a L2 b -DC d
High speed inputs and outputs are indicated by .
2080-LC30-48QWB
DC Sinking Inputs - Inputs 00...27
+DC a +DC b +DC c +DC d
-DC a -DC b -DC c -DC d
COM0 I-01 I-03 I-05 I-06 I-08 I-10 COM2 I-13 I-15 I-17 I-19 I-20 I-22 I-24 I-26
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-00 I-02 I-04 COM1 I-07 I-09 I-11 I-12 I-14 I-16 I-18 COM3 I-21 I-23 I-25 I-27
+DC24 CM0 CM1 CM2 CM3 CM4 CM5 CM6 CM7 O-08 O-10 CM8 O-13 O-15 O-16 O-18
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-DC24 O-00 O-01 O-02 O-03 O-04 O-05 O-06 O-07 O-09 O-11 O-12 O-14 CM9 O-17 O-19
CR CR CR CR CR CR CR CR CR CR CR CR
+DC e
+DC j +DC k
-DC e L1 a L1 b L1 c +DC f +DC g +DC h
2080-LC30-16AWB
L1 a L1 b
L2 a L2 b
1 2 3 4 5 6 7 8 9 10 11 12
I-00 I-02 COM1 I-05 I-07 I-09
1 2 3 4 5 6 7 8 9 10 11 12
-DC24 O-00 O-01 O-02 O-03 O-05
CR CR CR CR
+DC a
L1 c L1 d +DC b
-DC a
L2 c L2 d -DC b
2080-LC30-48AWB
L1 a L1 b L1 c L1 d
L2 a L2 b L2 c L2 d
COM0 I-01 I-03 I-05 I-06 I-08 I-10 COM2 I-13 I-15 I-17 I-19 I-20 I-22 I-24 I-26
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-00 I-02 I-04 COM1 I-07 I-09 I-11 I-12 I-14 I-16 I-18 COM3 I-21 I-23 I-25 I-27
+DC24 CM0 CM1 CM2 CM3 CM4 CM5 CM6 CM7 O-08 O-10 CM8 O-13 O-15 O-16 O-18
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-DC24 O-00 O-01 O-02 O-03 O-04 O-05 O-06 O-07 O-09 O-11 O-12 O-14 CM9 O-17 O-19
CR CR CR CR CR CR CR CR CR CR
+DC a
+DC g L1 g
-DC a L1 e L1 f +DC b +DC c +DC d +DC e
2080-LC30-48QBB
DC Sinking Inputs - Inputs 00...27
+DC a +DC b +DC c +DC d
-DC a -DC b -DC c -DC d
COM0 I-01 I-03 I-05 I-06 I-08 I-10 COM2 I-13 I-15 I-17 I-19 I-20 I-22 I-24 I-26
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
I-00 I-02 I-04 COM1 I-07 I-09 I-11 I-12 I-14 I-16 I-18 COM3 I-21 I-23 I-25 I-27
+DC24 +CM0 O-01 O-03 +CM1 O-05 O-07 O-09 +CM2 O-11 O-13 O-15 +CM3 O-17 O-19 NC
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-DC24 O-00 O-02 -CM0 O-04 O-06 O-08 -CM1 O-10 O-12 O-14 -CM2 O-16 O-18 -CM3 NC
+DC e +DC f
+DC g
+DC i
-DC e -DC f -DC g +DC h -DC h -DC i
Overview
This chapter illustrates two ways that you can convert an existing RSLogix 500 project to a Connected Components
Workbench project for your Micro800 controller: manually, and using the MicroLogix 1000 to Micro800 Converter Tool.
For reference, we use an RSLogix 500 Pick and Place Machine application as an example and convert it to a Connected
Components Workbench project for a Micro830 controller (Catalog Number 2080-LC30-16QWB). Not all steps may be
applicable for your project. You can use the instructions as a guide and make changes depending on the type of your
controller and on the application you are converting.
Refer to Chapter 4 for information about the functional difference between the Relay Ladder Logic instructions of the
RSLogix 500 software and the Connected Components Workbench software.
For more information about using the Connected Components Workbench software, refer to the following:
• Micro800 and Connected Components Workbench Getting Started Guide, publication 2080-QR001
• Micro800 and Connected Components Workbench Application Guide, publication 2080-QR002
• Connected Components Workbench Help
The general steps for conversion using the MicroLogix 1000 to Micro800 Converter Tool can be summarized as follows:
• Download and Install the MicroLogix to Micro800 Converter Tool
• Save the RSLogix 500 Project as an SLC File
• Run the MicroLogix to Micro800 Converter Tool
• Convert the SLC File to a Connected Components Workbench Project
Before You Begin Ensure that you have properly installed the Connected Components Workbench
software, revision 8 or later.
What You Need The following are needed for this procedure:
• Connected Components Workbench revision 8 or later
• Firmware revision 8 or later
Generate an Existing The RSLogix 500 report for your application contains information such as a
program file list, a data file list, and ladder diagrams. This information is used as
RSLogix 500 Project Report reference when creating a program in Connected Components Workbench.
Create Equivalent Program Create the equivalent program files in Connected Components Workbench for
your RSLogix 500 project.
Files in Connected
Components Workbench 1. Open the Connected Components Workbench software.
2. On the Device Toolbox, select a Micro800 controller, and then double-
click it or drag it to the Project Organizer panel.
Click the + symbol to expand the folders and locate a specific Micro800
controller.
You are then asked to select the Micro800 revision to add to the project.
3. For this example, select 8 from the Major revision drop-down, and then
click the OK button.
5. Repeat the previous step until you have added the same number of
program files present in the RSLogix 500 application.
6. Rename the added ladder diagrams following the names of the program
files in the RSLogix 500 application.
This section shows how you can replicate the equivalent program files for
the RSLogix 500 project in Connected Components Workbench.
However, only the Ladder 2 program (MAIN_PROG) is needed for the
rest of this guide.
TIP You can change the order of program execution by dragging and
dropping each program on the Project Organizer panel
accordingly.
Note that users have to determine which ladder files have programed rungs
in them.
In this example, Ladder files 3 to 5 are interrupt files. If any of the ladder
files have ladder logic in them, the ladder logic needs to be converted.
Specific interrupts must also be configured in Connected Components
Workbench and the program file must be assigned to that interrupt. Refer
to Configure Interrupts on a Micro800 Controller (Example) on page 38
for more information.
Ladder files 6-15 are subroutine files which, if there is logic in them, must
be called from ladder file 2 using a JSR instruction (not supported in
Connected Components Workbench). You can incorporate the ladder
logic from the subroutine file into the MAIN_PROG program or create a
UDFB program that performs the function of the subroutine file and call
the UDFB program from within the MAIN_PROG program.
7. Go to File → Save Project As.
Enter the name and location for this project, and then click the OK
button.
3. On the lower left of the tab, expand Controller, and then click Interrupts.
Create Representative Data Using the report generated as reference, create representative data files in
Connected Components Workbench by setting up the variables for the project.
Files in Connected
Components Workbench In this pick and place application example, the following data files are used:
• Output (O0)
• Input (I1)
• Binary (B3)
• Integer (N7)
In this pick and place application example, Index Addressing is used to store the
encoder counts of the bin locations (total 8 bins).
The section shows the steps for setting up the variables needed for programming
Index Addressing in Connected Components Workbench. Programming steps
are shown in Program Index Addressing on page 52.
The controller uses Indexed Addressing to locate the correct encoder count from
the data table N7[10] to N7[17] and load the information into the high preset of
the high-speed counter.
The HSC instruction is required to allow the HSC parameters (N7[0] to N7[4])
to be loaded for the same instruction:
The number of pulses the head needs to travel to reach each bin location is stored
in a data table starting at address N7 [10] and ending at N7 [17]. This is entered
under the Initial Value field so that it is used as the value of a variable when a
controller starts execution for the first time, such as after a program download.
Create an Equivalent The following are instructions used in MicroLogix 1000 for this pick and place
application example:
Program in Connected
• XIC, XIO, OTE, RES, OUT, OTL, and TON
Components Workbench • GRT and NEQ
• MOV
• HSC and HSL
The RES and HSL instructions are not supported by Connected Components
Workbench.
In this application, Index Addressing is used to store the encoder counts of the
bin locations (total 8 bins).
This section walks you through on how to work with the Index Addressing, as
well as High Speed Counter and Timer On-Delay instruction sets in Connected
Components Workbench.
Refer to the following instructions to familiarize yourself with the basic tasks for
creating ladder diagrams in Connected Components Workbench before
proceeding with the succeeding sections.
• Add a Rung on page 45
• Add Ladder Diagram Elements on page 46
• Add an Instruction Block on page 47
• Modify Instruction Parameters on page 49
• Add Comments on page 50
Add a Rung
1. On the Project Organizer panel, double-click the program for which you
want to modify the ladder diagram. (For example, MAIN_PROG)
3. Select the row of the instruction that you want to add. (For example, + for
Addition instruction)
Add Comments
2. Enter a comment.
Using the instructions in Basic Ladder Programming Tasks on page 44, replicate
the following ladder diagram as shown in the report.
In the RSLogix 500 project, Index Register is utilized to select the proper bin
location from the table starting at N7:10. In Connected Components
Workbench, we replace it with N7[10], which was created earlier.
On the Toolbox panel, drag Instruction Block into the blank rung and
select MOV from the Instruction Block Selector window.
i1 = Output_Value
i2 = Base_Address
o1= Offset_Address
instruction block.
i1 = N7[Offset_Value]
o1 = N7[2]
This instruction block allows the program to move the data selected based
on the Offset_Address to N7[2].
In RSLogix 500, HSL instruction is required to configure the low and high
presets, the output patterns, and mask bit patterns.
For more information, refer to Chapter 8 - Use the High-Speed Counter and
Programmable Limit Switch of the Micro830 and Micro850 Programmable
Controllers User Manual, publication 2080-UM002.
1. Add a new rung. This is used to add the HSC (High Speed Counter)
instruction block.
2. On the blank rung, add the HSC instruction block with the following
parameters:
3. Add a new rung. This is used to add the ANY_TO_UDINT and MOV
instruction blocks.
4. On the blank rung, add the HSC and MOV instruction blocks with the
following parameters:
Ensure that proper values for the variables OFSetting, HPSetting, and
UFSetting are set before triggering Start/Run for the HSC. Otherwise, the
controller is faulted. Setting a value for LPSetting is optional for certain
counting modes.
The following rung shows the data assignment to the required HSC parameters.
Before enabling the HSC function block, make sure the HscCmd has been set to
a valid value between 1 and 4. Otherwise, the controller (Micro800) is faulted.
The RSLogix 500 project also uses an on-delay timer. This section shows you
how to set up the TON instruction in Connected Components Workbench.
1. Add a new rung. This is used to add the TON (On-delay timing)
instruction block.
2. On the blank rung, add the TON instruction block with the following
parameters:
3. Add a new rung. This is used to add the Timer Done bit.
4. On the blank rung, add the following elements and their respective
variables:
For more information, see Add Ladder Diagram Elements on page 46.
The graphic below shows the converted rung that is using the On-delay timer
instruction in Connected Components Workbench:
Build and Test the After you have created the equivalent program, build and test the Connected
Components Workbench project.
Connected Components
Workbench Project 1. Build the project by selecting Device → Build from the menu bar.
The Output window displays. The build result should show 0 error.
5. Click Yes to put the Controller into RUN mode to test the program.
6. On the Project Organizer panel, double-click on Main_PROG to show
the ladder program.
Active rungs are displayed in red and inactive rungs in blue. You can
monitor the live values in the program.
MicroLogix to Micro800 Alternatively, the Pick and Place application can be converted using the
MicroLogix 1000 to Micro800 Converter Tool for Connected Components
Converter Tool Workbench.
The benefits of using the tool would be faster conversion time and the
instructions have similar input/output parameters as MicroLogix instructions.
However, take note that there would be larger memory consumption by the User-
Defined Function Block (UDFB) programs. Refer to Notes on the Converted
Pick and Place Application on page 66 for more information.
The general steps for conversion using the MicroLogix to Micro800 Converter
Tool can be summarized as follows:
• Download and Install the MicroLogix to Micro800 Converter Tool
• Save the RSLogix 500 Project as an SLC File
• Run the MicroLogix to Micro800 Converter Tool
• Convert the SLC File to a Connected Components Workbench Project
1. Using the same Pick and Place project in RSLogix 500 (named as Pick and
Place in this example), export the project in SLC™ format.
Follow these field settings:
• Save as type - Library Files (*.SLC)
• Export database - selected
• Export file types - Logix
There are two ways to run the MicroLogix to Micro800 Converter tool:
• From the Connected Components Workbench menu bar
Select Tools → MicroLogix Library Conversion.
Argument Description
SourceSlcFilePath Provides the path to the .slc file to be converted.
TargetCatalogID Specifies the Catalog ID for the target controller.
optionConcatenate Has a value of either True or False. Determines
Comment whether or not the instruction description is shortened
to just the comment.
In the following example, the SLC file named Pick and Place is being
converted for use with a Micro830 controller with the catalog number
2080-LC30-16QWB and the instruction descriptions should not be
concatenated.
Refer to the converter tool help for more information about the fully
supported, partially supported, and unsupported MicroLogix 1000
instructions.
• At the end of the conversion process results are displayed in Output and
Error List windows, in addition to being stored in the conversion log file.
The Error List window provides information about the items in that did
not completely convert from your source project to your new project.
The Output window displays the location of the Conversion Report in CSV
format, where you can find all information from the Error list.
Once no errors are encountered and all warnings have been addressed, save the
project and test to see if it has the desired behavior.
Refer to Appendix A to view the Pick and Place project in RSLogix 500 and in
Connected Components Workbench after using the converter tool.
Overview The purpose of this chapter is to identify the functional difference between the
RLL instructions of the RSLogix 500 and Connected Components Workbench
software. The RSLogix 500 software is a ladder logic programming package for
the SLC™ 500 and MicroLogix processors. On the other hand, Connected
Components Workbench is used to develop programs for Micro800 controllers.
The comparison only points out the logic and behavioral differences and does
not explain each instruction in detail. Please refer to the reference manual for
more details.
Definitions, Acronyms, and Refer to the following table for definitions of terms used in this chapter.
Abbreviations Term Definition
RLL Relay Ladder Logic
CCW Connected Components Workbench
MSB Most Significant Bit
Description
Instruction Parameters
CCW Limitations
Behavioral Differences
1. The CCW SHL instruction shifts a single 32 bit data field. But the
RSLogix BSL instruction can shift any size of bits; say (34 or 48 bit field
sizes) by 1.
Example: With the below ladder example, the program will shift a 34 bit
data field from the B3 data file:
2. Bits continue to shift until the MSB reaches the 15th bit position in the
Binary Data File
3. The shift operation clears the index register S:24 to zero.
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
RTC
LCD
PLS
BHI
STI
Bit
EII
ST
N
O
B
S
L
I
File • • • • • • • • • •
Control (2) • •
Length • •
Source • • • • • • • • •
(1)
See Important note about indirect addressing.
(2)
Control file only. Not valid for Timers and Counters.
IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
IN •
NbS •
ENO
SHL • •
BSR
Description
Instruction Parameters
CCW Limitations
Behavioral Differences
1. The CCW SHR instruction shifts a single 32 bit data field. But the
RSLogix BSR instruction can shift any size of bits; say (34 or 48 bit field
sizes) by 1.
Example: With the below ladder example, the program will shift a 34 bit
data field from the B3 data file:
2. The number of bits in the bit array, up to 1680 bits. A length value of 0
causes the input bit to be transferred to the UL bit.
3. The shift operation clears the index register S:24 to zero.
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
RTC
LCD
PLS
BHI
STI
Bit
EII
ST
N
O
B
S
F
L
I
File • • • • • • • • • •
Control (2) • •
Length • •
Source • • • • • • • • •
(1)
See Important note about indirect addressing.
(2)
Control file only. Not valid for Timers and Counters.
IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
TIME
REAL
UINT
DINT
SINT
LINT
INT
EN •
IN •
NbS •
ENO
SHL • •
Communication MSG
Communication Considerations
Refer to below chart for serial port and EtherNet/IP communications from
MicroLogix 1000 controllers to Micro820/Micro830 controllers:
Note: In some applications where DH485/ DF1 is required and Modbus RTU
does not fit, user have the choice to migrate MicroLogix 1000 to
MicroLogix 1100 or MicroLogix 1200.
The following table lists the communication protocols supported by the Modbus
and CIP message function blocks.
Comparison The MicroLogix supported data types for EQU, NEQ, GRT, LES, GEQ and
LEQ are as follows:
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
HSC(3)
RI/RIX
Direct
T, C, R
Word
MMI
LCD
RTC
PLS
BHI
STI
Bit
ST
EII
N
O
B
S
L
I
Source A • • • • • • • • • • • • • • • • • • • • • • • • •
Source B • • • • • • • • • • • • • • • • • • • • • • • • •
(1) PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit.
(2)
See Important note about indirect addressing.
(3)
Only use the High Speed Counter Accumulator (HSC.ACC) for Source A in GRT, LES, GEQ and LEQ instructions.
IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
EQU
Description
Instruction Parameters
CCW Limitations
Behavioral Differences
None
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • • • • • • • • • • •(1) • •
i2 • • • • • • • • • • • • • • •(1) • •
ENO •
o1 •
(1)
The Time input applies to the ST, LD and FBD languages.
NEQ
Description
Instruction Parameters
CCW Limitations
Behavioral Differences
None
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • • • • • • • • • • • • •
i2 • • • • • • • • • • • • • • • • •
ENO •
o1 •
LES
Description
This instruction checks whether one value is less than another value.
Instruction Parameters
CCW Limitations
Behavioral Differences
None
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • • • • • • • • • • • •
i2 • • • • • • • • • • • • • • • •
ENO •
o1 •
LEQ
Description
This instruction checks whether one value is less than or equal to another value.
Instruction Parameters
CCW Limitations
Behavioral Differences
None
Data Types
Immediate
Parameter
DWORD
STRING
LWORD
WORD
UDINT
USINT
LREAL
Direct
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • • • • • • • • • • •(1) • •
i2 • • • • • • • • • • • • • • •(1) • •
ENO •
o1 •
(1)
The Time input applies to the ST, LD and FBD languages.
GRT
Description
This instruction checks whether one value is greater than another value.
Instruction Parameters
CCW Limitations
Behavioral Differences
None
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • • • • • • • • • • • • •
i2 • • • • • • • • • • • • • • • • •
ENO •
o1 •
GEQ
Description
This instruction checks whether one value is greater than or equal to another
value.
Instruction Parameters
CCW Limitations
Behavioral Differences
None
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • • • • • • • • • • • • •
i2 • • • • • • • • • • • • • • • • •
ENO •
o1 •
LIM
Description
This instruction is used to compare a value with defined lower and upper limits.
Instruction Parameters
CCW Limitations
Behavioral Differences
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
RTC
LCD
PLS
BHI
STI
Bit
EII
ST
N
O
B
S
L
I
Low Limit • • • • • • • • • • • • • • • • • • • • • • • • •
Test • • • • • • • • • • • • • • • • • • • • • • • • •
High Limit • • • • • • • • • • • • • • • • • • • • • • • • •
(1)
PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit.
(2) See Important note about indirect addressing.
IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
TIME
REAL
UINT
DINT
SINT
LINT
INT
EN •
H •
X •
L •
EPS •
QH • •
Q •
QL •
Control JMP
Description
Jump to label.
Instruction Parameters
CCW Limitations
None
Behavioral Differences
None
Not applicable
LBL
Description
Labels are used as a target for jump instructions or to control the execution of the
diagram.
Instruction Parameters
CCW Limitations
None
Behavioral Differences
None
Not applicable
RET
Description
This output instruction marks the end of subroutine execution or the end of the
subroutine file.
Instruction Parameters
CCW Limitations
None
Behavioral Differences
None
Not applicable
SUS
Description
Instruction Parameters
CCW Limitations
Behavioral Differences
Not applicable
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN/ENABLE •
SusID •
ENO •
TND
Description
Instruction Parameters
CCW Limitations
None
Behavioral Differences
When using a MicroLogix 1000 controller do not execute this instruction from
the user error fault routine (file 3), high-speed counter interrupt routine (file 4),
or selectable timed interrupt routine (file 5), because a fault (major fault 0035)
will occur.
Not applicable
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
TND •
ENO •
Description
This instruction is used to update the input data without waiting for the next
input scan to begin.
Instruction Parameters
CCW Limitations
1. Does not allow masking of the data bits that are read from the input slot.
2. Cannot specify individual words in a particular slot.
Behavioral Differences
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
LCD
RTC
PLS
BHI
STI
Bit
EII
ST
N
O
B
S
L
I
Slot • • • •
Mask • • • • • • • • •
Length •
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN/ENABLE •
InputType •
InputSlot •
Sts •
ENO •
IOM
Description
This instruction is used to update the outputs without waiting for the next
output scan.
Instruction Parameters
CCW Limitations
1. Does not allow masking of the data bits that are written to the output slot.
2. Cannot specify individual words in a particular slot.
Behavioral Differences
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
LCD
RTC
PLS
BHI
STI
Bit
EII
ST
N
O
B
S
L
I
Slot • • • •
Mask • • • • • • • • •
Length •
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN/ENABLE •
OutputType •
OutputSlot •
Sts •
ENO •
Instruction Parameters
CCW Limitations
None
Behavioral Differences
None
Not applicable
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
IRQType •
UID •
STE
Description
Instruction Parameters
CCW Limitations
None
Behavioral Differences
None
Not applicable
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
IRQType •
UID •
STS
Description
Instruction Parameters
CCW Limitations
None
Behavioral Differences
The file number and setpoint is entered into the status file (S:31 and S:30).
Not applicable
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
TIME
REAL
UINT
DINT
SINT
LINT
INT
EN/ENABLE •
IRQType •
SetPoint •
STIS •
Description
Instruction Parameters
CCW Limitations
If the source or destination is a String data type, the other party must also be a
String data type, or a USINT (UCHAR and BYTE) data type. If it is not, a data
type mismatch will be reported.
Behavioral Differences
The maximum length that can be copied depending on data type is as follows:
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
RTC
LCD
PLS
BHI
STI
Bit
EII
ST
N
O
A
S
L
I
Source • • • • • • • • • • • • •
Destination • • • • • • • • • • • • •
Length •
(1)
See Important note about indirect addressing.
IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN/ENABLE •
Src • • • • • • • • • • • • • • • • • •
SrcOffst •
Dest • • • • • • • • • • • • • • • • •
DestOffset •
Length •
Swap •
STS •
ENO •
Math The MicroLogix supported data types for ADD, SUB, MUL, DIV, NEG and
CLR are as follows:
Math Instructions (ADD, SUB, MUL, DIV, NEG, CLR) Valid Addressing Modes and File Types
Address
Data Files Function Files(1) Address Level
Mode(3)
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
RTC
LCD
PLS
BHI
STI
Bit
ST
EII
N
O
B
S
L
I
Source A • • • • • • • • • • • • • • • • • • • • • • • • • •
Source B • • • • • • • • • • • • • • • • • • • • • • • • • •
Destination • • • • • • • • • • • • • • • • • • • •
(1)
PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit.
(2)
The Data Log Status file can only be used for the following math instructions: ADD, SUB, MUL, DIV, NEG, and SCP.
(3)
See Important note about indirect addressing.
IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
ADD
Description
Instruction Parameters
CCW Limitations
Only supports same data types for both input and output.
Behavioral Differences
1. If the destination bit receives a value less than -32,768 or greater than
+32,767 (a number that requires more than 16 bits to represent), the
processor sets S:0/1 (overflow bit) and S:5/0 (overflow trap bit, major
error 0020). Bit S:5/0 in the program can be monitored.
If this bit is not set and an underflow or overflow conditions occurs, the
destination address will contain a 32767 (if the result is positive) or -32768
(if the result is negative).
2. This instruction impacts the status flags in the following way:
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
TIME
REAL
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • • • • • • • • • • • •
i2 • • • • • • • • • • • • • • • •
o1 • • • • • • • • • • • • • • • •
ENO •
SUB
Description
Instruction Parameters
CCW Limitations
Only supports same data types for both input and output.
Behavioral Differences
1. If the destination bit receives a value less than -32,768 or greater than
+32,767 (a number that requires more than 16 bits to represent), the
processor sets S:0/1 (overflow bit) and S:5/0 (overflow trap bit, major
error 0020). Bit S:5/0 in the program can be monitored.
If this bit is not set and an underflow or overflow conditions occurs, the
destination address will contain a 32767 (if the result is positive) or -32768
(if the result is negative).
2. This instruction impacts the status flags in the following way:
For this instruction the source has to be a word (16 bits), so all relevant data types
with word sizes are supported.
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
TIME
REAL
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • • • • • • • • • • •
i2 • • • • • • • • • • • • • • •
o1 • • • • • • • • • • • • • • •
ENO •
MUL
Description
Instruction Parameters
CCW Limitations
Only supports same data types for both input and output.
Behavioral Differences
1. If a value greater than +32,767 is returned, a minor error flag is set, and the
value 32,767 is placed in the destination. For MicroLogix processor if the
S:2/14 (math overflow selection bit) set, then the unsigned, truncated,
least significant 16 bits of the overflow value remains in the destination.
The math register contains the 32-bit signed integer result of the multiply
operation. This result is valid at overflow.
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
TIME
REAL
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • • • • • • • • • •
i2 • • • • • • • • • • • • • •
o1 • • • • • • • • • • • • • •
ENO •
DIV
Description
Instruction Parameters
CCW Limitations
1. Only supports same data types for both input and output.
2. The value stored in the destination is NOT rounded.
Behavioral Differences
1. If a value greater than +32,767 is returned, a minor error flag is set, and the
value 32,767 is placed in the destination. However, if you are using a Series
C or later MicroLogix processor and have S:2/14 (math overflow selection
bit) set, then the unsigned, truncated least significant 16 bits of the
overflow remains in the destination.
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
TIME
REAL
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • • • • • • • • • •
i2 • • • • • • • • • • • • • •
o1 • • • • • • • • • • • • • •
ENO •
DDV
Description
Instruction Parameters
CCW Limitations
1. Only supports same data types for both input and output.
2. The value stored in the destination is NOT rounded.
Behavioral Differences
1. If the value of the quotient is greater than 32767, then the overflow flag is
set and the value 32767 is placed in the destination. In normal cases the
quotient is rounded.
2. The math register initially contains the dividend of the DDV operation.
Upon execution the unrounded quotient is placed in the most significant
word of the math register. The remainder is placed in the least significant
word of the math register.
3. This instruction impacts the status flags in the following way:
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
TIME
REAL
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • • • • • • • • • •
i2 • • • • • • • • • • • • • •
o1 • • • • • • • • • • • • • •
ENO •
NEG
Description
Instruction Parameters
CCW Limitations
Both the input and the output must be of the same data type.
Behavioral Differences
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • •
o1 • • • • • •
ENO •
SQR
Description
Instruction Parameters
CCW Limitations
Behavioral Differences
1. For MicroLogix 1000 processors constants are invalid for the source
parameter.
2. This instruction calculates the square root of a negative number without
overflow or faults. In applications where the source value may be negative,
use a comparison instruction to evaluate the source value to determine if
the destination may be invalid.
3. This instruction impacts the status flags in the following way:
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
LCD
RTC
PLS
BHI
STI
Bit
ST
EII
N
O
B
S
F
L
I
Source • • • • • • • • • • • • •
Destination • • • • • • • • • • • •
(1) See Important note about indirect addressing.
IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
IN •
SQRT •
ENO •
Move and Logical The MicroLogix supported data types for AND, OR, XOR and NOT are as
follows:
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
RTC
LCD
PLS
BHI
STI
Bit
ST
EII
N
O
B
S
L
I
Source A • • • • • • • • • • • • • • • • • • • • • • • • •
Source B(3) • • • • • • • • • • • • • • • • • • • • • • • • •
Destination • • • • • • • • • • • • • • • • • •
(1)
PTOX and PWMX files are valid for MicroLogix 1400 BXB or BXBA unit.
(2)
See Important note about indirect addressing.
(3)
Source B does not apply to the NOT instruction. The NOT instruction only has one source value.
IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • • • • • • • • • • • • • •
o1 • • • • • • • • • • • • • • • • • •
ENO •
MOV
Description
Instruction Parameters
CCW Limitations
Only supports same data types for both input and output.
Behavioral Differences
1. The bit field variable can also be moved to an integer file. For example,
B3:0 can be added to N7:0 where all the 16 bits in the B3:0 fields are used
for moving.
2. This instruction impacts the status flags in the following way:
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
RTC
LCD
PLS
BHI
STI
Bit
EII
ST
N
O
B
S
L
I
Source • • • • • • • • • • • • • • • • • • • • • • • • • • •
Destination • • • • • • • • • • • (3) (3) (3) (3) • • • •
(1)
PTOX and PWMX files are valid for MicroLogix 1400 BXB or BXBA 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, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
TIME
REAL
UINT
DINT
SINT
LINT
INT
EN •
i1 • • • • • • • • • • • • • • • • • •
o1 • • • • • • • • • • • • • • • • • •
ENO •
AND
Description
Instruction Parameters
CCW Limitations
Behavioral Differences
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
TIME
REAL
UINT
DINT
SINT
LINT
INT
EN •
i1 •
o1 •
ENO •
XOR
Description
Instruction Parameters
CCW Limitations
Behavioral Differences
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
i1 •
i2 •
o1 •
ENO •
OR
Description
Instruction Parameters
CCW Limitations
Behavioral Differences
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
i1 •
i2 •
o1 •
ENO •
NOT
Description
Instruction Parameters
CCW Limitations
Behavioral Differences
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
i1 •
o1 •
ENO •
Description
Instruction Parameters
CCW Limitations
None
Behavioral Differences
None
XIC and XIO Instructions Valid Addressing Modes and File Types
Address
Data Files Function Files(1) Address Level
Mode(2)
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
RTC
LCD
PLS
BHI
STI
Bit
EII
ST
N
O
B
S
L
I
Operand Bit • • • • • • • • • • • • • • • • • • • • • •
(1)
PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit.
(2) See Important note about indirect addressing.
IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
XIO
Description
Examine whether the bit field is OFF based on the rung state.
Instruction Parameters
CCW Limitations
None
Behavioral Differences
None
XIC and XIO Instructions Valid Addressing Modes and File Types
Address
Data Files Function Files(1) Address Level
Mode(2)
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
RTC
LCD
PLS
BHI
STI
Bit
EII
ST
N
O
B
S
L
I
Operand Bit • • • • • • • • • • • • • • • • • • • • • •
(1)
PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit.
(2)
See Important note about indirect addressing.
IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
OTE
Description
Instruction Parameters
CCW Limitations
None
Behavioral Differences
The OTE is reset when programmed within an inactive or false Master Control
Reset (MCR) zone.
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
RTC
LCD
PLS
BHI
STI
Bit
ST
EII
N
O
B
S
L
I
Destination Bit • • • • • • • • • • • • • • • • •
(1)
PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit.
(2)
See Important note about indirect addressing.
IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
OTL
Description
Instruction Parameters
CCW Limitations
None
Behavioral Differences
1. In the event of a power loss, any OTL controlled output device will
energize with the return of power if the OTL bit was set when power was
lost.
2. If an error condition occurs that halts processing, the physical output will
be turned off. But once the error condition is cleared the controller will
resume operation with the OTL in the state determined by its data table
value.
OTL and OTU Instructions Valid Addressing Modes and File Types
Address
Data Files Function Files(1) Address Level
Mode(2)
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
LCD
RTC
PLS
BHI
STI
Bit
EII
ST
N
O
B
S
L
I
Operand Bit • • • • • • • • • • • • • • • • •
(1)
PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit.
(2)
See Important note about indirect addressing.
IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
OTU
Description
Instruction Parameters
CCW Limitations
None
Behavioral Differences
1. If an error condition that halts processing occurs, the physical output will
be turned off. But once the error condition is cleared the controller will
resume operation with the OTU in the state determined by its data table
value.
2. In the event of a power loss, any OTL controlled output device will
energize with the return of power if the OTL bit was set when power was
lost.
OTL and OTU Instructions Valid Addressing Modes and File Types.
Address
Data Files Function Files(1) Address Level
Mode(2)
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
LCD
RTC
PLS
BHI
STI
Bit
ST
EII
N
O
B
S
L
I
Operand Bit • • • • • • • • • • • • • • • • •
(1)
PTOX and PWMX files are only for use with MicroLogix 1400 BXB or BXBA unit.
(2)
See Important note about indirect addressing.
IMPORTANT You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
OSR
Description
Instruction Parameters
CCW Limitations
None
Behavioral Differences
None
OSR and OSF Instructions Valid Addressing Modes and File Types
Address
Data Files Function Files Address Level
Mode
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
LCD
RTC
PLS
BHI
STI
Bit
ST
EII
N
O
B
S
L
I
Storage Bit • • • •
Output Bit • • • • • • • •
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
CLK •
Q •
ENO •
Timer and Counter The MicroLogix supported data types for TON, TOF and RTO are as follows:
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
LCD
RTC
PLS
BHI
STI
Bit
ST
EII
N
O
B
S
L
I
Timer • • •
Time Base • •
Preset • •
Accumulator • •
(1) Valid for Timer Files only.
The MicroLogix supported data types for CTD and CTU are as follows:
CTD and CTU Instructions Valid Addressing Modes and File Types
Address
Data Files(1) Function Files
Mode
Address Level
CS - Comms
Parameter
Long Word
Immediate
IOS - I/O
Element
Indirect
MG, PD
RI/RIX
Direct
T, C, R
Word
MMI
HSC
RTC
LCD
PLS
BHI
STI
Bit
EII
ST
N
O
B
S
L
I
Counter • • •
Preset • •
Accumulator • •
(1)
Valid for Counter Files only.
CTD
Description
Instruction Parameters
CCW Limitations
Behavioral Differences
1. On the low to high transition of the rung, the counter counts down by 1.
The done bit (DN) is set as along as the Accum value is greater than or
equal to the Preset value. It is cleared when its value is less than the Preset
value.
2. The counter in MicroLogix continues to count down even after reaching
zero. This is NOT the case with CCW instruction. The underflow in
MicroLogix is SET only when the Accum value crosses over from -32768
to 32767 whereas in the case of CCW, the underflow bit is SET when the
CV value reaches zero.
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
TIME
REAL
UINT
DINT
SINT
LINT
INT
EN •
LOAD •
PV •
Q •
CV •
ENO •
CTU
Description
Instruction Parameters
CCW Limitations
None
Behavioral Differences
In CCW, the counter will count upwards until it reaches the limit of CV whereas
in case of RSLogix, the counter will continue to up count.
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
TIME
REAL
UINT
DINT
SINT
LINT
INT
EN •
CU •
RESET •
PV •
Q •
CV •
ENO •
TON
Description
This instruction is used to turn an output on or off after the timer has been on for
a preset time interval.
Instruction Parameters
CCW Limitations
None
Behavioral Differences
1. If power is lost while a TON is timing but has not reached its preset value,
the EN, and TT bits remain set, and the accumulated value (ACCUM)
remains the same. This is also true if the processor changes from the REM
Run or REM Test mode to the REM Program mode.
2. If either the Accumulator or the Preset is negative when the TON
instruction is executed on a true rung, a Major Fault (0034) is generated.
Status Bits
This Bit Is Set When And Remains Set Until
One of the Following
Timer Done Bit DN (bit 13) accumulated value is equal to rung conditions go false
or greater than the preset
value
Timer Enable Bit EN (bit 14) rung conditions are true rung conditions go false
Timer Timing Bit TT (bit 15) rung conditions are true and rung conditions go false or
the accumulated value is less when the done bit is set
than the preset value
On returning to the REM Run or REM Test mode, the following can
happen:
Condition Result
If the rung is true: EN bit remains set.
TT bit remains set.
ACC value is reset.
If the rung is false: EN bit is reset.
TT bit is reset.
ACC value is reset.
Data Type
DWORD
STRING
LWORD
Parameter
WORD
UDINT
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
IN •
PT •
Q •
ET •
ENO •
TOF
Description
This instruction is used to turn an output on or off after its rung has been off for
a preset time interval.
Instruction Parameters
T>T Whenever the rung state is true, the Sets the overflow flag (Q).
Accumulator shall be set to zero, the EN
and DN bits shall be set, the TT bit shall
be reset.
Input Preset Programmed initial value (16 bit unsigned PT Programmed initial value (Time data type)
integer)
Input Time Base 1ms, 10ms or 1s Supported
Output Timer EN This bit is set to TRUE when the rung is Not supported
(Enable) TRUE. It is cleared when rung is false.
Output Timer DN It is set to FALSE when the Accum value Q It is set to FALSE when the ET value is equal
(Done) is greater than or equal to Preset value. to the value of PT. The internal timer stops
when it reaches the value of PT.
Output Timer TT It is set when rung conditions are FALSE Not supported
(Timing) or the accumulated value is less than the
Preset value. It is cleared once the rung is
TRUE or done bit is reset.
Output Accum 16 bit accumulated count. It can be reset ET In Time data type format
to zero when the rung conditions are
TRUE.
Output Rung enable output ENO Rung enable output
CCW Limitations
None
Behavioral Differences
When controller operation changes from REM Run or REM Test mode to REM
Program mode or if user power is lost while a TOF is timing but has not reached
its preset value, the EN, TT, and DN bits remain set, and the accumulated value
(ACCUM) remains the same.
On returning to the REM Run or REM Test mode, the following can happen:
Condition Result
If the rung is true: TT bit is reset
DN bit remains set
EN bit is set
ACC value is reset.
If the rung is false: TT bit is reset
DN bit is reset
EN bit is reset
ACC value is set equal to the preset value
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
TIME
REAL
UINT
DINT
SINT
LINT
INT
EN •
IN •
PT •
Q •
ET •
ENO •
RTO
Description
This is a retentive instruction that lets the timer stop and start without resetting
the accumulated value.
Instruction Parameters
CCW Limitations
If using a Micro810 or Micro820 controller, the RTO internal timer does not
persist through a power cycle by default. To persist the internal timer, set the
Retained configuration parameter to true.
If using a Micro830 or Micro850 controller, the RTO internal timer will persist
through a power cycle.
Behavioral Differences
When the processor changes from the REM Run or REM Test mode to the REM
Program or REM Fault mode, or user power is lost while the timer is timing but
not yet at the preset value, the following occurs:
• Timer Enable (EN) bit remains set.
• Timer Timing (TT) bit remains set.
• Accumulated value (ACC) remains the same.
On returning to the REM Run or REM Test mode, the following can happen:
Condition Result
If the rung is true: TT bit remains set
EN bit remains set
ACC value remains the same and resumes incrementing.
If the rung is false: TT bit is reset
DN bit remains in its last state.
EN bit is reset
ACC value remains in its last state.
Data Type
DWORD
STRING
LWORD
Parameter
UDINT
WORD
USINT
LREAL
ULINT
BOOL
BYTE
DATE
REAL
TIME
UINT
DINT
SINT
LINT
INT
EN •
IN •
RST •
PT •
Q •
ET •
ENO •
Description
The HSC instruction counts high-speed pulses from a high-speed input with a
specified maximum pulse rate.
Instruction Parameters
CCW Limitations
None
Behavioral Differences
When the high-speed counter is enabled, data table counter C5:0 is used by the
ladder program for monitoring the high-speed counter accumulator and status.
15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
Word 0 CU CD DN OV UN UA HP LP IV IN IH IL PE LS IE <- Status Word
Word 1 Preset Value
Word 2 Accumulator Value
The high-speed counter accumulator and status are found under the
HscSTSInfo parameters.
Refer to the table below for notes on unsupported RSLogix 500 instruction set.
In this section, you can view and compare the Pick and Place ladder diagram in
RSLogix 500, the manually converted ladder diagram in Connected
Components Workbench, and the ladder diagram in Connected Components
Workbench that is converted using the MicroLogix to Micro800 Converter tool.
RSLogix 500 Pick and Place Ther following is a screenshot of the Pick and Place application ladder diagram in
the RSLogix 500 report.
Ladder Diagram
Connected Components The following is a screenshot of the converted Pick and Place application ladder
diagram using the MicroLogix to Micro800 converter tool.
Workbench Ladder
Diagram (Converter Tool)
Refer to the following for notes on the results of the conversion using the
MicroLogix to Micro800 Converter Tool:
Source:
Destination:
Warning: Revise all usages of status file. They are no longer system variables,
unpredictable operation could occur.
Warning: Arithmetic Status bits are not supported in Micro800. Revise usage of
math instructions.
After the dwell time has expired, start up the forward motor to send the head out
to its drop off bin.'.
After the dwell time has expired, start up the forward motor to send the head out
to its drop off bin.'.
(grab part)
Connected Components The following is a screenshot of the converted Pick and Place application ladder
diagram using manual conversion.
Workbench Ladder
Diagram
(Manual Conversion)
Rockwell Automation provides technical information on the Web to assist you in using its products.
At http://www.rockwellautomation.com/support/, you can find technical manuals, a knowledge base of FAQs, technical and
application notes, sample code and links to software service packs, and a MySupport feature that you can customize to make the
best use of these tools.
For an additional level of technical phone support for installation, configuration, and troubleshooting, we offer TechConnect
support programs. For more information, contact your local distributor or Rockwell Automation representative,
or visit http://www.rockwellautomation.com/support/.
Installation Assistance
If you experience a problem within the first 24 hours of installation, review the information that is contained in this manual.
You can contact Customer Support for initial help in getting your product up and running.
Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the manufacturing facility.
However, if your product is not functioning and needs to be returned, follow these procedures.
United States Contact your distributor. You must provide a Customer Support case number (call the phone number above to obtain
one) to your distributor to complete the return process.
Outside United States Please contact your local Rockwell Automation representative for the return procedure.
Documentation Feedback
Your comments will help us serve your documentation needs better. If you have any suggestions on how to improve this document,
complete this form, publication RA-DU002, available at http://www.rockwellautomation.com/literature/.
Rockwell Otomasyon Ticaret A.Ş., Kar Plaza İş Merkezi E Blok Kat:6 34752 İçerenköy, İstanbul, Tel: +90 (216) 5698400