380
SECTION
3
PLC
Programming
Industrial Text & Video Company 1-800-752-8398
www.industrialtext.com
CHAPTER
10
The IEC 1131 Standard and
Programming Language
Figure 10-3. Boolean variable declaration.
10-2 IEC 1131-3 PROGRAMMING LANGUAGES
While the IEC 1131-3 programming standard provides great new potential
for programmable controller users, it is actually based on the relay ladder
logic that has been inherent in PLCs since their inception. The IEC 1131-3 is
based on the ladder logic used in PLC ladder diagrams (including functional
blocks) because of its simplicity of use, representation, and to some extent,
programmability. The IEC 1131-3, however, reduces the need for complex
interlocking circuits within PLC ladder diagram circuits. It enhances the
languages previously used in programmable controllers and incorporates
them with a powerful framework—sequential function charts—making in-
terlocking, interpretation of the control program, and implementation of the
control system much easier for both the programmer and the final user of the
system. With this in mind, let’s briefly discuss the four languages that are
used with the IEC 1131-3 standard—ladder diagrams, function block dia-
grams, instruction list, and structured text—along with sequential function
charts. Note that, when programming in the IEC 1131-3, any of these
languages may be used either alone or as a group, with or without sequential
function charts. In Section 10-4, we will list all available IEC 1131-3
programming instructions.
LADDER DIAGRAMS (LD)
Ladder diagram language (LD) uses a standardized set of ladder program-
ming symbols to implement control functions. This type of programming
language is essentially the one that has always been available in PLCs (see
Figure 10-4). Users familiar with current PLC ladder diagrams can use the
same programming techniques and methods when using this language in an
IEC 1131-3 environment. However, as we will explain later, interlocking
ladder diagram programming is much easier to implement in the IEC 1131-
3 format due to the use of sequential function charts.
Note that these variable names, which can be chosen by the user,
describe the operational functions of the input devices.
MAN_START_PB
AUTO_PART_Detect
NO_JAM_Detect
Bool
Bool
Bool
0
0
0
0
0
0
0
1
2
Input Variable Name Variable Type Rack Slot Terminal
Address Location