Siemens S7-400 Manual de Serviço

Consulte online ou descarregue Manual de Serviço para não Siemens S7-400. Siemens S7-400 Technical data Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 228
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 0
1 2 3 4 5 6 ... 227 228

Resumo do Conteúdo

Página 1 - 6ES7810-4CA08-8BW1

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

Página 2 - Disclaimer of Liability

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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.

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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 "

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 68

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 90

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 104

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 112

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

Página 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> -

Página 114

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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/

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 131

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

Página 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

Página 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

Página 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

Página 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> ---

Página 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

Página 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

Página 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

Página 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

Página 140

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

Página 141

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

Página 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

Página 143

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

Página 144

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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 ---

Página 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

Página 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

Página 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

Página 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

Página 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

Página 159

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

Página 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

Página 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

Página 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

Página 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

Página 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==

Página 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

Página 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

Página 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

Página 168

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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&

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 196 - Mnemonics (SIMATIC)

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

Página 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

Página 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

Página 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

Página 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

Página 201 - B Programming Examples

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

Página 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

Página 203

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

Página 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

Página 205

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

Página 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

Página 207 - Signal Check

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

Página 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

Página 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

Página 210

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 218 - end: AN error

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

Página 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

Página 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

Página 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

Página 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

Página 223 - C.2 Parameter Transfer

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

Página 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

Página 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

Página 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

Página 227

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

Página 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

Comentários a estes Manuais

Sem comentários