




























































































Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Prepare-se para as provas
Estude fácil! Tem muito documento disponível na Docsity
Prepare-se para as provas com trabalhos de outros alunos como você, aqui na Docsity
Os melhores documentos à venda: Trabalhos de alunos formados
Prepare-se com as videoaulas e exercícios resolvidos criados a partir da grade da sua Universidade
Responda perguntas de provas passadas e avalie sua preparação.
Ganhe pontos para baixar
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Comunidade
Peça ajuda à comunidade e tire suas dúvidas relacionadas ao estudo
Descubra as melhores universidades em seu país de acordo com os usuários da Docsity
Guias grátis
Baixe gratuitamente nossos guias de estudo, métodos para diminuir a ansiedade, dicas de TCC preparadas pelos professores da Docsity
dfgghh - dfgghh
Tipologia: Notas de estudo
1 / 214
Esta página não é visível na pré-visualização
Não perca as partes importantes!
This manual is part of the documentation package with the order number: 6ES7810-4CA06-8BR
A5E00171231-
Copyright © Siemens AG 2002 All rights reserved The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including rights created by patent grant or registration of a utility model or design, are reserved.
Siemens AG Bereich Automation and Drives Geschaeftsgebiet Industrial Automation Systems Postfach 4848, D- 90327 Nuernberg
Disclaimer of Liability We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement. However, the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions. Suggestions for improvement are welcomed.
©Siemens AG 2002 Technical data subject to change.
Siemens Aktiengesellschaft A5E00171231-
Safety Guidelines
This manual contains notices intended to ensure personal safety, as well as to protect the products and connected equipment against damage. These notices are highlighted by the symbols shown below and graded according to severity by the following texts:
!
Danger indicates that death, severe personal injury or substantial property damage will result if proper precautions are not taken.
!
Warning indicates that death, severe personal injury or substantial property damage can result if proper precautions are not taken.
!
Caution indicates that minor personal injury can result if proper precautions are not taken.
Caution indicates that property damage can result if proper precautions are not taken.
Notice draws your attention to particularly important information on the product, handling the product, or to a particular part of the documentation.
Qualified Personnel
Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are defined as persons who are authorized to commission, to ground and to tag circuits, equipment, and systems in accordance with established safety practices and standards.
Correct 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.
This product can only function correctly and safely if it is transported, stored, set up, and installed correctly, and operated and maintained as recommended.
Trademarks
SIMATIC®, SIMATIC HMI® and SIMATIC NET® are registered trademarks of SIEMENS AG. Third parties using for their own purposes any other names in this document which refer to trademarks might infringe upon the rights of the trademark owners.
Preface
Ladder Logic (LAD) for S7-300 and S7-400 Programming iv A5E00171231-
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
Basic information for technical personnel describing the methods of implementing control tasks with STEP 7 and the S7-300/ programmable controllers.
6ES7810-4CA06-8BA
STEP 7 Reference with
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-4CA06-8BR
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.
Preface
Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00171231-01 v
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:
If you have any technical questions, please get in touch with your Siemens representative or agent responsible. http://www.siemens.com/automation/partner
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: Telephone: +49 (911) 895-3200. Internet: http://www.sitrain.com
Preface
Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00171231-01 vii
In addition to our documentation, we offer our Know-how online on the internet at: http://www.siemens.com/automation/service&support where you will find the following:
Preface
Ladder Logic (LAD) for S7-300 and S7-400 Programming viii A5E00171231-
Contents
Contents
Ladder Logic (LAD) for S7-300 and S7-400 Programming
Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00171231-01 1-
Bit logic instructions work with two digits, 1 and 0. These two digits form the base of a number system called the binary system. The two digits 1 and 0 are called binary digits or bits. In the world of contacts and coils, a 1 indicates activated or energized, and a 0 indicates not activated or not energized. The bit logic instructions interpret signal states of 1 and 0 and combine them according to Boolean logic. These combinations produce a result of 1 or 0 that is called the “result of logic operation” (RLO). The logic operations that are triggered by the bit logic instructions perform a variety of functions. There are bit logic instructions to perform the following functions:
The following instructions react to an RLO of 1:
Other instructions react to a positive or negative edge transition to perform the following functions:
Bit Logic Instructions
Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-2 A5E00171231-
1.2 ---| |--- Normally Open Contact (Address)
Parameter Data Type Memory Area Description
BOOL I, Q, M, L, D, T, C Checked bit---| |--- (Normally Open Contact) is closed when the bit value stored at the specified is equal to "1". When the contact is closed, ladder rail power flows across the contact and the result of logic operation (RLO) = "1". Otherwise, if the signal state at the specified is "0", the contact is open. When the contact is open, power does not flow across the contact and the result of logic operation (RLO) = "0". When used in series, ---| |--- is linked to the RLO bit by AND logic. When used in parallel, it is linked to the RLO by OR logic.
BR CC 1 CC 0 OV OS OR STA RLO /FC writes: - - - - - X X X 1
Power flows if one of the following conditions exists: The signal state is "1" at inputs I0.0 and I0. Or the signal state is "1" at input I0.
Bit Logic Instructions
Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-4 A5E00171231-
1.4 XOR Bit Exclusive OR
For the XOR function, a network of normally open and normally closed contacts must be created as shown below.
Parameter Data Type Memory Area Description
XOR (Bit Exclusive OR) creates an RLO of "1" if the signal state of the two specified bits is different.
The output Q4.0 is "1" if (I0.0 = "0" AND I0.1 = "1") OR (I0.0 = "1" AND I0.1 = "0").
Bit Logic Instructions
Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00171231-01 1-
1.5 --|NOT|-- Invert Power Flow
---|NOT|--- (Invert Power Flow) negates the RLO bit.
BR CC 1 CC 0 OV OS OR STA RLO /FC writes: - - - - - - 1 X -
NOT I 0.1 I 0.
The signal state of output Q4.0 is "0" if one of the following conditions exists: The signal state is "1" at input I0. Or the signal state is "1" at inputs I0.1 and I0.2.
Bit Logic Instructions
Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00171231-01 1-
The signal state of output Q4.0 is "1" if one of the following conditions exists: The signal state is "1" at inputs I0.0 AND I0. OR the signal state is "0" at input I0.2. The signal state of output Q4.1 is "1" if one of the following conditions exists: The signal state is "1" at inputs I0.0 AND I0. OR the signal state is "0" at input I0.2 AND "1" at input I0.
If the example rungs are within an activated MCR zone: When MCR is on, Q4.0 and Q4.1 are set according to power flow status as described above. When MCR is off (=0), Q4.0 and Q4.1 are reset to 0 regardless of power flow.
Bit Logic Instructions
Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-8 A5E00171231-
1.7 ---( # )--- Midline Output
Parameter Data Type Memory Area Description
BOOL I, Q, M, *L, D Assigned bit---( # )--- (Midline Output) is an intermediate assigning element which saves the RLO bit (power flow status) to a specified . The midline output element saves the logical result of the preceding branch elements. In series with other contacts, ---( # )--- is inserted like a contact. A ---( # )--- element may never be connected to the power rail or directly after a branch connection or at the end of a branch. A negated ---( # )--- can be created by using the ---|NOT|--- (invert power flow) element.
MCR dependency is activated only if a midline output coil is placed inside an active MCR zone. Within an activated MCR zone, if the MCR is on and there is power flow to a midline output coil; the addressed bit is set to the current status of power flow. If the MCR is off, a logic "0" is written to the specified address regardless of power flow status.
BR CC 1 CC 0 OV OS OR STA RLO /FC writes: - - - - - 0 X - 1