STEP7_LAD_e.pdf

(1521 KB) Pobierz
Ladder Logic (LAD) for S7-300 and S7-400 Programming
s
Preface,
Contents
Bit Logic Instructions
1
SIMATIC
Comparison Instructions
2
Conversion Instructions
3
Ladder Logic (LAD) for
S7-300 and S7-400
Programming
Reference Manual
Counter Instructions
4
Data Block Instructions
5
Logic Control Instructions
6
Integer Math Instructions
7
Floating Point Math
Instructions
8
Move Instructions
9
Program Control Instructions
10
Shift and Rotate Instructions
11
Status Bit Instructions
12
Timer Instructions
13
Word Logic Instructions
14
Appendix
This manual is part of the documentation
package with the order number:
6ES7810-4CA08-8BW1
Overview of All LAD
Instructions
A
Programming Examples
B
Edition 03/2006
A5E00706949-01
Working with Ladder Logic
C
Index
37515279.001.png
Safety Guidelines
This manual contains notices you have to observe in order to ensure your personal safety, as well as to
prevent damage to property. The notices referring to your personal safety are highlighted in the manual
by a safety alert symbol, notices referring to property damage only have no safety alert symbol. The
notices shown below are graded according to the degree of danger.
!
Danger
indicates that death or severe personal injury will result if proper precautions are not taken.
!
Warning
indicates that death or severe personal injury may result if proper precautions are not taken.
!
Caution
with a safety alert symbol indicates that minor personal injury can result if proper precautions are not
taken.
Caution
without a safety alert symbol indicates that property damage can result if proper precautions are not
taken.
Notice
indicates that an unintended result or situation can occur if the corresponding notice is not taken into
account.
If more than one degree of danger is present, the warning notice representing the highest degree of
danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a
warning relating to property damage.
Qualified Personnel
The device/system may only be set up and used in conjunction with this documentation. Commissioning
and operation of a device/system may only be performed by qualified personnel . Within the context of
the safety notices in this documentation qualified persons are defined as persons who are authorized to
commission, ground and label devices, systems and circuits in accordance with established safety
practices and standards.
Prescribed Usage
Note the following:
!
Warning
This device and its components may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other manufacturers
which have been approved or recommended by Siemens.
Correct, reliable operation of the product requires proper transport, storage, positioning and assembly
as well as careful operation and maintenance.
Trademarks
All names identified by ® are registered trademarks of the Siemens AG.
The remaining trademarks in this publication may be trademarks whose use by third parties for their
own purposes could violate the rights of the owner.
Disclaimer of Liability
We have reviewed the contents of this publication to ensure consistency with the hardware and
software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency.
However, the information in this publication is reviewed regularly and any necessary corrections are
included in subsequent editions.
Siemens AG
Automation and Drives
Postfach 4848
90437 NÜRNBERG
GERMANY
A5E00706949-01
03/2006
Copyright © Siemens AG 2006
Technical data subject to change
37515279.002.png
Preface
Purpose
This manual is your guide to creating user programs in the Ladder Logic (LAD)
programming language.
This manual also includes a reference section that describes the syntax and
functions of the language elements of Ladder Logic.
Basic Knowledge Required
The manual is intended for S7 programmers, operators, and maintenance/service
personnel.
In order to understand this manual, general knowledge of automation technology is
required.
In addition to, computer literacy and the knowledge of other working equipment
similar to the PC (e.g. programming devices) under the operating systems
MS Windows 2000 Professional, MS Windows XP Professional or MS Windows
Server 2003 are required.
Scope of the Manual
This manual is valid for release 5.4 of the STEP 7 programming software package.
Compliance with IEC 1131-3
LAD corresponds to the “Ladder Logic” language defined in the International
Electrotechnical Commission's standard IEC 1131-3. For further details, refer to the
table of standards in the STEP 7 file NORM_TBL.WRI.
Ladder Logic (LAD) for S7-300 and S7-400 Programming
A5E00706949-01
iii
Preface
Requirements
To use this Ladder Logic manual effectively, you should already be familiar with the
theory behind S7 programs which is documented in the online help for STEP 7.
The language packages also use the STEP 7 standard software, so you should be
familiar with handling this software and have read the accompanying
documentation.
This manual is part of the documentation package "STEP 7 Reference".
The following table displays an overview of the STEP 7 documentation:
Documentation
Purpose
Order Number
STEP 7 Basic Information with
Working with STEP 7,
Getting Started Manual
Programming with STEP 7
Configuring Hardware and
Communication Connections,
STEP 7
From S5 to S7, Converter Manual
Basic information for technical
personnel describing the methods
of implementing control tasks with
STEP 7 and the S7-300/400
programmable controllers.
6ES7810-4CA08-8BW0
STEP 7 Reference with
Ladder Logic (LAD) / Function Block
Diagram (FDB) / Statement List (STL)
for S7-300/400 manuals
Standard and System Function
for S7-300/400
Volume 1 and Volume 2
Provides reference information
and describes the programming
languages LAD, FBD and STL,
and standard and system function
extending the scope of the
STEP 7 basic information.
6ES7810-4CA08-8BW1
Online Helps
Purpose
Order Number
Help on STEP 7
Basic information on
programming and configuring
hardware with STEP 7 in the form
of an online help.
Part of the STEP 7
Standard software.
Reference helps on AWL/KOP/FUP
Reference help on SFBs/SFCs
Reference help on Organization Blocks
Context-sensitive reference
information.
Part of the STEP 7
Standard software.
Ladder Logic (LAD) for S7-300 and S7-400 Programming
iv
A5E00706949-01
37515279.003.png
Preface
Online Help
The manual is complemented by an online help which is integrated in the software.
This online help is intended to provide you with detailed support when using the
software.
The help system is integrated in the software via a number of interfaces:
The context-sensitive help offers information on the current context, for
example, an open dialog box or an active window. You can open the context-
sensitive help via the menu command Help > Context-Sensitive Help , by
pressing F1 or by using the question mark symbol in the toolbar.
You can call the general Help on STEP 7 using the menu command Help >
Contents or the "Help on STEP 7" button in the context-sensitive help window.
You can call the glossary for all STEP 7 applications via the "Glossary" button.
This manual is an extract from the "Help on Ladder Logic". As the manual and the
online help share an identical structure, it is easy to switch between the manual
and the online help.
Further Support
If you have any technical questions, please get in touch with your Siemens
representative or responsible agent.
You will find your contact person at:
http://www.siemens.com/automation/partner
You will find a guide to the technical documentation offered for the individual
SIMATIC Products and Systems here at:
http://www.siemens.com/simatic-tech-doku-portal
The online catalog and order system is found under:
http://mall.automation.siemens.com/
Training Centers
Siemens offers a number of training courses to familiarize you with the SIMATIC
S7 automation system. Please contact your regional training center or our central
training center in D 90327 Nuremberg, Germany for details:
Internet: http://www.sitrain.com
Ladder Logic (LAD) for S7-300 and S7-400 Programming
A5E00706949-01
v
37515279.004.png
Zgłoś jeśli naruszono regulamin