Siemens NAN 67 Series Manual de Serviço

Consulte online ou descarregue Manual de Serviço para Fogões Siemens NAN 67 Series. Siemens NAN 67 Series Technical data Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 318
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes

Resumo do Conteúdo

Página 1 - Programming

Preface, ContentsPart 1: Working with theLadder EditorPart 2: Language DescriptionAppendixGlossary, IndexC79000-G7076-C504-02Ladder Logic (LAD) for S7

Página 2

xLadder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0212 Floating-Point Math Instructions 12-1. . . . . . . . . . . . . . . . . . . . . . . . .

Página 3

8-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.1 OverviewBit logic instructions work with two digits, 1 and 0. These two digits form

Página 4

8-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.2 Normally Open ContactYou can use the Normally Open Contact (Address) instruction to

Página 5

8-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.3 Normally Closed ContactYou can use the Normally Closed Contact (Address) instructio

Página 6 - Editor

8-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.4 Output CoilThe Output Coil instruction works like a coil in a relay logic diagram.

Página 7

8-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.5 Midline OutputThe Midline Output instruction is an intermediate assigning element t

Página 8

8-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.6 Invert Power FlowThe Invert Power Flow instruction negates the RLO.Table 8-5 Invert

Página 9

8-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.7 Save RLO to BR MemoryThe Save RLO to BR Memory instruction saves the RLO to the BR

Página 10 - Contents

8-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.8 Set CoilThe Set Coil instruction is executed only if the RLO = 1. If the RLO = 1, t

Página 11

8-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.9 Reset CoilThe Reset Coil instruction is executed only if the RLO = 1. If the RLO =

Página 12

8-11Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.10 Set Counter ValueYou can use the Set Counter Value (SC) instruction to place a pr

Página 13

xiLadder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0215 Word Logic Instructions 15-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 14 - C79000-G7076-C504-02

8-12Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.11 Up Counter CoilThe Up Counter Coil (CU) instruction increments the value of a spe

Página 15 - Product Overview

8-13Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.12 Down Counter CoilThe Down Counter Coil (CD) instruction decrements the value of a

Página 16

8-14Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.13 Pulse Timer CoilThe Pulse Timer Coil (SP) instruction starts a specified timer wi

Página 17 - Introduction

8-15Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.14 Extended Pulse Timer CoilThe Extended Pulse Timer Coil (SE) instruction starts a

Página 18

8-16Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.15 On-Delay Timer CoilThe On-Delay Timer Coil (SD) instruction starts a specified ti

Página 19

8-17Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.16 Retentive On-Delay Timer CoilThe Retentive On-Delay Timer Coil (SS) instruction s

Página 20 - S Data blocks (DBs)

8-18Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.17 Off-Delay Timer CoilThe Off-Delay Timer Coil (SF) instruction starts a specified

Página 21

8-19Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.18 Positive RLO Edge DetectionThe operation Positive RLO Edge Detection recognizes a

Página 22

8-20Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.19 Negative RLO Edge DetectionThe operation Negative RLO Edge Detection recognizes a

Página 23 - 2.3 Rules to Observe

8-21Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.20 Address Positive Edge DetectionThe Address Positive Edge Detection instruction co

Página 24

xiiLadder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02AppendixA Alphabetical Listing of Instructions A-1. . . . . . . . . . . . . . . . . . .

Página 25 - Creating Logic Blocks

8-22Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.21 Address Negative Edge DetectionThe Address Negative Edge Detection instruction co

Página 26

8-23Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.22 Set Reset FlipflopThe Set Reset Flipflop instruction executes Set (S) and Reset (

Página 27

8-24Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.23 Reset Set FlipflopThe Reset Set Flipflop instruction executes Set (S) and Reset (

Página 28

9-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Timer InstructionsSection Description Page9.1 Location of a Timer in Memory and Compone

Página 29

9-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-029.1 Location of a Timer in Memory and Components of a TimerTimers have an area reserved

Página 30

9-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Because time values are stored with only one time interval, values that arenot exact mu

Página 31

9-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-029.2 Choosing the Right TimerFigure 9-2 provides an overview of the five types of timers

Página 32

9-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-029.3 Pulse S5 TimerThe Pulse S5 Timer instruction starts a specified timer if there is a

Página 33

9-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Figure 9-3 shows the Pulse S5 Timer instruction, describes the status wordbits, and sho

Página 34

9-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-029.4 Extended Pulse S5 TimerThe Extended Pulse S5 Timer instruction starts a specified t

Página 35

Product Overview1Introduction2Creating Logic Blocks3Creating Data Blocks andUser Data Types4Editing the Block Properties and Testing the Program5Part

Página 36

9-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Figure 9-4 shows the Extended Pulse S5 Timer instruction, describes thestatus word bits

Página 37

9-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-029.5 On-Delay S5 TimerThe On-Delay S5 Timer instruction starts a specified timer if ther

Página 38 - (optional)

9-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02–– t –– –– t ––t = programmed timeIf the signal state of input I 0.0 changes from 0 to

Página 39 - S Midline outputs (#)

9-11Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-029.6 Retentive On-Delay S5 TimerThe Retentive On-Delay S5 Timer instruction starts a sp

Página 40

9-12Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Figure 9-6 shows the Retentive On-Delay S5 Timer instruction, describes thestatus word

Página 41

9-13Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-029.7 Off-Delay S5 TimerThe Off-Delay S5 Timer instruction starts a specified timer if t

Página 42 - 3.9 Entering Ladder Elements

9-14Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Figure 9-7 shows the Off-Delay S5 Timer instruction, describes the statusword bits, an

Página 43

10-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Counter InstructionsSection Description Page10.1 Location of a Counter in Memory and C

Página 44

10-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0210.1 Location of a Counter in Memory and Components of a CounterCounters have an area

Página 45

10-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0210.2 Up-Down CounterA positive edge (i.e. a change in signal state from 0 to 1) at inp

Página 46

1-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02

Página 47

10-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table 10-2 Up-Down Counter Box and Parameters, with SIMATIC Short NameLAD Box Paramete

Página 48 - 3.12 Symbolic Addressing

10-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0210.3 Up CounterA positive edge (i.e. a change in signal state from 0 to 1) at input S

Página 49

10-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table 10-4 Up Counter Box and Parameters, with SIMATIC Short NameLAD Box Parameter Dat

Página 50

10-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0210.4 Down CounterA positive edge (that is, a change in signal state from 0 to 1) at in

Página 51

10-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table 10-6 Down Counter Box and Parameters, with SIMATIC Short NameLAD Box Parameter D

Página 52

11-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Integer Math InstructionsSection Description Page11.1 Add Integer 11-211.2 Add Double

Página 53 - Data Types

11-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0211.1 Add IntegerA signal state of 1 at the Enable (EN) input activates the Add Integer

Página 54

11-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0211.2 Add Double IntegerA signal state of 1 at the Enable (EN) input activates the Add

Página 55

11-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0211.3 Subtract IntegerA signal state of 1 at the Enable (EN) input activates the Subtra

Página 56 - 4.2 Selecting a Method

11-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0211.4 Subtract Double IntegerA signal state of 1 at the Enable (EN) input activates the

Página 57 - TAB or RETURN keys. At

1-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Product OverviewLAD stands for Ladder Logic. LAD is a graphic programming language. The

Página 58 - DB17 - <Offline>

11-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0211.5 Multiply IntegerA signal state of 1 at the Enable (EN) input activates the Multip

Página 59

11-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0211.6 Multiply Double IntegerA signal state of 1 at the Enable (EN) input activates the

Página 60

11-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0211.7 Divide IntegerA signal state of 1 at the Enable (EN) input activates the Divide I

Página 61 - Insert

11-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0211.8 Divide Double IntegerA signal state of 1 at the Enable (EN) input activates the D

Página 62

11-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0211.9 Return Fraction Double IntegerA signal state of 1 at the Enable (EN) input activ

Página 63

11-11Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0211.10 Evaluating the Bits of the Status Word After Integer MathInstructionsThe basic

Página 64 - S Select File

11-12Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Integer Math Instructions

Página 65

12-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Floating-Point Math InstructionsSection Description Page12.1 Overview 12-212.2 Add Flo

Página 66 - STL. You must then convert

12-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0212.1 OverviewYou can use the floating-point math instructions to perform the following

Página 67

12-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0212.2 Add Floating-Point NumbersA signal state of 1 at the Enable (EN) input activates

Página 68

1-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02

Página 69

12-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0212.3 Subtract Floating-Point NumbersA signal state of 1 at the Enable (EN) input activ

Página 70 - FB6-<Online>

12-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0212.4 Multiply Floating-Point NumbersA signal state of 1 at the Enable (EN) input activ

Página 71

12-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0212.5 Divide Floating-Point NumbersA signal state of 1 at the Enable (EN) input activat

Página 72

12-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0212.6 Evaluating the Bits of the Status Word After Floating-PointInstructionsThe math i

Página 73

12-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0212.7 Establishing the Absolute Value of a Floating-Point NumberWith the Establishing t

Página 74

12-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0212.8 Establishing the Square and/or the Square Root of a Floating-PointNumberWith the

Página 75

12-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Status Word Bits BR CC 1 CC 0 OV OS OR STA RLO FCWrite x x x x x 0 x x 1Function is e

Página 76 - 6.1 Elements and Boxes

12-11Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0212.9 Establishing the Natural Logarithm of a Floating-Point NumberWith the Establishi

Página 77

12-12Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0212.10 Establishing the Exponential Value of a Floating-Point NumberWith the Establish

Página 78

12-13Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0212.11 Establishing the Trigonometrical Functions of Angles asFloating-Point NumbersWi

Página 79 - CPU manual

2-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02IntroductionThis chapter is a brief description of the structure of a user programconsi

Página 80

12-14Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table 12-13 Box ASIN and ParametersLAD Box Parameter DataTypeMemoryAreaDescriptionASI

Página 81

12-15Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table 12-16 Box TAN and ParametersLAD Box Parameter DataTypeMemoryAreaDescriptionTANE

Página 82

12-16Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Floating-Point Math Instructions

Página 83

13-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Comparison InstructionsSection Description Page13.1 Compare Integer 13-213.2 Compare D

Página 84

13-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0213.1 Compare IntegerThe Compare Integer instruction carries out a compare operation on

Página 85

13-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0213.2 Compare Double IntegerThe Compare Double Integer instruction carries out a compar

Página 86

13-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Status Word Bits BR CC 1 CC 0 OV OS OR STA RLO FCWrite – x x 0 – x 1 x 1I 0.1Output Q

Página 87

13-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0213.3 Compare Floating-Point NumbersThe Compare Floating-Point Numbers instruction trig

Página 88

13-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Comparison Instructions

Página 89

14-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Move and Conversion InstructionsSection Description Page14.1 Assign a Value 14-214.2 B

Página 90

2-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-022.1 Structure of User ProgramsA user program consists of logic blocks and data blocks.

Página 91

14-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.1 Assign a ValueThe Assign a Value instruction enables you to pre-assign a variable

Página 92

14-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02For information on integrated system functions that act as move instructionswhich can

Página 93 - Addressing

14-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.2 BCD to IntegerThe BCD to Integer conversion instruction reads the contents specif

Página 94 - 7.1 Overview

14-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.3 Integer to BCDThe Integer to BCD conversion instruction reads the contents specif

Página 95

14-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.4 Integer to Double IntegerThe Integer to Double Integer conversion instruction rea

Página 96 - 7.2 Types of Addresses

14-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.5 BCD to Double IntegerThe BCD to Double Integer conversion instruction reads the c

Página 97

14-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.6 Double Integer to BCDThe Double Integer to BCD conversion instruction reads the c

Página 98

14-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.7 Double Integer to Floating-Point NumberThe Double Integer to Floating-Point Numbe

Página 99

14-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.8 Ones Complement IntegerThe Ones Complement Integer instruction reads the content

Página 100 - 8.1 Overview

14-11Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.9 Ones Complement Double IntegerThe Ones Complement Double Integer instruction rea

Página 101 - 8.2 Normally Open Contact

2-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02You can also define your own data:S You can define shared data in data blocks. This dat

Página 102 - 8.3 Normally Closed Contact

14-12Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.10 Twos Complement Integer The Twos Complement Integer instruction reads the cont

Página 103 - 8.4 Output Coil

14-13Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.11 Twos Complement Double IntegerThe Twos Complement Double Integer instruction re

Página 104 - 8.5 Midline Output

14-14Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.12 Negate Floating-Point NumberThe Negate Floating-Point Number instruction reads

Página 105 - 8.6 Invert Power Flow

14-15Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.13 Round to Double IntegerThe Round to Double Integer conversion instruction reads

Página 106 - 8.7 Save RLO to BR Memory

14-16Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.14 Truncate Double Integer PartThe Truncate Double Integer Part conversion instruc

Página 107 - 8.8 Set Coil

14-17Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.15 CeilingThe Ceiling conversion instruction reads the contents specified in the i

Página 108 - 8.9 Reset Coil

14-18Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0214.16 FloorThe Floor conversion instruction reads the contents specified in the input

Página 109 - 8.10 Set Counter Value

15-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Word Logic InstructionsSection Description Page15.1 Overview 15-215.2 WAnd Word 15-315

Página 110 - 8.11 Up Counter Coil

15-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0215.1 OverviewWord logic instructions compare pairs of words (16 bits) and double words

Página 111 - 8.12 Down Counter Coil

15-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0215.2 WAnd WordA 1 at the Enable (EN) input activates the (Word) And Word instruction.

Página 112 - 8.13 Pulse Timer Coil

iiLadder Logic (LAD) for S7-300 and S7-400C79000 G7076 C504 02This manual contains notices which you should observe to ensure your own personal safety

Página 113 - Bit Logic Instructions

2-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-022.2 Creating User Programs – OverviewA user program that runs on an S7 CPU is essential

Página 114 - 8.15 On-Delay Timer Coil

15-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0215.3 WAnd Double WordA 1 at the Enable (EN) input activates the (Word) And Double Word

Página 115

15-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0215.4 WOr WordA 1 at the Enable (EN) input activates the (Word) Or Word instruction. Th

Página 116 - 8.17 Off-Delay Timer Coil

15-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0215.5 WOr Double WordA 1 at the Enable (EN) input activates the (Word) Or Double Wordin

Página 117

15-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0215.6 WXOr WordA 1 at the Enable (EN) input activates the (Word) Exclusive Or Wordinstr

Página 118

15-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0215.7 WXOr Double WordA 1 at the Enable (EN) input activates the (Word) Exclusive Or Do

Página 119

16-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Shift and Rotate InstructionsSection Description Page16.1 Shift Instructions 16-216.2

Página 120

16-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0216.1 Shift InstructionsYou can use the Shift instructions to move the contents of inpu

Página 121 - 8.22 Set Reset Flipflop

16-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0215... ...8 7... ...00 1 0 10 1 0 1 0 1 0 10 0 0 00 1 0 01 1 0 1INNOU

Página 122 - 8.23 Reset Set Flipflop

16-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02A signal state of 1 at the Enable (EN) input activates the Shift Left DoubleWord instr

Página 123 - Timer Instructions

16-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02A signal state of 1 at the Enable (EN) input activates the Shift Right Wordinstruction

Página 124 - S S5T# aH_bbM_ccS_ddMS

2-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02FilePress F1 for helpOptions HelpSIMATIC Manager – TRAFFICNUMTRAFFIC - <Offline>

Página 125

16-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02A signal state of 1 at the Enable (EN) input activates the Shift Right DoubleWord inst

Página 126 - 9.2 Choosing the Right Timer

16-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Status Word Bits BR CC 1 CC 0 OV OS OR STA RLO FCWrite x x x x – x x x 1I 0.0A signal

Página 127 - 9.3 Pulse S5 Timer

16-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0215... ...8 7... ...01 0 1 00 0 0 0 1 0 1 01 0 1 01

Página 128

16-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02A signal state of 1 at the Enable (EN) input activates the Shift Right DoubleInteger i

Página 129 - 9.4 Extended Pulse S5 Timer

16-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0216.2 Rotate InstructionsYou can use the Rotate instructions to rotate the entire cont

Página 130

16-11Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table 16-7 Rotate Left Double Word Box and ParametersLAD Box Parameter Data Type Memo

Página 131 - 9.5 On-Delay S5 Timer

16-12Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-021 0 131... ...16 15... ...01 0 1 01 0 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 1 0 1 0 1

Página 132

17-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Data Block InstructionsSection Description Page17.1 Open Data Block: DB or DI 17-2Chap

Página 133

17-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0217.1 Open Data Block: DB or DIYou can use the Open Data Block: DB or DI instruction to

Página 134

18-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Jump InstructionsSection Description Page18.1 Overview 18-218.2 Jump in the Block If R

Página 135 - 9.7 Off-Delay S5 Timer

2-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02When you save a block in the Editor, remember the following points:S File " Save a

Página 136

18-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0218.1 OverviewThe address of a Jump instruction is a label. A label consists of a maxim

Página 137 - Counter Instructions

18-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0218.2 Jump in the Block If RLO = 1 (Unconditional Jump)The Unconditional Jump instructi

Página 138

18-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0218.3 Jump in the Block If RLO = 1 (Conditional Jump)The Conditional Jump instruction c

Página 139 - 10.2 Up-Down Counter

18-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0218.4 Jump in the Block If RLO = 0 (Jump-If-Not)The Jump-If-Not instruction corresponds

Página 140

18-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0218.5 LabelLABEL is the identifier for the destination of a jump instruction. For every

Página 141 - 10.3 Up Counter

19-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Status Bit InstructionsSection Description Page19.1 Overview 19-219.2 Exception Bit BR

Página 142

19-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0219.1 OverviewThe status bit instructions are bit logic instructions (see Section 8.1)

Página 143 - 10.4 Down Counter

19-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0219.2 Exception Bit BR MemoryYou can use the Exception Bit BR Memory instruction to che

Página 144

19-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0219.3 Result BitsYou can use the Result Bit instructions to determine the relationship

Página 145 - Integer Math Instructions

19-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Status Word Bits BR CC 1 CC 0 OV OS OR STA RLO FCWrite – – – – – x x x 1I 0.0If the si

Página 146 - 11.1 Add Integer

2-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-022.3 Rules to ObserveThe order in which you create logic blocks and data blocks in a use

Página 147 - 11.2 Add Double Integer

19-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0219.4 Exception Bits UnorderedYou can use the Exception Bit Unordered instruction to ch

Página 148 - 11.3 Subtract Integer

19-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0219.5 Exception Bit OverflowYou can use the Exception Bit Overflow instruction to recog

Página 149 - 11.4 Subtract Double Integer

19-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Status Word BitsI 0.0If the signal state at input I 0.0 is 1, the SUB_Ibox is activate

Página 150 - 11.5 Multiply Integer

19-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0219.6 Exception Bit Overflow StoredYou can use the Exception Bit Overflow Stored instru

Página 151 - 11.6 Multiply Double Integer

19-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Status Word Bits BR CC 1 CC 0 OV OS OR STA RLO FCWrite – – – – – x x x 1I 0.0If the s

Página 152 - 11.7 Divide Integer

20-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Program Control InstructionsSection Description Page20.1 Calling FCs/SFCs from Coil 20

Página 153 - 11.8 Divide Double Integer

20-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0220.1 Calling FCs/SFCs from CoilYou can use the Call FC/SFC from Coil instruction to ca

Página 154

20-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02OPNIf the unconditional call of FC10 is executed, the CALL instruction performs the fo

Página 155 - Instructions

20-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0220.2 Calling FBs, FCs, SFBs, SFCs, and Multiple InstancesYou can call function blocks

Página 156

20-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02The enable output (ENO) of a Ladder box corresponds to the BR bit of thestatus word (s

Página 157 - Chapter Overview

2-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Introduction

Página 158 - 12.1 Overview

20-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02The parameters that have been defined in the VAR section of the block willbe displayed

Página 159

20-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0220.3 ReturnYou can use the Return instruction to abandon blocks. You can abandon abloc

Página 160

20-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0220.4 Master Control Relay InstructionsThe Master Control Relay (MCR, see also Section

Página 161

20-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0220.5 Master Control Relay Activate/DeactivateWith the instruction Activate Master Cont

Página 162

20-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02OB1MCRAMCRDMCRAMCRAMCRAMCRDBEUBEUOperations dependent on the MCR bitOperations not de

Página 163

20-11Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02The instruction ––(MCRA) activates the function MCR up to the next MCRD. The instruct

Página 164 - Description

20-12Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-0220.6 Master Control Relay On/OffThe Master Control Relay On (MCR<) instruction tri

Página 165

20-13Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02 RLORLORLOMSP !MAMCRA MCRD10""12345678RLO Pushed bit#"#"MSP = MCR

Página 166

20-14Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02When the MCRA instruction activates the MCR function, you can create up to eight nest

Página 167

Alphabetical Listing ofInstructionsAProgramming ExamplesBNumber RepresentationCReferencesDAppendix

Página 168

3-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Creating Logic BlocksA user program cannot exist without logic blocks. In many situatio

Página 169 - Floating-Point Numbers

T-16Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02

Página 170

A-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Alphabetical Listing of InstructionsSection Description PageA.1 Listing with Internatio

Página 171

A-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02A.1 Listing with International NamesTable A-1 provides an alphabetical listing of instr

Página 172

A-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table A-1 Ladder Logic Instructions Arranged Alphabetically by International Name, with

Página 173 - Comparison Instructions

A-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table A-1 Ladder Logic Instructions Arranged Alphabetically by International Name, with

Página 174 - 13.1 Compare Integer

A-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02A.2 Listing with International Names and SIMATIC EquivalentsTable A-2 provides an alpha

Página 175 - 13.2 Compare Double Integer

A-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table A-2 Ladder Logic Instructions Arranged Alphabetically by International Name,with

Página 176 - S And MD0 = MD4

A-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table A-2 Ladder Logic Instructions Arranged Alphabetically by International Name,with

Página 177

A-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table A-2 Ladder Logic Instructions Arranged Alphabetically by International Name,with

Página 178

A-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02A.3 Listing with SIMATIC NamesTable A-3 provides an alphabetical listing of instruction

Página 179

3-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.1 Creating Logic Blocks – OverviewLogic blocks (OBs, FBs, FCs) are made up of a varia

Página 180 - 14.1 Assign a Value

A-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table A-3 Ladder Logic Instructions Arranged Alphabetically by SIMATIC Name, with Shor

Página 181

A-11Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table A-3 Ladder Logic Instructions Arranged Alphabetically by SIMATIC Name, with Shor

Página 182 - 14.2 BCD to Integer

A-12Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02A.4 Listing with SIMATIC Names and International EquivalentsTable A-4 provides an alph

Página 183 - 14.3 Integer to BCD

A-13Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table A-4 Ladder Logic Instructions Arranged Alphabetically by SIMATIC Name, with Inte

Página 184

A-14Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table A-4 Ladder Logic Instructions Arranged Alphabetically by SIMATIC Name, with Inte

Página 185 - 14.5 BCD to Double Integer

A-15Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table A-4 Ladder Logic Instructions Arranged Alphabetically by SIMATIC Name, with Inte

Página 186 - 14.6 Double Integer to BCD

A-16Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02A.5 Listing with International Short Names and SIMATIC Short NamesTable A-5 provides a

Página 187

B-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Programming ExamplesSection Description PageB.1 Overview B-2B.2 Bit Logic Instructions

Página 188 - 14.8 Ones Complement Integer

B-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02B.1 OverviewEach ladder logic instruction described in this manual triggers a specifico

Página 189

B-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02B.2 Bit Logic InstructionsFigure B-1 shows a conveyor belt that can be activated electr

Página 190 - 14.10 Twos Complement Integer

3-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.2 Logic Blocks in the EditorBefore you start programming in the LAD Editor, you shoul

Página 191

B-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02You can write a program to control the conveyor belt shown in Figure B-1using absolute

Página 192

B-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Figure B-3 shows a conveyor belt that is equipped with two photoelectricbarriers (PEB1

Página 193 - 14.13 Round to Double Integer

B-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table B-4 Elements of Absolute Programming for Detecting DirectionSystem ComponentAbsol

Página 194

B-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02B.3 Timer InstructionsYou can use a clock pulse generator or flasher relay when you nee

Página 195 - 14.15 Ceiling

B-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02MW100M0.2 T 1SES5T#250MSM0.2Network 1: If the signal state of timer T 1 is 0, load the

Página 196 - 14.16 Floor

B-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02A signal check of timer T 1 produces the result of logic operation (RLO, seeSection 6.2

Página 197 - Word Logic Instructions

B-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table B-5 Frequencies for Clock Pulse Timer ExampleBits ofMB101/MB100DurationFrequency

Página 198 - 15.1 Overview

B-11Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02B.4 Counter and Comparison InstructionsFigure B-9 shows a system with two conveyor bel

Página 199 - 15.2 WAnd Word

B-12Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02MW200I12.0Q12.1Network 1: Counter C1 counts up at each signal change from “0” to “1” a

Página 200 - 15.3 WAnd Double Word

B-13Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02B.5 Integer Math InstructionsThe sample program in Figure B-11 shows you how to use th

Página 201 - 15.4 WOr Word

3-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02When you open a logic block, a window appears displaying the following:S The variable d

Página 202 - 15.5 WOr Double Word

B-14Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02B.6 Word Logic InstructionsThe operator of the oven shown in Figure B-12 starts the ov

Página 203 - 15.6 WXOr Word

B-15Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02T 1“Heating starts”Q 4.0RETNetwork 1: If the timer is running, then turn on the heater

Página 204 - 15.7 WXOr Double Word

B-16Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Programming Examples

Página 205 - Shift and Rotate Instructions

C-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Number NotationSection Description PageC.1 Number Notation C-2Chapter OverviewC

Página 206 - 16.1 Shift Instructions

C-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02C.1 Number NotationLadder logic instructions work with data objects of specific sizes (

Página 207

C-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table C-2 Constant Formats for Elementary Data TypesType andDescriptionSizeinBitsFormat

Página 208

C-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table C-3 Integer RangeFormat Range16-bit integer -32,768 to +32,7671 1 0 0037

Página 209

C-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table C-5 Real Number RangesFormat Range1Real numbers-3.402823E+38 to -1.175495E-38and

Página 210

C-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Real numbers (also called floating-point numbers) of the basic format, singlewidth, are

Página 211

C-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Figure C-4 shows the real number format for the following decimal values:S 10.0S  (3.1

Página 212

3-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table 3-1 Relationship between Variable Declaration and Code SectionAction in the Varia

Página 213

C-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02The binary coded decimal (BCD) format represents a decimal number byusing groups of bin

Página 214 - 16.2 Rotate Instructions

C-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02When you enter time duration using the S5TIME data type, your entries arestored in bina

Página 215

C-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02The following examples show the syntax for the date and time for Thursday,December 25,

Página 216

D-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02References/30/ Primer: S7-300 Programmable Controller,Quick Start/70/ Manual: S7-300 Pr

Página 217 - Data Block Instructions

D-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02/270/ Manual: S7-PDIAG for S7-300 and S7-400“Configuring Process Diagnostics for LAD, S

Página 218

Glossary-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02GlossaryAAbsolute addressing specifies the location of the address which is curr

Página 219 - Jump Instructions

Glossary-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02BThe bit result is the link between bit and word-oriented processing. This is an

Página 220 - 18.1 Overview

Glossary-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02DData blocks are areas in a user program which store user data. There areshared

Página 221 - Instructions

Glossary-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02FFirst check of the result of logic operation.A folder on the user interface of

Página 222

Glossary-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02When a block is input incrementally, each line or element is checkedimmediately

Página 223

iiiLadder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02PrefaceThis manual is your guide to creating user programs in the Ladder Logic(LAD) pro

Página 224 - 18.5 Label

3-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.3 Structure of the Variable Declaration TableIn the variable declaration table, you s

Página 225 - Status Bit Instructions

Glossary-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02A logic string is that portion of a user program which begins with an FC bitthat

Página 226 - 19.1 Overview

Glossary-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02OThe OR bit is needed if you perform a logical AND before OR operation.The OR bi

Página 227 - 19.2 Exception Bit BR Memory

Glossary-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02SA container for user programs, source files, and charts for S7 programmablecont

Página 228 - 19.3 Result Bits

Glossary-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02The status word is part of the register of the CPU. It contains statusinformatio

Página 229

Glossary-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02The user program contains all the statements and declarations and all the dataf

Página 230 - 19.4 Exception Bits Unordered

Index-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02IndexSymbols(Word) And Double Word (WAND_DW)instruction, 15-4–15-5(Word) And Word (

Página 231 - 19.5 Exception Bit Overflow

Index-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02ADD_I. See Add Integer math instructionADD_R. See Add Real floating-point mathinstr

Página 232

Index-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Branch, creating, 3-21Byteas data type, C-2range, 7-3, C-3CCall environment, 5-7See

Página 233

Index-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Count valueformat, 10-2range, 10-2Countersarea in memory, 10-2count valueformat, 10

Página 234

Index-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02EEdge detection, 8-19–8-25Edit, the variable declaration table, 4-5Editing, variabl

Página 235 - Program Control Instructions

3-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02The columns in the variable declaration table are interpreted as follows:Table 3-2 Colu

Página 236

Index-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02shift, 16-2–16-13shift and rotate, 16-2–16-18status bit, 19-2–19-12that evaluate th

Página 237

Index-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Midline Output ––(#)–– instruction, 8-6–8-7MOD_DI. See Return Fraction Double Integ

Página 238

Index-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02POS. See Address Positive Edge DetectioninstructionPositive RLO Edge Detection ––(P

Página 239

Index-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Set Coil ––(S) instruction, 8-9Set Counter Value ––(SC) instruction, 8-11Set Reset

Página 240

Index-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02System function blocks. See SFBSystem function blocks (SFBs)calling SFBs from a bo

Página 241 - 20.3 Return

Index-11Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02WOR_DW. See (Word) Or Double WordinstructionWOR_W. See (Word) Or Word instructionW

Página 242

Index-12Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Index

Página 243

Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-021✄Siemens AGAUT E 146Östliche Rheinbrückenstr. 50D–76181 KarlsruheFederal Republic of Germ

Página 244 - Reference Manual

2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Additional comments:_____________________________________________________________________

Página 245

3-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.4 Editing Variable Declaration Tables – OverviewAfter you have entered the required d

Página 246

3-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02To enter an array as a data type, enter the name in the “Symbol” column andthe keyword

Página 247

3-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.5 Declaring Multiple InstancesA multiple instance results from declaring a static va

Página 248

3-11Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.6 Assigning System Attributes for ParametersYou can assign system attributes to bloc

Página 249 - Appendix

3-12Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table 3-3 System Attributes for Parameters, continuedAttribute PermittedDeclaration ty

Página 250

3-13Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.7 Editing the Code Section – OverviewIn the code section you describe the program se

Página 251

3-14Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02The order in which you perform each of the following steps is not fixed.When programmi

Página 252

3-15Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.8 Basic Guidelines for Entering Ladder Logic InstructionsA Ladder network can contai

Página 253

ivLadder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02There is a wide range of both general and task-oriented user documentationavailable to s

Página 254

3-16Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02You cannot create branches that cause a short circuit. Figure 3-9 shows anexample:I 1.

Página 255

3-17Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Some coils require preceding logic and some coils cannot accept precedinglogic.S Coils

Página 256

3-18Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.9 Entering Ladder ElementsTo select a network to allow you to enter LAD elements, cl

Página 257

3-19Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02The following options are available for inserting Ladder elements:S Enter a normally o

Página 258

3-20Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02NoteIf you select the group “FB Blocks”or “FC Blocks” in the “ProgramElements” list bo

Página 259

3-21Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.10 Creating Parallel BranchesTo create OR instructions in the Ladder programming lan

Página 260

3-22Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02M2.0I1.0M2.0I1.0M2.0I1.0??.?I1.0??.?M2.0Step 1.Step 2.Step 3.Step 4.or <F8>or &l

Página 261

3-23Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.11 Editing Addresses and ParametersThe Block Editor uses the character string ??:? a

Página 262

3-24Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.12 Symbolic AddressingIn the Ladder programming language you can either enter absolu

Página 263

3-25Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02PROJ1\...\FB53-<Offline>”lampon””sensor1” ”button2”Symbol Information:I0.0 senso

Página 264

vLadder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table 1-1 Summary of the DocumentationTitleSubjectS7-300 ProgrammableControllerQuick Star

Página 265

3-26Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.13 Editing in the Overwrite ModeIn the Block Editor you can change addresses or para

Página 266

3-27Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02If at one point in a branch one parallel branch closes and another one opens,this is c

Página 267 - Programming Examples

3-28Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-023.14 Entering Titles and CommentsIn the code section of a logic block, you can enter i

Página 268 - B.1 Overview

4-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Creating Data Blocks and User-DefinedData TypesData blocks are an important part of you

Página 269 - B.2 Bit Logic Instructions

4-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-024.1 Creating Data Blocks – OverviewData blocks (DBs) are used to handle data which is w

Página 270

4-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02NoteWhen you change the declaration section of an FB, you have to recreate allthe insta

Página 271

4-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-024.2 Selecting a MethodWhen you create a DB in the SIMATIC Manager or in the LAD Editor,

Página 272

4-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-024.3 Editing the Declaration TableWhen you create single shared data blocks or UDTs, you

Página 273 - B.3 Timer Instructions

4-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-024.4 Editing Actual Data ValuesWhen you create and save a data block for the first time,

Página 274

4-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02You can overwrite the actual values in the “Actual Value” column. Thevalues you enter m

Página 275

viLadder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02To use the LAD effectively, you should already be familiar with the theorybehind S7 prog

Página 276

4-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-024.5 Creating User-Defined Data Types (UDTs)User-defined data types are data structures

Página 277

4-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02UDT56 - <Offline>Address Symbol Data Type Initial Value Commentspeedruntimemotor_

Página 278

4-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Creating Data Blocks and User-Defined Data Types

Página 279 - B.5 Integer Math Instructions

5-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Editing the Block Properties and Testingthe ProgramAfter you have created and edited th

Página 280 - B.6 Word Logic Instructions

5-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-025.1 Editing the Block PropertiesThe block properties contain additional information abo

Página 281

5-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Blocks with a name and family are easier to classify. For example you couldallocate som

Página 282

5-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02NoteAttributes such as block protection, write protection and unlinked can onlybe added

Página 283 - Number Notation

5-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-025.2 Testing your Ladder Program - OverviewYou can test your Ladder program by visually

Página 284 - C.1 Number Notation

5-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-025.3 Setting the Program StatusBefore starting the Ladder program test, you select the c

Página 285

5-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-025.4 Setting the Trigger ConditionsBy setting the trigger condition you select the call

Página 286

viiLadder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02ContentsPreface iii. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 287

5-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-025.5 Choosing a Test Environment and Starting/Stopping the ProgramStatusThere are two wa

Página 288

5-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Activating the test mode increases the scan time. If the set scan time isexceeded, the

Página 289 - S  (3.141593)

5-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Editing the Block Properties and Testing the Program

Página 290

Configuration andElements of Ladder Logic6Addressing7Bit Logic Instructions8Timer Instructions9Counter Instructions10Integer Math Instructions11Floati

Página 291

5-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02

Página 292

6-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Configuration and Elements of LadderLogicSection Description Page6.1 Elements and Box S

Página 293 - References

6-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-026.1 Elements and BoxesLadder instructions consist of elements and boxes which are conne

Página 294 - Reference

6-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02STEP 7 represents some ladder logic instructions as boxes with linesindicating inputs a

Página 295 - Glossary

6-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table 6-5 Memory Areas and Their FunctionsName of AreaFunction of AreaAccess to AreaNam

Página 296 - S Result of a comparison

6-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table 6-6 lists the maximum address ranges for various memory areas. Forthe address ran

Página 297 - S Complex data types

viiiLadder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-024 Creating Data Blocks and User-Defined Data Types 4-1. . . . . . . . . . . . . . . .

Página 298

6-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-026.2 Boolean Logic and Truth TablesA ladder logic program tracks power flow between powe

Página 299

6-7Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Figure 6-2 shows two representations of a relay logic circuit with one contactbetween a

Página 300 - S System memory

6-8Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Figure 6-3 shows a logic string of Ladder instructions that represents twonormally open

Página 301

6-9Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Figure 6-3 shows a ladder logic diagram that you can use to program twonormally open co

Página 302

6-10Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Figure 6-4 shows a logic string of Ladder instructions that represent twonormally open

Página 303

6-11Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02 Figure 6-4 shows a ladder logic diagram that you can use to program twonormally open

Página 304

6-12Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-026.3 Significance of the CPU Registers in InstructionsRegisters help the CPU perform lo

Página 305

6-13Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Bit 0 of the status word is called the first-check bit (FC bit, see Figure 6-6).At the

Página 306

6-14Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Bit 2 of the status word is called the status bit (STA bit, see Figure 6-6). Thestatus

Página 307

6-15Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Tables 6-10 through 6-15 list the significance of CC 1 and CC 0 after yourprogram exec

Página 308

ixLadder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-028.15 On-Delay Timer Coil 8-16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Página 309

6-16Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table 6-13 CC 1 and CC 0 after Comparison InstructionsCC 1CC 0 Explanation0 0 IN2 = IN

Página 310

6-17Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02!WarningPossible unintentional resetting of the BR bit to 0.When writing FBs and FCs i

Página 311

6-18Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Configuration and Elements of Ladder Logic

Página 312

7-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02AddressingSection Description Page7.1 Overview 7-27.2 Types of Addresses 7-4Chapter Ove

Página 313

7-2Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-027.1 OverviewMany ladder logic instructions work together with one or more addresses(ope

Página 314

7-3Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Table 7-1 Constant Formats for Immediate Addressing Using Addresses of Elementary Data

Página 315

7-4Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-027.2 Types of AddressesAn address of a ladder logic instruction can indicate any of the

Página 316 - Index-12

7-5Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02A pointer is a device that identifies the location of a variable. A pointercontains an

Página 317

7-6Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Addressing

Página 318

8-1Ladder Logic (LAD) for S7-300 and S7-400C79000-G7076-C504-02Bit Logic InstructionsSection Description Page8.1 Overview 8-28.2 Normally Open Contact

Comentários a estes Manuais

Sem comentários