Professional Documents
Culture Documents
IEC 61131-3 - Wikipedia: International Standard IEC 61131 Programmable Logic Controllers IEC
IEC 61131-3 - Wikipedia: International Standard IEC 61131 Programmable Logic Controllers IEC
IEC 61131-3 - Wikipedia: International Standard IEC 61131 Programmable Logic Controllers IEC
en.wikipedia.org
5-6 minutes
IEC 61131-3 is the third part (of 10) of the open international standard IEC 61131 for
programmable logic controllers, and was first published in December 1993 by the IEC. The
current (third) edition was published in February 2013.
Part 3 of IEC 61131 deals with basic software architecture and programming languages of the
control program within PLC. It defines three graphical and two textual programming language
standards:
Sequential function chart (SFC), has elements to organize programs for sequential and parallel
control processing, graphical.
Data types[edit]
1 of 5 6/7/20, 3:37 PM
IEC 61131-3 - Wikipedia about:reader?url=https://en.wikipedia.org/wiki...
LREAL – (8 byte)
Duration
TIME – (4 byte). Literals in the form of T#5m90s15ms
Date
DATE – calendar date (Size is not specified)
Time of day
TIME_OF_DAY / TOD – clock time(Size is not specified)
STRING – Variable-length single-byte character string. Literals specified with single quote,
'This is a STRING Literal'
$$ $
$' '
$L linefeed
$N newline
2 of 5 6/7/20, 3:37 PM
IEC 61131-3 - Wikipedia about:reader?url=https://en.wikipedia.org/wiki...
$R return
$T tab
Generic Data Types – Only available for the input / output/ in-out variables of system-defined
Program Organization Units (POUs, see below)
ANY
ANY_DERIVED
ANY_ELEMENTARY
ANY_MAGNITUDE
ANY_NUM
ANY_REAL: LREAL, REAL
ANY_INT
ANY_UNSIGNED: ULINT, UDINT, UINT, USINT
ANY_CHARS
ANY_STRING: STRING, WSTRING
Subrange data type – puts limits on value i.e., INT(4 .. 20) for current
Directly derived data type – type derived from one of the above types to give new name and
initial value as a type.
References – a kind of strongly typed pointer. Arithmetic operation of the value of this type is
prohibited.
3 of 5 6/7/20, 3:37 PM
IEC 61131-3 - Wikipedia about:reader?url=https://en.wikipedia.org/wiki...
Variables[edit]
Global
Direct (local)
External
Temporary
Configuration[edit]
Functions
Standard: ADD, SQRT, SIN, COS, GT, MIN, MAX, AND, OR, etc.
Custom
Function Blocks
Standard:
Programs
Configuration – processing resources, memory for IO, execution rates, number of tasks.
The 3rd revision of the standard describes how to implement OOP within the application
programming
References[edit]
Tom Mejer Antonsen, "PLC Controls with Structured Text (ST), 2018,
ISBN 978-87-4300-241-3, ISBN 978-87-4300-242-0
External links[edit]
4 of 5 6/7/20, 3:37 PM
IEC 61131-3 - Wikipedia about:reader?url=https://en.wikipedia.org/wiki...
PLCopen
5 of 5 6/7/20, 3:37 PM