Documente Academic
Documente Profesional
Documente Cultură
Compliance
Programming Manual
Catalog Numbers 1756
ControlLogix, 1769 CompactLogix,
1789 SoftLogix, 1794 FlexLogix,
PowerFlex 700S with DriveLogix
IMPORTANT
ATTENTION
Identifies information that is critical for successful application and understanding of the product.
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.
Allen-Bradley, Rockwell Automation, and TechConnect are trademarks of Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
Table of Contents
Preface
IEC61131-3 Compliance
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Operating System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Data Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Programming Languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
IEC61131-3 Program Portability. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
IEC Compliance Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Table of Contents
Preface
Text that is
Identifies
Italic
courier
Right-click
name_of_program
Press [Enter].
For example
Means
Preface
Notes:
Chapter
IEC61131-3 Compliance
Introduction
Chapter 1
IEC61131-3 Compliance
Operating System
Data Definitions
IEC61131-3 Compliance
Programming Languages
Chapter 1
Instruction Set
IEC61131-3 Program
Portability
Publication 1756-PM018B-EN-P - July 2008
Chapter 1
IEC61131-3 Compliance
10
IEC61131-3 Compliance
Chapter 1
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
11
Chapter 1
IEC61131-3 Compliance
Table
Number:(1)
Feature
Number:
Feature Description:
10
10
10
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
12
IEC61131-3 Compliance
Chapter 1
Table
Number:(1)
Feature
Number:
Feature Description:
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
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
13
Chapter 1
IEC61131-3 Compliance
Table
Number:(1)
Feature
Number:
Feature Description:
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
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
14
IEC61131-3 Compliance
Chapter 1
Table
Number:(1)
Feature
Number:
Feature Description:
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
45
45
45
45
45
10
45
11
45
12
15
Chapter 1
IEC61131-3 Compliance
Table
Number:(1)
Feature
Number:
Feature Description:
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
16
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
Chapter 1
17
Chapter 1
IEC61131-3 Compliance
Table
Number:(1)
Feature
Number:
Feature Description:
62
62
62
OSR instruction in LD
62
OSF instruction in LD
(1)
18
Table associated with languages other than Structured Text, sequential function chart, Ladder diagram and Function Block diagram have been skipped.
Rockwell Automation
Support
Rockwell Automation provides technical information on the Web to assist you in using
its products. At http://support.rockwellautomation.com, 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://support.rockwellautomation.com.
Installation Assistance
If you experience a problem within the first 24 hours of installation, please review the
information that's contained in this manual. You can also contact a special Customer
Support number for initial help in getting your product up and running.
United States
1.440.646.3434
Monday Friday, 8am 5pm EST
Outside United
States
Outside United
States
Copyright 2008 Rockwell Automation, Inc. All rights reserved. Printed in the U.S.A.