Академический Документы
Профессиональный Документы
Культура Документы
This document is the Step 7-Micro/WIN 32 Release 3.0 statement of compliance for IEC Publication Number IEC1131-
3. This product complies with the requirements of IEC 1131-3 for Ladder as described in the following tables.
The tables and their corresponding numbering are consistent with the IEC 1131-3 specification and the PLCopen
Technical Committee 3 Technical Papers. The titles and versions of the referenced PLCopen technical papers are as
follows:
“Base Level for Ladder Diagram (LD)”, Version 0.50, Dated November 3, 1998.
These tables are organized to clearly communicate PLCopen Base Level requirements and how Step 7-Micro/WIN 32
Release 3.0 complies with these requirements.
Several standard IEC 1131-3 features have been included that are not required for Base Level compliance. These will be
features that include the “Support” identification, but do not include the “Base Level” denotation within the
“Compliance” column.
The In/Out column uses the terms “Support” or “No Support” to denote whether a particular feature is either included
or not included. In some cases, supported features will include further explanation as described below.
An additional section may be provided within each table to offer further clarification or explanation of an individual
feature. This section will appear as follows and will be included at the end of each table where applicable.
MANUFACTURER’S NOTE:
Page 1
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 2
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 3
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
MANUFACTURER’S NOTES:
1. USINT (unsigned integer) and UDINT (unsigned double integer) are shown as WORD and DWORD.
Page 4
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 5
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Once source power and battery power are not applied to the PLC (coldstart), all V memory locations will derive
their initial values from the original values written to the EEPROM. Refer to the Retentive Range configuration
within the System Block to determine the memory locations that are retentive.
Table 15 - Location and size prefix features for directly represented variables
No. Prefix Meaning Compliance In/Out
Page 6
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
MANUFACTURER’S NOTE: M memory is provided through both M memory and V memory designations.
MANUFACTURER’S NOTE:
1. The VAR_EXTERNAL and VAR_GLOBAL keywords are implicitly supported through use of the global
variable tables. The VAR, VAR_IN, VAR_IN_OUT, and VAR_OUT keywords are explicitly supported in the
local variable table.
2. The AT keyword is implicitly supported in the global variable table through symbolic addressing.
Page 7
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 8
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 9
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
MANUFACTURER’S NOTE: Specific, individual types are only required for functions that are not overloaded.
These are typically non-standard IEC instructions. However, BLKMOVE, INCREMENT, and DECREMENT are
non-standard IEC instructions that provided overloaded support.
1. A statement of conformance to feature 1 of this table shall include a list of the specific type conversions supported, and a
statement of the effects of performing each conversion.
2. Conversion from type REAL or LREAL to SINT, INT, DINT or LINT shall round to the nearest integer, e.g.,
REAL_TO_INT(1.6) is equivalent to 2
REAL_TO_INT(-1.6) is equivalent to -2
REAL_TO_INT(1.5) is equivalent to 2
REAL_TO_INT(-1.5) is equivalent to -2
REAL_TO_INT(1.4) is equivalent to 1
REAL_TO_INT(-1.4) is equivalent to -1
REAL_TO_INT(2.5) is equivalent to 2
REAL_TO_INT(-2.5) is equivalent to –2
3. The function TRUNC shall be used for truncation toward zero of a REAL or LREAL, yielding one of the integer types,
for instance,
TRUNC(1.6) is equivalent to 1
TRUNC(-1.6) is equivalent to -1
TRUNC(1.4) is equivalent to 1
TRUNC(-1.4) is equivalent to –1
4. The conversion functions *_TO_BCD and BCD_TO_** are defined to perform conversions between variables of type
BYTE, WORD, DWORD, and LWORD and variables of type SINT, INT, and DINT (represented by "*"), when the
corresponding bit-string variables contain data encoded in BCD format. For example, the value of INT_TO_BCD(25)
would be 2#0010_0101, and the value of BCD_TO_INT(2#0011_0110_1001) would be 369.
5. When an input or output of a type conversion function is of type STRING, the character string data shall conform to the
external representation of the corresponding data, as specified in 2.2, in the ISO/IEC 646 character set.
6. Usage examples are given in the ST language defined in 3.3.
MANUFACTURER’S NOTE:
Page 11
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 12
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 13
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 14
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 15
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 16
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 17
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 18
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 19
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
NOTES
1 It is assumed in these examples that the variables EXPIRED and A_VAR have been declared of type BOOL.
2 The declaration of function block AND_EDGE in the above examples is equivalent to:
FUNCTION_Base LevelOCK AND _EDGE
VAR_INPUT XCLK:BOOL; YCLK:BOOL; END_VAR
VAR X_TRIG:R_TRIG; Y_TRIG:F_TRIG; END_VAR
X_TRIG(CLK:=XCLK); X:=X_TRIG.Q;
Y_TRIG(CLK:=YCLK); Y:=Y_TRIG.Q;
Z:=X AND Y;
END_FUNCTION_Base LevelOCK
See 2.5.2.3.2 for the definition of the edge detection function blocks R_TRIG and F_TRIG.
Page 20
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 21
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 22
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
+--------+ ++ ++ +--------+
IN | | || || | |
--+ +-----++-++---+ +---------
t0 t1 t2 t3 t4 t5
PT +---+ + +---+
: / | /| / |
ET : / | / | / |
: / | / | / |
: / | / | / |
0-+ +-----+ +--+ +---------
t0 t1 t2 t4 t5
On-delay (TON) timing
+---+ +---+
Q | | | |
-------+ +---------------------+ +-------------
t0+PT t1 t4+PT t5
PT +---+ +---+
: / | + / |
ET : / | /| / |
: / | / | / |
: / | / | / |
0-+ +--------+ +---+ +-------------
t0 t1 t2 t3 t4 t5
Off-delay (TOF) timing
+-------------+ +---------------------+
Q | | | |
---+ +---+ +------
t0 t1+PT t2 t5+PT
PT +---+ +------
: / | + /
ET : / | /| /
: / | / | /
: / | / | /
0------------+ +---+ +--------+
t1 t3 t5
Page 23
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 24
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Page 25
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Table 61 - Contacts
No. Symbol Description Compliance In/Out
Static contacts
*** Normally open contact Base Level Support
1 --| |-- The state of the left link is copied to the
right link if the state of the associated
***
2 Boolean variable (indicated by ***) is ON.
--! !--
Otherwise, the state of the right link is OFF.
*** Normally closed contact Base Level Support
3 --|/|-- The state of the left link is copied to the
right link if the state of the associated
***
4 Boolean variable is OFF. Otherwise, the
--!/!--
state of the right link is OFF.
Transition-sensing contacts
*** Positive transition-sensing contact Support
5 --|P|-- The state of the right link is ON from one
evaluation of this element to the next when a
transition of the associated variable from
***
6 OFF to ON is sensed at the same time that
--!P!--
the state of the left link is ON. The state of
the right link shall be OFF at all other times.
*** Negative transition-sensing contact Support
7 --|N|-- The state of the right link is ON from one
evaluation of this element to the next when a
transition of the associated variable from ON
***
8 to OFF is sensed at the same time that the
--!N!--
state of the left link is ON. The state of the
right link shall be OFF at all other times.
NOTE: As specified in 2.1.1, the exclamation mark "!" shall be used when a national character set does not
support the vertical bar "|".
Page 26
Siemens Energy & Automation, Inc. IEC 1131-3 LD Statement of Compliance
Table 62 - Coils
No. Symbol Description Compliance In/Out
Momentary coils
*** Coil
1 --( ) The state of the left link is copied to the associated Boolean Base Level Support
variable and to the right link.
Negated coil
The state of the left link is copied to the right link. The inverse
***
2 of the state of the left link is copied to the associated Boolean
--(/)--
variable, that is, if the state of the left link is OFF, then the
state of the associated variable is ON, and vice versa.
Latched Coils
SET (latch) coil
*** The associated Boolean variable is set to the ON state when
3 --(S) Base Level Support
the left link is in the ON state, and remains set until reset
by a RESET coil.
RESET (unlatch) coil
*** The associated Boolean variable is reset to the OFF state
4 --(R) Base Level Support
when the left link is in the ON state, and remains reset until
set by a SET coil.
Retentive coils (see note)
***
5 --(M)-- Retentive (Memory) coil
***
6 ---(SM)--- SET retentive (Memory) coil
***
7 ---(RM)--- RESET retentive (Memory) coil
Transition-sensing coils
Positive transition-sensing coil
The state of the associated Boolean variable is ON from one
***
8 --(P)-- evaluation of this element to the next when a transition of the
left link from OFF to ON is sensed. The state of the left link is
always copied to the right link.
Negative transition-sensing coil
The state of the associated Boolean variable is ON from one
***
9 --(N)-- evaluation of this element to the next when a transition of the
left link from ON to OFF is sensed. The state of the left link is
always copied to the right link.
NOTE: The action of coils 5, 6, and 7 is identical to that of coils 1, 3, and 4, respectively, except that the
associated Boolean variable is automatically declared to be in retentive memory without the explicit use of the
VAR RETAIN declaration defined in 2.4.2.
MANUFACTURER’S NOTE: Power flow is not provided as an output from coils.
Page 27