Siemens NAN 67 Series Service Manual

Browse online or download Service Manual for Hobs Siemens NAN 67 Series. Siemens NAN 67 Series Technical data User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 318
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews

Summary of Contents

Page 1 - Programming

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

Page 2

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

Page 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

Page 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

Page 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

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

Page 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

Page 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

Page 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

Page 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

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

Page 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

Page 13

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 24

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

Page 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

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

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 35

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 46

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 64 - S Select File

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

Page 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

Page 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

Page 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

Page 68

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 78

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

Page 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

Page 80

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

Page 81

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

Page 82

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 88

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

Page 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

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 157 - Chapter Overview

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

Page 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

Page 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

Page 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

Page 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

Page 162

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

Page 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

Page 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

Page 165

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

Page 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

Page 167

Alphabetical Listing ofInstructionsAProgramming ExamplesBNumber RepresentationCReferencesDAppendix

Page 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

Page 169 - Floating-Point Numbers

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

Page 170

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 204 - 15.7 WXOr Double Word

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

Page 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

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

Page 207

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

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

Page 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

Page 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

Page 218

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 238

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

Page 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

Page 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

Page 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

Page 242

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

Page 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

Page 244 - Reference Manual

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

Page 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

Page 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

Page 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

Page 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

Page 249 - Appendix

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

Page 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

Page 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

Page 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

Page 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

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 263

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

Page 264

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

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

Page 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

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

Page 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

Page 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

Page 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

Page 277

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

Page 278

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 286

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

Page 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

Page 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

Page 289 - S  (3.141593)

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

Page 290

Configuration andElements of Ladder Logic6Addressing7Bit Logic Instructions8Timer Instructions9Counter Instructions10Integer Math Instructions11Floati

Page 291

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

Page 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

Page 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

Page 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

Page 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

Page 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

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 308

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

Page 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

Page 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

Page 311

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

Page 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

Page 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

Page 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

Page 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

Page 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

Page 317

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

Page 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

Comments to this Manuals

No comments