Programming Manual Logix5000 Controllers IEC 61131-3 Compliance Catalog Numbers 1756 ControlLogix, 1769 CompactLogix, 1789 SoftLogix, 1794 FlexLogix, PowerFlex 700S with DriveLogix
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.
Summary of Changes This manual contains new and updated information. IMPORTANT RSLogix 5000 programming software is now known as Studio 5000™ Logix Designer application, a component of Studio 5000 Engineering and Design Environment. The following controllers are no longer supported in the Logix Designer application, version 21.
Summary of Changes Notes: 4 Rockwell Automation Publication 1756-PM018C-EN-P - November 2012
Table of Contents Preface Studio 5000 Engineering and Design Environment and Logix Designer Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 In This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 IEC61131-3 Compliance Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Operating System . . . . . . . . . . . . . . . . . . .
Table of Contents 6 Rockwell Automation Publication 1756-PM018C-EN-P - November 2012
Preface Studio 5000 Engineering and Design Environment and Logix Designer Application The Studio 5000™ Engineering and Design Environment combines engineering and design elements into a common environment. The first element in the Studio 5000 environment is the Logix Designer application. The Logix Designer application is the rebranding of RSLogix™ 5000 software and will continue to be the product to program Logix5000™ controllers for discrete, process, batch, motion, safety, and drive-based solutions.
Preface Notes: 8 Rockwell Automation Publication 1756-PM018C-EN-P - November 2012
Chapter 1 IEC61131-3 Compliance Introduction The International Electrotechnical Commission (IEC) has developed a series of specifications for programmable controllers. These specifications are intended to promote international unification of equipment and programming languages for use in the controls industry. These standards provide the foundation for Logix5000 controllers and the Logix Designer application.
Chapter 1 IEC61131-3 Compliance Operating System The preemptive, multitasking operating system (OS) of Logix5000 controllers complies with the IEC61131-3 definition. In IEC61131-3, the programmable controllers OS can contain zero or more tasks, that can execute one or more programs each containing one or more functions or routines. According to IEC61131-3, the number of each of these components is implementation dependent.
IEC61131-3 Compliance Programming Languages Chapter 1 The IEC61131-3 specification defines five (5) different programming languages and a set of common elements. All languages are defined as optional but at least one must be supported in order to claim compliance with the specification.
Chapter 1 IEC61131-3 Compliance IEC61131-3 Program Portability One of the goals of end-users creating programs in an IEC61131-3 compliant environment is the movement or portability of programs between controllers developed by different vendors. This area is a weakness of IEC61131-3 because no file exchange format is defined by the specification. This means that if any program created in one vendor's environment will require manipulation to move it to another vendor's system.
IEC61131-3 Compliance IEC Compliance Tables Chapter 1 Logix5000 controllers and the Logix Designer application comply with the requirements of IEC61131-3 for the following language features: Table Number:(1) Feature Number: Feature Description: Extensions and Implementation Notes: 1 2 Lower case letters none 1 3a Number sign (#) Used for immediate value data type designation 1 4a Dollar sign ($) Used for description and string control character 1 6a Subscript delimiters ([ ]) Array su
Chapter 1 IEC61131-3 Compliance Table Number:(1) Feature Number: Feature Description: Extensions and Implementation Notes: 10 4 DINT Data Type Tag variable definition 10 10 REAL Data Type Tag variable definition 10 12 Time Tag variable definition, TIMER Structure 10 16 STRING data type 8 Bits 11 1 Data type Hierarchy none 12 1 Direct Derivation from elementary types User Defined data type structures 12 4 Array data types Tag variable definition 12 5 Structured Data types
IEC61131-3 Compliance Chapter 1 Table Number:(1) Feature Number: Feature Description: Extensions and Implementation Notes: 24 13 Arithmetic multiplication MUL instruction in LD and FBD, and * in ST. 24 14 Arithmetic subtraction SUB instruction in LD and FBD, and - in ST. 24 15 Arithmetic divide DIV instruction in LD and FBD, and / in ST. 24 16 Modulo MOD instruction LD and ST 24 17 Exponentiation XPY instruction in LD and FBD, and ** in ST.
Chapter 1 IEC61131-3 Compliance Table Number:(1) Feature Number: Feature Description: Extensions and Implementation Notes: 36 1b Up-counter Functionality contained in CTU and RES instructions in LD and in CTUD instruction in FBD and ST 37 2a On-delay timer Functionality contained in TON instruction in LD and TONR instruction in FBD and ST 37 3a Off-delay timer Functionality contained in TOF instruction in LD and TOFR instruction in FBD and ST 38 2 On-delay timing Functionality contained
IEC61131-3 Compliance Table Number:(1) Feature Number: Feature Description: 45 6 Action Qualifier D - Time Delayed 45 7 Action Qualifier P - Pulse 45 8 Action Qualifier SD - Stored and Time Delayed 45 9 Action Qualifier DS - Delayed and Stored 45 10 Action Qualifier SL - Stored and time limited 45 11 Action Qualifier P1 - Pulse Rising Edge 45 12 Action Qualifier P0 - Pulse Falling Edge 45a 1 Action Control 45a 2 Action Control 46 1 SFC Single Sequence 46 2a SFC Divergence
Chapter 1 IEC61131-3 Compliance Table Number:(1) Feature Number: Feature Description: 55 12 ST Equality = 55 13 ST Inequality <> 55 14 ST Boolean AND as & 55 15 ST Boolean AND 55 16 ST Boolean XOR 55 17 ST Boolean OR 56 1 ST Assignment := 56 2 ST Function Block invocation 56 3 ST RETURN 56 4 ST IF / ELSIF / ELSE/ END_IF 56 5 ST CASE OF / ELSE / END_CASE 56 6 ST FOR / END_FOR 56 7 ST WHILE DO / END_WHILE 56 8 ST REPEATE / UNTIL / END_REPEAT 56 9 ST EXIT 56 1
IEC61131-3 Compliance Table Number:(1) Feature Number: Feature Description: Extensions and Implementation Notes: 62 4 Reset (unlatch) coil Functionality contained in OTU instruction in LD 62 8 Positive transition sensing coil OSR instruction in LD 62 9 Negative transition sensing coil OSF instruction in LD Chapter 1 (1) Table associated with languages other than Structured Text, sequential function chart, Ladder diagram and Function Block diagram have been skipped.
Chapter 1 IEC61131-3 Compliance Notes: 20 Rockwell Automation Publication 1756-PM018C-EN-P - November 2012
Rockwell Automation Support 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.