Siemens NAN 67 Series Wartungshandbuch

Stöbern Sie online oder laden Sie Wartungshandbuch nach Kochfelder Siemens NAN 67 Series herunter. Siemens NAN 67 Series Technical data Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 318
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen

Inhaltsverzeichnis

Seite 1 - Programming

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

Seite 2

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

Seite 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

Seite 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

Seite 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

Seite 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.

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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 =

Seite 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

Seite 13

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 24

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

Seite 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

Seite 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 (

Seite 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 (

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 35

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 46

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 64 - S Select File

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

Seite 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

Seite 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

Seite 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

Seite 68

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 78

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

Seite 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

Seite 80

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

Seite 81

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

Seite 82

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 88

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

Seite 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

Seite 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.

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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.

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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>

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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)

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 157 - Chapter Overview

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 162

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

Seite 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

Seite 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

Seite 165

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

Seite 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

Seite 167

Alphabetical Listing ofInstructionsAProgramming ExamplesBNumber RepresentationCReferencesDAppendix

Seite 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

Seite 169 - Floating-Point Numbers

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

Seite 170

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 204 - 15.7 WXOr Double Word

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

Seite 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

Seite 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 (

Seite 207

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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,

Seite 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

Seite 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

Seite 218

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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 (

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 238

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

Seite 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

Seite 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

Seite 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

Seite 242

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

Seite 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

Seite 244 - Reference Manual

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 249 - Appendix

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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.

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 263

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

Seite 264

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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,

Seite 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

Seite 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,

Seite 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

Seite 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

Seite 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

Seite 277

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

Seite 278

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 286

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

Seite 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

Seite 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

Seite 289 - S  (3.141593)

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

Seite 290

Configuration andElements of Ladder Logic6Addressing7Bit Logic Instructions8Timer Instructions9Counter Instructions10Integer Math Instructions11Floati

Seite 291

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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. . . . . . . . . . . . . . . .

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 308

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

Seite 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

Seite 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

Seite 311

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 317

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

Seite 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

Kommentare zu diesen Handbüchern

Keine Kommentare