Siemens S7-400 Wartungshandbuch

Stöbern Sie online oder laden Sie Wartungshandbuch nach Nein Siemens S7-400 herunter. Siemens S7-400 Technical data Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 228
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
s
Preface,
Contents
Bit Logic Instructions
1
Comparison Instructions
2
Conversion Instructions
3
Counter Instructions
4
Data Block Instructions
5
Logic Control Instructions
6
Integer Math Instructions
7
Floating Point Math
Instructions
8
Move Instructions
9
Program Control Instructions
10
Shift and Rotate Instructions
11
Status Bit Instructions
12
Timer Instructions
13
Word Logic Instructions
14
Appendix
Overview of All LAD
Instructions
A
SIMATIC
Ladder Logic (LAD) for
S7-300 and S7-400
Programming
Reference Manual
This manual is part of the documentation
package with the order number:
6ES7810-4CA08-8BW1
Programming Examples
B
Edition 03/2006
A5E00706949-01
Working with Ladder Logic
C
Index
Seitenansicht 0
1 2 3 4 5 6 ... 227 228

Inhaltsverzeichnis

Seite 1 - 6ES7810-4CA08-8BW1

s Preface, Contents Bit Logic Instructions 1 Comparison Instructions 2 Conversion Instructions 3 Counter Instructions 4 Data Block Instructions

Seite 2 - Disclaimer of Liability

Contents Ladder Logic (LAD) for S7-300 and S7-400 Programming x A5E00706949-01 13 Timer Instructions...

Seite 3 - Preface

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 8-6 A5E00706949-01 8.3.3 MUL_R Multiply Real Symbol MUL_RE

Seite 4 - Requirements

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 8-7 8.3.4 DIV_R Divide Real Symbol DIV_RENOU

Seite 5 - Training Centers

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 8-8 A5E00706949-01 8.3.5 ABS Establish the Absolute Value

Seite 6 - Technical Support

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 8-9 8.4 Extended Instructions 8.4.1 SQR Estab

Seite 7 - Contents

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 8-10 A5E00706949-01 8.4.2 SQRT Establish the Square Root S

Seite 8

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 8-11 8.4.3 EXP Establish the Exponential Valu

Seite 9

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 8-12 A5E00706949-01 8.4.4 LN Establish the Natural Logarit

Seite 10 - A5E00706949-01

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 8-13 8.4.5 SIN Establish the Sine Value Symbo

Seite 11 - 1 Bit Logic Instructions

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 8-14 A5E00706949-01 8.4.6 COS Establish the Cosine Value S

Seite 12

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 8-15 8.4.7 TAN Establish the Tangent Value Sy

Seite 13

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 1-1 1 Bit Logic Instructions 1.1 Overview of Bit Logic Instructions Description

Seite 14 - 1.4 XOR Bit Exclusive OR

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 8-16 A5E00706949-01 8.4.8 ASIN Establish the Arc Sine Valu

Seite 15

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 8-17 8.4.9 ACOS Establish the Arc Cosine Valu

Seite 16 - 1.6 ---( ) Output Coil

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 8-18 A5E00706949-01 8.4.10 ATAN Establish the Arc Tangent

Seite 17

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 9-1 9 Move Instructions 9.1 MOVE Assign a Value Symbol MOVEINENOENOUT Paramete

Seite 18

Move Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 9-2 A5E00706949-01 MCR (Master Control Relay) dependency MCR dependency is

Seite 19

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 10-1 10 Program Control Instructions 10.1 Overview of Program Control Instructi

Seite 20 - 1.8 ---( R ) Reset Coil

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 10-2 A5E00706949-01 10.2 ---(Call) Call FC SFC from Coil (with

Seite 21

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 10-3 Example MCRDI 0.0I 0.1MCRACALLQ 4.0...FC10.

Seite 22 - 1.9 ---( S ) Set Coil

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 10-4 A5E00706949-01 10.3 CALL_FB Call FB from Box Symbol FB no

Seite 23

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 10-5 Example MCRA...Q 4.0OPNDB10...FB11EN ENODB1

Seite 24

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-2 A5E00706949-01 1.2 ---| |--- Normally Open Contact (Address) S

Seite 25

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 10-6 A5E00706949-01 10.4 CALL_FC Call FC from Box Symbol FC no

Seite 26

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 10-7 Example MCRA...Q 4.0OPNDB10...FC10EN ENO

Seite 27

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 10-8 A5E00706949-01 10.5 CALL_SFB Call System FB from Box Symb

Seite 28

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 10-9 Example MCRA...Q 4.0OPNDB10...SFB 8EN ENORE

Seite 29

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 10-10 A5E00706949-01 10.6 CALL_SFC Call System FC from Box Sy

Seite 30

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 10-11 Example MCRA...Q 4.0OPNDB10...SFC20EN E

Seite 31

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 10-12 A5E00706949-01 10.7 Call Multiple Instance Symbol #Variabl

Seite 32 - Symbol

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 10-13 10.8 Call Block from a Library The libraries

Seite 33 - 1.17 Immediate Read

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 10-14 A5E00706949-01 10.10 ---(MCR<) Master Control Relay O

Seite 34 - 1.18 Immediate Write

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 10-15 Example MCR>I 0.0I 0.3Q 4.1I 0.4I 0.1MCR z

Seite 35

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 1-3 1.3 ---| / |--- Normally Closed Contact (Address) S

Seite 36 - Bit Logic Instructions

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 10-16 A5E00706949-01 10.11 ---(MCR>) Master Control Relay O

Seite 37 - 2 Comparison Instructions

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 10-17 Example MCR>I 0.0I 0.3Q 4.1I 0.4I 0.1MCR z

Seite 38 - Symbols

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 10-18 A5E00706949-01 10.12 ---(MCRA) Master Control Relay Acti

Seite 39

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 10-19 10.13 ---(MCRD) Master Control Relay Deacti

Seite 40

Program Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 10-20 A5E00706949-01 10.14 ---(RET) Return Symbol ---( RET ) De

Seite 41

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 11-1 11 Shift and Rotate Instructions 11.1 Shift Instructions 11.1.1 Overview of

Seite 42 - 2.4 CMP ? R Compare Real

Shift and Rotate Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 11-2 A5E00706949-01 11.1.2 SHR_I Shift Right Integer Symbol S

Seite 43

Shift and Rotate Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 11-3 Status word BR CC 1 CC 0 OV OS OR

Seite 44 - Comparison Instructions

Shift and Rotate Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 11-4 A5E00706949-01 11.1.3 SHR_DI Shift Right Double Integer

Seite 45 - 3 Conversion Instructions

Shift and Rotate Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 11-5 11.1.4 SHL_W Shift Left Word Symbol SHL_WEN

Seite 46 - 3.2 BCD_I BCD to Integer

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-4 A5E00706949-01 1.4 XOR Bit Exclusive OR For the XOR function, a

Seite 47 - 3.3 I_BCD Integer to BCD

Shift and Rotate Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 11-6 A5E00706949-01 Example SHL_WNINENMW0 MW4Q 4.0I 0.0MW2ENOOU

Seite 48

Shift and Rotate Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 11-7 11.1.5 SHR_W Shift Right Word Symbol SHR_WE

Seite 49

Shift and Rotate Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 11-8 A5E00706949-01 11.1.6 SHL_DW Shift Left Double Word Symb

Seite 50

Shift and Rotate Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 11-9 11.1.7 SHR_DW Shift Right Double Word Symbo

Seite 51

Shift and Rotate Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 11-10 A5E00706949-01 Example SHR_DWNINENMD0 MD10Q 4.0I 0.0MW4EN

Seite 52

Shift and Rotate Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 11-11 11.2 Rotate Instructions 11.2.1 Overview of

Seite 53

Shift and Rotate Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 11-12 A5E00706949-01 Description ROL_DW (Rotate Left Double Wo

Seite 54

Shift and Rotate Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 11-13 11.2.3 ROR_DW Rotate Right Double Word Sym

Seite 55

Shift and Rotate Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 11-14 A5E00706949-01 Status word BR CC 1 CC 0 OV OS O

Seite 56

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 12-1 12 Status Bit Instructions 12.1 Overview of Statusbit Instructions Descrip

Seite 57

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 1-5 1.5 --|NOT|-- Invert Power Flow Symbol ---|NOT|--- D

Seite 58

Status Bit Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 12-2 A5E00706949-01 12.2 OV ---| |--- Exception Bit Overflow Symb

Seite 59 - 3.15 CEIL Ceiling

Status Bit Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 12-3 12.3 OS ---| |--- Exception Bit Overflow Stored

Seite 60 - 3.16 FLOOR Floor

Status Bit Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 12-4 A5E00706949-01 The MUL_I box is activated by signal state "

Seite 61 - 4 Counter Instructions

Status Bit Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 12-5 12.4 UO ---| |--- Exception Bit Unordered Symbo

Seite 62 - Counter Instructions

Status Bit Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 12-6 A5E00706949-01 12.5 BR ---| |--- Exception Bit Binary Result

Seite 63 - 4.2 S_CUD Up-Down Counter

Status Bit Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 12-7 12.6 ==0 ---| |--- Result Bit Equal 0 Symbol or

Seite 64

Status Bit Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 12-8 A5E00706949-01 12.7 <>0 ---| |--- Result Bit Not Equal

Seite 65 - 4.3 S_CU Up Counter

Status Bit Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 12-9 12.8 >0 ---| |--- Result Bit Greater Than 0

Seite 66

Status Bit Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 12-10 A5E00706949-01 12.9 <0 ---| |--- Result Bit Less Than 0

Seite 67 - 4.4 S_CD Down Counter

Status Bit Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 12-11 12.10 >=0 ---| |--- Result Bit Greater Equa

Seite 68

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-6 A5E00706949-01 1.6 ---( ) Output Coil Symbol <address> -

Seite 69

Status Bit Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 12-12 A5E00706949-01 12.11 <=0 ---| |--- Result Bit Less Equal

Seite 70 - <C no.> <Z no.>

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 13-1 13 Timer Instructions 13.1 Overview of Timer Instructions Description You

Seite 71

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 13-2 A5E00706949-01 13.2 Location of a Timer in Memory and Components of

Seite 72

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 13-3 Time Base Bits 12 and 13 of the timer word contain the t

Seite 73

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 13-4 A5E00706949-01 Reading the Time and the Time Base Each timer box prov

Seite 74

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 13-5 13.3 S_PULSE Pulse S5 Timer Symbol S_PULSEBITVRBCDS_IM

Seite 75 - 5 Data Block Instructions

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 13-6 A5E00706949-01 Timing Diagram Pulse timer characteristics: t t tt = P

Seite 76 - Data Block Instructions

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 13-7 13.4 S_PEXT Extended Pulse S5 Timer Symbol S_PEXTBITVR

Seite 77 - 6 Logic Control Instructions

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 13-8 A5E00706949-01 Timing Diagram Extended pulse timer characteristics: t

Seite 78

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 13-9 13.5 S_ODT On-Delay S5 Timer Symbol S_ODTBITVRBCDS_EVE

Seite 79

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 1-7 Example I 0.0 I 0.1I 0.2Q 4.0Q 4.1I 0.3 The signal st

Seite 80

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 13-10 A5E00706949-01 Timing Diagram On-Delay timer characteristics: tt = P

Seite 81 - 6.5 LABEL Label

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 13-11 13.6 S_ODTS Retentive On-Delay S5 Timer Symbol S_ODTS

Seite 82 - Logic Control Instructions

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 13-12 A5E00706949-01 Timing Diagram Retentive On-Delay timer characteristi

Seite 83 - 7 Integer Math Instructions

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 13-13 13.7 S_OFFDT Off-Delay S5 Timer Symbol S_OFFDTBITVRBC

Seite 84 - Math Instructions

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 13-14 A5E00706949-01 Timing Diagram Off-Delay timer characteristics: t t t

Seite 85 - 7.3 ADD_I Add Integer

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 13-15 13.8 ---( SP ) Pulse Timer Coil Symbol English Germa

Seite 86 - 7.4 SUB_I Subtract Integer

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 13-16 A5E00706949-01 Example Network 3Network 2Network 1I 0.0SPT5T5Q 4.0S5

Seite 87 - 7.5 MUL_I Multiply Integer

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 13-17 13.9 ---( SE ) Extended Pulse Timer Coil Symbol Engl

Seite 88 - 7.6 DIV_I Divide Integer

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 13-18 A5E00706949-01 Example Network 3Network 2Network 1I 0.0SET5T5Q A.0S5

Seite 89

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 13-19 13.10 ---( SD ) On-Delay Timer Coil Symbol English G

Seite 90

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-8 A5E00706949-01 1.7 ---( # )--- Midline Output Symbol <address

Seite 91

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 13-20 A5E00706949-01 Example Network 3Network 2Network 1I 0.0SDT5T5Q A.0S5

Seite 92

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 13-21 13.11 ---( SS ) Retentive On-Delay Timer Coil Symbol

Seite 93

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 13-22 A5E00706949-01 Example Network 3Network 2Network 1I 0.0SST5T5Q A.0S5

Seite 94 - Integer Math Instructions

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 13-23 13.12 ---( SF ) Off-Delay Timer Coil Symbol English

Seite 95

Timer Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 13-24 A5E00706949-01 Example Network 3Network 2Network 1I 0.0SFT5T5Q A.0S5

Seite 96 - Point Math Instructions

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 14-1 14 Word Logic Instructions 14.1 Overview of Word logic instructions Descr

Seite 97 - 8.3 Basic Instructions

Word Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 14-2 A5E00706949-01 14.2 WAND_W (Word) AND Word Symbol WAND_WEN ENO

Seite 98

Word Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 14-3 14.3 WOR_W (Word) OR Word Symbol WOR_WEN ENOIN2OU

Seite 99

Word Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 14-4 A5E00706949-01 14.4 WAND_DW (Word) AND Double Word Symbol WAND

Seite 100 - Example

Word Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 14-5 14.5 WOR_DW (Word) OR Double Word Symbol WOR_DWEN

Seite 101

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 1-9 Example M 1.1 M 2.2 Q 4.0I 1.0 I 1.1M 1.1 has the RLO

Seite 102

Word Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 14-6 A5E00706949-01 14.6 WXOR_W (Word) Exclusive OR Word Symbol WXO

Seite 103 - 8.4 Extended Instructions

Word Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 14-7 14.7 WXOR_DW (Word) Exclusive OR Double Word Symb

Seite 104

Word Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 14-8 A5E00706949-01

Seite 105

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 A-1 A Overview of All LAD Instructions A.1 LAD Instructions Sorted According to

Seite 106

Overview of All LAD Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A-2 A5E00706949-01 English Mnemonics German Mnemonics Program

Seite 107

Overview of All LAD Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 A-3 English Mnemonics German Mnemonics Program

Seite 108

Overview of All LAD Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A-4 A5E00706949-01 A.2 LAD Instructions Sorted According to G

Seite 109

Overview of All LAD Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 A-5 German Mnemonics English Mnemonics Program

Seite 110

Overview of All LAD Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A-6 A5E00706949-01 German Mnemonics English Mnemonics Program

Seite 111

Overview of All LAD Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 A-7 German Mnemonics English Mnemonics Program

Seite 112

Siemens AG Automation and Drives Postfach 4848 90437 NÜRNBERG GERMANY A5E00706949-01 03/2006 Copyright © Siemens AG 2006 Technical data subject to

Seite 113 - 9 Move Instructions

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-10 A5E00706949-01 1.8 ---( R ) Reset Coil Symbol <address> -

Seite 114

Overview of All LAD Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A-8 A5E00706949-01

Seite 115

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 B-1 B Programming Examples B.1 Overview of Programming Examples Practical Applic

Seite 116

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming B-2 A5E00706949-01 B.2 Example: Bit Logic Instructions Example 1: Control

Seite 117

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 B-3 Ladder Logic Program to control the conveyor belt Networ

Seite 118

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming B-4 A5E00706949-01 Example 2: Detecting the Direction of a Conveyor Belt

Seite 119

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 B-5 Ladder Logic Program for Detecting the Direction of a Co

Seite 120

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming B-6 A5E00706949-01 B.3 Example: Timer Instructions Clock Pulse Generator

Seite 121

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 B-7 Network 5: The MOVE instruction allows you to output the

Seite 122

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming B-8 A5E00706949-01 Achieving a Specific Frequency From the individual bits

Seite 123

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 B-9 Signal state of Bit 1 of MB 101 (M 101.1) Frequency = 1/

Seite 124 - Symbol

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 1-11 Example I 0.0 I 0.1I 0.2RQ 4.0T1I 0.3C1I 0.4RRNetwor

Seite 125 - SRCBLK RET_VAL

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming B-10 A5E00706949-01 B.4 Example: Counter and Comparison Instructions Stor

Seite 126 - 10.7 Call Multiple Instance

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 B-11 Ladder Logic Program that Activates the Indicator Lamps

Seite 127

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming B-12 A5E00706949-01 Network 5: If the counter value is greater than or eq

Seite 128

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 B-13 B.5 Example: Integer Math Instructions Solving a Math P

Seite 129

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming B-14 A5E00706949-01 B.6 Example: Word Logic Instructions Heating an Oven

Seite 130

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 B-15 Ladder Logic Program Network 1: If the timer is runnin

Seite 131

Programming Examples Ladder Logic (LAD) for S7-300 and S7-400 Programming B-16 A5E00706949-01

Seite 132

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 C-1 C Working with Ladder Logic C.1 EN/ENO Mechanism The enable (EN) and enable

Seite 133

Working with Ladder Logic Ladder Logic (LAD) for S7-300 and S7-400 Programming C-2 A5E00706949-01 Note on Creating Your Own Blocks If you want to pr

Seite 134 - 10.14 ---(RET) Return

Working with Ladder Logic Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 C-3 C.1.1 Adder with EN and with ENO Connected If the

Seite 135 - 11.1 Shift Instructions

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-12 A5E00706949-01 1.9 ---( S ) Set Coil Symbol <address> ---

Seite 136

Working with Ladder Logic Ladder Logic (LAD) for S7-300 and S7-400 Programming C-4 A5E00706949-01 C.1.2 Adder with EN and without ENO Connected If

Seite 137

Working with Ladder Logic Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 C-5 C.1.3 Adder without EN and with ENO Connected If t

Seite 138

Working with Ladder Logic Ladder Logic (LAD) for S7-300 and S7-400 Programming C-6 A5E00706949-01 C.1.4 Adder without EN and without ENO Connected

Seite 139

Working with Ladder Logic Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 C-7 C.2 Parameter Transfer The parameters of a block a

Seite 140

Working with Ladder Logic Ladder Logic (LAD) for S7-300 and S7-400 Programming C-8 A5E00706949-01

Seite 141

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 Index-1 Index ( ---( )... 1

Seite 142

Index Ladder Logic (LAD) for S7-300 and S7-400 Programming Index-2 A5E00706949-01 B BCD to Double Integer ... 3-5 BCD to Int

Seite 143

Index Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 Index-3 J Jump Instructions ... 6-5 Jump-I

Seite 144

Index Ladder Logic (LAD) for S7-300 and S7-400 Programming Index-4 A5E00706949-01 Retentive On-Delay Timer Coil... 13-21 Return...

Seite 145 - 11.2 Rotate Instructions

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 1-13 Example I 0.0 I 0.1I 0.2SQ 4.0 The signal state of o

Seite 146

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-14 A5E00706949-01 1.10 RS Reset-Set Flip Flop Symbol RSSQ<addre

Seite 147

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 1-15 Example RSRQM 0.0SI 0.0I 0.1Q 4.0 If the signal stat

Seite 148

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-16 A5E00706949-01 1.11 SR Set-Reset Flip Flop Symbol SRSQ<addre

Seite 149

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 1-17 Example SRSQM 0.0RI 0.0I 0.1Q 4.0 If the signal stat

Seite 150

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-18 A5E00706949-01 1.12 ---( N )--- Negative RLO Edge Detection Sym

Seite 151

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 1-19 1.13 ---( P )--- Positive RLO Edge Detection Symbo

Seite 152 - Status Bit Instructions

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 iii Preface Purpose This manual is your guide to creating user programs in the La

Seite 153

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-20 A5E00706949-01 1.14 ---(SAVE) Save RLO into BR Memory Symbol ---

Seite 154

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 1-21 1.15 NEG Address Negative Edge Detection Symbol NE

Seite 155 - Examples

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-22 A5E00706949-01 1.16 POS Address Positive Edge Detection Symbol

Seite 156

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 1-23 1.17 Immediate Read Description For the Immediate R

Seite 157

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-24 A5E00706949-01 1.18 Immediate Write Description For the Immediat

Seite 158

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 1-25 Example Ladder network equivalent of Immediate Write

Seite 159

Bit Logic Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 1-26 A5E00706949-01

Seite 160

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 2-1 2 Comparison Instructions 2.1 Overview of Comparison Instructions Descript

Seite 161

Comparison Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 2-2 A5E00706949-01 2.2 CMP ? I Compare Integer Symbols CMP== IIN2IN1

Seite 162 - Time Value

Comparison Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 2-3 Example CMP>= IIN2IN1MW2MW0I 0.1SQ 4.0I 0.0 Output

Seite 163 - Time Base

Preface Ladder Logic (LAD) for S7-300 and S7-400 Programming iv A5E00706949-01 Requirements To use this Ladder Logic manual effectively, you should

Seite 164 - Choosing the right Timer

Comparison Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 2-4 A5E00706949-01 2.3 CMP ? D Compare Double Integer Symbols CMP==

Seite 165

Comparison Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 2-5 Example CMP>= DIN2IN1MD4MD0I 0.1SQ 4.0I 0.0I 0.2 O

Seite 166 - Timing Diagram

Comparison Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 2-6 A5E00706949-01 2.4 CMP ? R Compare Real Symbols CMP== RIN2IN1CM

Seite 167

Comparison Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 2-7 Example CMP>= RIN2IN1MD4MD0I 0.1SQ 4.0I 0.0I 0.2 O

Seite 168

Comparison Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 2-8 A5E00706949-01

Seite 169

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 3-1 3 Conversion Instructions 3.1 Overview of Conversion Instructions Descripti

Seite 170

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 3-2 A5E00706949-01 3.2 BCD_I BCD to Integer Symbol BCD_IENOENINOUT

Seite 171

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 3-3 3.3 I_BCD Integer to BCD Symbol I_BCDENOENINOUT Pa

Seite 172

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 3-4 A5E00706949-01 3.4 I_DINT Integer to Double Integer Symbol I_DIN

Seite 173

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 3-5 3.5 BCD_DI BCD to Double Integer Symbol BCD_DIENOEN

Seite 174

Preface Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 v Online Help The manual is complemented by an online help which is inte

Seite 175

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 3-6 A5E00706949-01 3.6 DI_BCD Double Integer to BCD Symbol DI_BCDENO

Seite 176

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 3-7 3.7 DI_REAL Double Integer to Floating-Point Symbol

Seite 177

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 3-8 A5E00706949-01 3.8 INV_I Ones Complement Integer Symbol INV_IENO

Seite 178

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 3-9 3.9 INV_DI Ones Complement Double Integer Symbol INV

Seite 179

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 3-10 A5E00706949-01 3.10 NEG_I Twos Complement Integer Symbol NEG_IE

Seite 180

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 3-11 3.11 NEG_DI Twos Complement Double Integer Symbol

Seite 181

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 3-12 A5E00706949-01 3.12 NEG_R Negate Floating-Point Number Symbol N

Seite 182

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 3-13 3.13 ROUND Round to Double Integer Symbol ROUNDENO

Seite 183

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 3-14 A5E00706949-01 3.14 TRUNC Truncate Double Integer Part Symbol T

Seite 184

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 3-15 3.15 CEIL Ceiling Symbol CEILENOENIN OUT Parameter

Seite 185

Preface Ladder Logic (LAD) for S7-300 and S7-400 Programming vi A5E00706949-01 Technical Support You can reach the Technical Support for all A&

Seite 186

Conversion Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 3-16 A5E00706949-01 3.16 FLOOR Floor Symbol FLOORENOENIN OUT Parame

Seite 187 - 14.3 WOR_W (Word) OR Word

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 4-1 4 Counter Instructions 4.1 Overview of Counter Instructions Area in Memory

Seite 188

Counter Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 4-2 A5E00706949-01 Bit Configuration in the Counter You provide a counte

Seite 189

Counter Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 4-3 4.2 S_CUD Up-Down Counter Symbol S_CUDSQCVPVRCV_BCDCUC

Seite 190

Counter Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 4-4 A5E00706949-01 Description S_CUD (Up-Down Counter) is preset with t

Seite 191

Counter Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 4-5 4.3 S_CU Up Counter Symbol S_CUPVQCVRCV_BCDCUSEnglish

Seite 192 - Word Logic Instructions

Counter Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 4-6 A5E00706949-01 Status word BR CC 1 CC 0 OV OS OR STA RLO

Seite 193 - Mnemonics (International)

Counter Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 4-7 4.4 S_CD Down Counter Symbol S_CDPVQCVRCV_BCDCDSEnglis

Seite 194

Counter Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 4-8 A5E00706949-01 Status word BR CC 1 CC 0 OV OS OR STA RLO

Seite 195

Counter Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 4-9 4.5 ---( SC ) Set Counter Value Symbol English German

Seite 196 - Mnemonics (SIMATIC)

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 vii Contents 1 Bit Logic Instructions ...

Seite 197

Counter Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 4-10 A5E00706949-01 4.6 ---( CU ) Up Counter Coil Symbol English Germ

Seite 198

Counter Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 4-11 Example I 0.1C10CUNetwork 1Network 2Network 3I 0.0C10S

Seite 199

Counter Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 4-12 A5E00706949-01 4.7 ---( CD ) Down Counter Coil Symbol English Ge

Seite 200

Counter Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 4-13 Example I 0.1Network 4Network 3Network 1Network 2C10CU

Seite 201 - B Programming Examples

Counter Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 4-14 A5E00706949-01

Seite 202

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 5-1 5 Data Block Instructions 5.1 ---(OPN) Open Data Block: DB or DI Symbol &l

Seite 203

Data Block Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 5-2 A5E00706949-01

Seite 204

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 6-1 6 Logic Control Instructions 6.1 Overview of Logic Control Instructions Desc

Seite 205

Logic Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 6-2 A5E00706949-01 6.2 ---(JMP)--- Unconditional Jump Symbol <

Seite 206 - Clock Pulse Generator

Logic Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 6-3 6.3 ---(JMP)--- Conditional Jump Symbol <lab

Seite 207 - Signal Check

Contents Ladder Logic (LAD) for S7-300 and S7-400 Programming viii A5E00706949-01 4 Counter Instructions...

Seite 208

Logic Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 6-4 A5E00706949-01 6.4 ---( JMPN ) Jump-If-Not Symbol <label

Seite 209 - Programming Examples

Logic Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 6-5 6.5 LABEL Label Symbol LABEL Description LABE

Seite 210

Logic Control Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 6-6 A5E00706949-01

Seite 211

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 7-1 7 Integer Math Instructions 7.1 Overview of Integer Math Instructions Desc

Seite 212

Integer Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 7-2 A5E00706949-01 7.2 Evaluating the Bits of the Status Word with

Seite 213 - Ladder Logic Program

Integer Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 7-3 7.3 ADD_I Add Integer Symbol ADD_IENOUTIN2ENOIN1

Seite 214 - Heating an Oven

Integer Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 7-4 A5E00706949-01 7.4 SUB_I Subtract Integer Symbol SUB_IENOUTIN2

Seite 215

Integer Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 7-5 7.5 MUL_I Multiply Integer Symbol MUL_IENOUTIN2E

Seite 216 - Programming Examples

Integer Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 7-6 A5E00706949-01 7.6 DIV_I Divide Integer Symbol DIV_IENOUTIN2E

Seite 217 - C Working with Ladder Logic

Integer Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 7-7 7.7 ADD_DI Add Double Integer Symbol ADD_DIENOUTI

Seite 218 - end: AN error

Contents Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 ix 9 Move Instructions ...

Seite 219

Integer Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 7-8 A5E00706949-01 7.8 SUB_DI Subtract Double Integer Symbol SUB_D

Seite 220

Integer Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 7-9 7.9 MUL_DI Multiply Double Integer Symbol MUL_DIE

Seite 221

Integer Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 7-10 A5E00706949-01 7.10 DIV_DI Divide Double Integer Symbol DIV_D

Seite 222 - 5 NOP 0

Integer Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 7-11 7.11 MOD_DI Return Fraction Double Integer Symbo

Seite 223 - C.2 Parameter Transfer

Integer Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 7-12 A5E00706949-01

Seite 224 - Working with Ladder Logic

Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 8-1 8 Floating Point Math Instructions 8.1 Overview of Floating-Point Math Inst

Seite 225

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 8-2 A5E00706949-01 8.2 Evaluating the Bits of the Status Wo

Seite 226

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 8-3 8.3 Basic Instructions 8.3.1 ADD_R Add Re

Seite 227

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming 8-4 A5E00706949-01 Example ADD_RENOUTIN2ENOIN1MD4MD0MD10I 0.

Seite 228

Floating Point Math Instructions Ladder Logic (LAD) for S7-300 and S7-400 Programming A5E00706949-01 8-5 8.3.2 SUB_R Subtract Real Symbol SUB_RENO

Kommentare zu diesen Handbüchern

Keine Kommentare