Download Siemens Simatic S 7 300 - 400 -Function Block Diagram for S7-300 and S7-400 PDF

TitleSiemens Simatic S 7 300 - 400 -Function Block Diagram for S7-300 and S7-400
TagsBit Parameter (Computer Programming) String (Computer Science) Input/Output Boolean Algebra
File Size1.4 MB
Total Pages254
Table of Contents
                            Title
Preface
Contents
1 Product Overview
2 Configuration and Elements of Function Block Diagram
	2.1 Elements and Box Structure
	2.2 Boolean Logic and Truth Tables
	2.3 Significance of the CPU Registers in Statements
3 Addressing
	3.1 Overview
	3.2 Types of Addresses
4 Bit Logic Instructions
	4.1 Overview
	4.2 AND Logic Operation
	4.3 OR Logic Operation
	4.4 AND-before-OR Logic Operation and OR-before-AND Logic Operation
	4.5 Exclusive OR Logic Operation
	4.6 Insert Binary Input
	4.7 Negate Binary Input
	4.8 Assign
	4.9 Midline Output
	4.10 Save RLO to BR Memory
	4.11 Set Output
	4.12 Reset Output
	4.13 Set Counter Value
	4.14 Up Counter Instruction
	4.15 Down Counter Instruction
	4.16 Pulse Timer Instruction
	4.17 Extended Pulse Timer Instruction
	4.18 On-Delay Timer Instruction
	4.19 Retentive On-Delay Timer Instruction
	4.20 Off-Delay Timer Instruction
	4.21 Positive RLO Edge Detection
	4.22 Negative RLO Edge Detection
	4.23 Address Positive Edge Detection
	4.24 Address Negative Edge Detection
	4.25 Set_Reset Flip Flop
	4.26 Reset_Set Flip Flop
5 Timer Instructions
	5.1 Memory Areas and Components of a Timer
	5.2 Choosing the Right Timer
	5.3 Pulse S5 Timer
	5.4 Extended Pulse S5 Timer
	5.5 On-Delay S5 Timer
	5.6 Retentive On-Delay S5 Timer
	5.7 Off-Delay S5 Timer
6 Counter Instructions
	6.1 Memory Address and Components of a Counter
	6.2 Up-Down Counter
	6.3 Up Counter
	6.4 Down Counter
7 Integer Math Instructions
	7.1 Add Integer
	7.2 Add Double Integer
	7.3 Subtract Integer
	7.4 Subtract Double Integer
	7.5 Multiply Integer
	7.6 Multiply Double Integer
	7.7 Divide Integer
	7.8 Divide Double Integer
	7.9 Return Fraction Double Integer
	7.10 Evaluating the Bits of the Status Word with Integer Math Instructions
8 Floating-Point Math Instructions
	8.1 Overview
	8.2 Add Real
	8.3 Subtract Real
	8.4 Multiply Real
	8.5 Divide Real
	8.6 Evaluating the Bits of the Status Word with Floating-Point Instructions
	8.7 Forming the Absolute Value of a Floating-Point Number
	8.8 Forming the Square (SQR) of a Floating-Point Number
	8.9 Forming the Square Root (SQRT) of a Floating-Point Number
	8.10 Forming the Natural Logarithm of a Floating-Point Number
	8.11 Forming the Exponential Value of a Floating-Point Number
	8.12 Forming Trigonometric Functions of Angles as Floating-Point Numbers
9 Comparison Instructions
	9.1 Compare Integer
	9.2 Compare Double Integer
	9.3 Compare Real
10 Move and Conversion Instructions
	10.1 Assign Value
	10.2 BCD to Integer
	10.3 Integer to BCD
	10.4 Integer to Double Integer
	10.5 BCD to Double Integer
	10.6 Double Integer to BCD
	10.7 Double Integer to Real
	10.8 Ones Complement Integer
	10.9 Ones Complement Double Integer
	10.10Twos Complement Integer
	10.11Twos Complement Double Integer
	10.12Negate Real Number
	10.13Round to Double Integer
	10.14Truncate Double Integer Part
	10.15Ceiling
	10.16Floor
11 Word Logic Instructions
	11.1 Overview
	11.2 (Word) AND Word
	11.3 (Word) AND Double Word
	11.4 (Word) OR Word
	11.5 (Word) OR Double Word
	11.6 (Word) Exclusive OR Word
	11.7 (Word) Exclusive OR Double Word
12 Shift and Rotate Instructions
	12.1 Shift Instructions
	12.2 Rotate Instructions
13 Data Block Instructions
	13.1 Open Data Block
14 Jump Instructions
	14.1 Overview
	14.2 Unconditional Jump in a Block
	14.3 Conditional Jump in a Block
	14.4 Jump-If-Not
	14.5 Jump Label
15 Status Bit Instructions
	15.1 Overview
	15.2 Exception Bit Binary Result
	15.3 Result Bits
	15.4 Exception Bit Unordered
	15.5 Exception Bit Overflow
	15.6 Exception Bit Overflow Stored
16 Program Control Instructions
	16.1 Calling an FC/SFC without Parameters
	16.2 Calling an FB, FC, SFB, SFC, and Multiple Instances
	16.3 Return
	16.4 Master Control Relay Instructions
	16.5 Master Control Relay Activate/Deactivate
	16.6 Master Control Relay On/Off
Appendix
	A Alphabetical Lists of Instructions
		A.1 List of Instructions with International Names
		A.2 List of Instructions with International (English) Names and German Equivalents
		A.3 List of Instructions with German SIMATIC Names
		A.4 List of Instructions with German Names and International (English) Equivalents
	B Programming Examples
		B.1 Overview
		B.2 Bit Logic Instructions
		B.3 Timer Instructions
		B.4 Counter and Comparison Instructions
		B.5 Integer Math Instructions
		B.6 Word Logic Instructions
	C References
Glossary
	A
	B
	C
	D
	F
	I
	K
	L
	M
	N
	O
	P
	R
	S
	U
	V
Index
	Symbols
	A
	B
	C
	D
	E
	F
	G
	I
	J
	L
	M
	N
	O
	R
	P
	R
	S
	T
	U
	X
	W
	Z
Remarks Form
                        
Document Text Contents
Page 1

Preface, Contents

Product Overview 1

Configuration and Elements of
Function Block Diagram 2

Addressing 3

Bit Logic Instructions 4

Timer Instructions 5

Counter Instructions 6

Integer Math Instructions 7

Floating-Point Math Instructions 8

Comparison Instructions 9

Move and Conversion
Instructions 10

Word Logic Instructions 11

Shift and Rotate Instructions 12

Data Block Instructions 13

Jump Instructions 14

Status Bit Instructions 15

Program Control Instructions 16

Appendix

Glossary, Index

10/98

C79000-G7076-C566

Release 01

Function Block Diagram (FBD)
for S7-300 and S7-400
Programming

Reference Manual

SIMATIC S7

This reference manual is part of the documentation
package with the order number:

6ES7810-4CA04-8BR0

Page 127

10-5
Function Block Diagram (FBD) for S7-300 and S7-400
C79000-G7076-C566-01

10.4 Integer to Double Integer

The Integer to Double Integer instruction reads the content of the input
parameter IN as an integer and converts the integer to a double integer. The
output parameter OUT contains the result. ENO always has the same signal
state as EN.

Table 10-4 Integer to Double Integer Box and Parameters

FBD Box Parameters Data Type Memory Area Description

I DI
EN BOOL I, Q, M, D, L, T, C Enable input

I_DI

EN

IN

OUT

ENO

IN INT I, Q, M, D, L or
constant

Value to be converted

IN ENO
OUT DINT I, Q, M, D, L Result

ENO BOOL I, Q, M, D, L Enable output

Status Word Bits

BR CC1 CC0 OV OS OR STA RLO FC
writes 1 – – – – 0 1 1 1

The conversion is executed if the signal
state of I0.0 is 1. The content of memory
word MW10 is read as an integer and
converted to a double integer. The result is
stored in memory double word MD12. If the
conversion is executed, the signal state of
output Q4.0 is 1 (ENO = EN).

Instruction is executed (EN = 1):

MW10

MD12
Q4.0

I0.0

=IN

OUTEN

ENO

I_DI

Figure 10-4 Integer to Double Integer

Description

Move and Conversion Instructions

Similer Documents