Académique Documents
Professionnel Documents
Culture Documents
Identifies information that is critical for successful application and understanding of the product.
Allen-Bradley, Rockwell Software, Rockwell Automation, and TechConnect are trademarks of Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
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.
Description
1756-L61
1756-L61S
1756-L62
1756-L62S
1756-L63
1756-L63S
1756-L64
1756-L65
1768-L43
1768-L43S
1768-L45
1768-L45S
1769-L23E-QBF1
1769-L23E-QBFC1
1769-L23-QBFC1
1769-L31
1769-L32C
1769-L32E
1769-L35CR
1769-L35E
Changes throughout this revision are marked by change bars, as shown in the
margin of this page.
Summary of Changes
Notes:
Table of Contents
Preface
IEC61131-3 Compliance
Introduction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Operating System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Data Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Programming Languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
IEC61131-3 Program Portability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
IEC Compliance Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table of Contents
Preface
In This Manual
Preface
Notes:
Chapter
IEC61131-3 Compliance
Introduction
Chapter 1
IEC61131-3 Compliance
Operating System
Data Definitions
10
IEC61131-3 Compliance
Programming Languages
Chapter 1
Instruction Set
11
Chapter 1
IEC61131-3 Compliance
12
IEC61131-3 Compliance
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:
none
3a
4a
6a
Subscript delimiters ([ ])
Array subscripts
Comments
Integer literal
12, 0, -12
Real literal
12.5, -12.5
-1.34E-12, 1.234E6
Base 2 literal
2#0101_0101
Base 8 literal
8#377
Base 16 literal
16#FFE0
0, 1
1A
1B
1C
1D
1E
1F
1G
1H
1I
10
10
10
13
Chapter 1
IEC61131-3 Compliance
Table Number:(1)
Feature Number:
Feature Description:
10
10
10
10
12
Time
10
16
8 Bits
11
none
12
12
12
13
13
13
13
14
Import/export
14
Import/export
14
Import/export
14
Import/export
19a
2a
Available in ST
20
20
Available in FBD
20
Available in FBD
20
Available in FBD
21
22
22
22
FRD instruction in LD
22
TOD instruction in LD
23
Absolute value
ABS instruction
23
Square root
23
Natural log
LN instruction
23
Log base 10
LOG instruction
23
Sine in radians
23
Cosine in radians
23
Tangent in radians
23
23
10
23
11
24
12
Arithmetic add
14
IEC61131-3 Compliance
Chapter 1
Table Number:(1)
Feature Number:
Feature Description:
24
13
Arithmetic multiplication
24
14
Arithmetic subtraction
24
15
Arithmetic divide
24
16
Modulo
24
17
Exponentiation
24
18
Value move
25
25
25
25
26
AND
26
OR
26
XOR
26
NOT
27
SELECT
27
2a
27
2b
27
27
Multiplexer MUX
28
Comparison greater-than
28
28
Comparison equal
28
Comparison less-than
28
28
10
29
29
29
29
29
29
32
Input read
FBD and ST
32
Input write
FBD and ST
32
Output read
FBD and ST
32
Output write
FBD and ST
34
34
35
35
15
Chapter 1
IEC61131-3 Compliance
Table Number:(1)
Feature Number:
Feature Description:
36
1b
Up-counter
37
2a
On-delay timer
37
3a
Off-delay timer
38
On-delay timing
38
Off-delay timing
40
1a
SFC Step
40
1b
40
2a
40
2b
40
3a
40
41
Transition using ST
41
41
Transition Name
41
7a
Transition Set by LD
41
7b
41
7d
Transition Set by ST
42
Action Boolean
42
3s
Import/export
43
43
43
43
Embedded ST
44
44
44
44
Action using ST
44
Action using LD
44
45
45
45
45
45
16
IEC61131-3 Compliance
Table Number:(1)
Feature Number:
Feature Description:
45
45
45
45
45
10
45
11
45
12
45a
Action Control
45a
Action Control
46
46
2a
46
2b
46
46
4a
46
4b
46
5a, b, c
46
6a, b, c
46
47
47
48
48
48
48
48
48
48
55
ST Parenthesization (expression)
55
ST Function Evaluation
55
ST Exponentiation **
55
ST Negation -
55
ST Negation NOT
55
ST Multiply *
55
ST Divide /
55
ST Modulo MOD
55
ST Add +
55
10
ST Subtract -
55
11
Chapter 1
17
Chapter 1
IEC61131-3 Compliance
Table Number:(1)
Feature Number:
Feature Description:
55
12
ST Equality =
55
13
ST Inequality <>
55
14
55
15
ST Boolean AND
55
16
ST Boolean XOR
55
17
ST Boolean OR
56
ST Assignment :=
56
56
ST RETURN
56
56
56
ST FOR / END_FOR
56
ST WHILE DO / END_WHILE
56
56
ST EXIT
56
10
ST Empty Statement ;
57
1, 2
Horizontal line
57
3, 4
Vertical line
57
5, 6
57
7, 8
FBD editor
57
9, 10
57
11, 12
57
13,14
Connectors
FBD editor
58
Unconditional jump
JMP instruction in LD
58
Jump target
LBL instruction in LD
58
Conditional jump
JMP instruction in LD
58
Conditional return
RET instruction in LD
58
Unconditional return
RET instruction in LD
59
LD editor
59
LD editor
60
Horizontal link
LD editor
60
Vertical link
LD editor
61
1, 2
XIC instruction in LD
61
3, 4
XIO instruction in LD
61
5, 6
ONS instruction in LD
62
OTE instruction in LD
62
18
IEC61131-3 Compliance
Table Number:(1)
Feature Number:
Feature Description:
62
62
OSR instruction in LD
62
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.
19
Chapter 1
IEC61131-3 Compliance
Notes:
20
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.
United States or Canada
1.440.646.3434
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.
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 erenky, stanbul, Tel: +90 (216) 5698400
Copyright 2012 Rockwell Automation, Inc. All rights reserved. Printed in the U.S.A.
Pgina 1 de 1
Elementos Comunes.
Tipos de Datos.
Dentro de los elementos comunes se definen los tipos de datos. La tipificacin
de los datos previene errores en una etapa temprana. Se usa para definir el tipo
de cualquier parmetro usado. Esto evita que por ejemplo se divida una fecha
entre un entero.
Los tipos de datos comunes son: Boolean, Integer, Real, Byte y Word. Tambin
Date, Time_of_Day y String. Basado en ellos, uno puede definir sus propios
tipos de datos, llamados tipos de datos derivados.
Variables.
Las variables son nicamente asignadas a direcciones de hardware explicitas
(por ejemplo entradas y salidas) en la configuracin, recursos o programas. De
esta manera se le da a los programas una independencia de alto nivel del
hardware, soportando el re-uso del software.
El enfoque (visibilidad) de las variables es normalmente limitado a la unidad de
organizacin en la cual son declaradas (por ejemplo: local). Esto significa que
sus nombres pueden ser usados nuevamente sin ningn conflicto en otras
partes, eliminando otra fuente de errores. Si las variables requieren un alcance
global, deben ser declaradas como tales. Los parmetros pueden recibir un valor
inicial al arranque y al reinicio en fri, con objeto de asegurar su valor correcto
al inicio de la ejecucin de los programas.
Pgina 2 de 2
Programas
Con los bloques constructivos mencionados anteriormente se puede decir que
un Programa es una Red de Funciones y Bloques de Funcin. Un programa
puede ser escrito en cualquiera de los lenguajes de programacin definidos en el
estndar.
Pgina 4 de 4
Lenguajes de Programacin
Dentro del estndar se definen 4 lenguajes de programacin. Esto es, se definen
su sintaxis y semntica. Una ves que usted los aprendi, puede aplicarlos a una
gran cantidad de sistemas que estn basados en estos estndares.
Los lenguajes son 2 de tipo textual y 2 de tipo grafico:
Textuales:
x Lista de Instrucciones (Instruction List IL)
x Texto estructurado (Structured Tex ST)
Grficos
x Diagrama de Escalera (Ladder Diagram LD)
x Diagrama de Bloques de Funciones (Function Block Diagram FBD)
Instruction List - IL
LD
Structured Text - ST
ANDN B
ST
C = A AND NOT B
Ladder Diagram - LD
AND
A
A
B
C
----| |------|/ |----------( )
Pgina 5 de 5
Implementaciones
Los requerimientos completos del IEC 61131-3 no son fcilmente llenados. Por
esa razn el estndar permite implementaciones parciales en varios aspectos.
Tales como el numero de lenguajes soportados, funciones y bloques de funcin.
Esto proporciona libertad del lado del suministrador, pero el usuario (cliente)
debe estar prevenido al respecto durante su proceso de seleccin.
Muchos ambientes de desarrollo de programacin IEC ofrecen lo que usted
puede esperar de un ambiente moderno: Operacin mediante Mouse, mens
descolgables, pantallas graficas, soporte de mltiples ventanas, funciones de
hipertexto, verificacin durante el diseo. Tenga previsto que esto no es
Pgina 6 de 6
Conclusin
Las implicaciones tcnicas del estndar IEC 61131-3 son altas, pero dejan
espacio suficiente para el crecimiento y la diferenciacin entre proveedores,
hacindolo aplicable tanto al corto como al largo plazo.
El IEC 61131-3 tendr un gran impacto en toda la industria de control.
Ciertamente no se restringe al mercado tradicional de los PLCs. Tambin se ha
adoptado en el mercado de control de movimiento, Sistemas distribuidos y
Softlogic basados en PCs. Incluyendo paquetes SCADA y continua en aumento.
Algunos de los beneficios de adoptar este estndar son:
x Disminuir el desperdicio de recursos humanos en entrenamiento, solucin
de errores y mantenimiento.
x Favorecer el enfoque a la solucin del problema mediante un alto nivel de
rehso del software.
x Reduciendo los malentendidos y errores.
x Tcnicas de programacin de enfoque amplio para la generalidad del
control industrial.
x Permitiendo la combinacin de diferentes componentes de diferentes
programas, proyectos, localidades compaas y pases.
Pgina 7 de 7