Ladder Logic (lad) for S7-300 and S7-400 Programming
Yüklə
1,39 Mb.
Pdf görüntüsü
səhifə
16/16
tarix
05.05.2020
ölçüsü
1,39 Mb.
#31077
1
...
8
9
10
11
12
13
14
15
16
STEP 7 - Ladder Logic for S7-300 and S7-400
Document Outline
Ladder Logic (LAD) for S7-300 andS7-400
Programming
Legal information
Preface
Table of Contents
1 Bit Logic Instructions
1.1 Overview of Bit Logic Instructions
1.2 ---| |--- Normally Open Contact (Address)
1.3 ---| / |--- Normally Closed Contact (Address)
1.4 XOR Bit Exclusive OR
1.5 --|NOT|-- Invert Power Flow
1.6 ---( ) Output Coil
1.7 ---( # )--- Midline Output
1.8 ---( R ) Reset Coil
1.9 ---( S ) Set Coil
1.10 RS Reset-Set Flip Flop
1.11 SR Set-Reset Flip Flop
1.12 ---( N )--- Negative RLO Edge Detection
1.13 ---( P )--- Positive RLO Edge Detection
1.14 ---(SAVE) Save RLO into BR Memory
1.15 NEG Address
Negative Edge Detection
1.16 POS Address Positive Edge Detection
1.17 Immediate Read
1.18 Immediate Write
2 Comparison Instructions
2.1 Overview of Comparison Instructions
2.2 CMP ? I Compare Integer
2.3 CMP ? D Compare Double Integer
2.4 CMP ? R Compare Real
3 Conversion Instructions
3.1 Overview of Conversion Instructions
3.2 BCD_I BCD to Integer
3.3 I_BCD Integer to BCD
3.4 I_DINT Integer to Double Integer
3.5 BCD_DI BCD to Double Integer
3.6 DI_BCD Double Integer to BCD
3.7 DI_REAL Double
Integer to Floating-Point
3.8 INV_I Ones Complement Integer
3.9 INV_DI Ones Complement Double Integer
3.10 NEG_I Twos Complement Integer
3.11 NEG_DI Twos Complement Double Integer
3.12 NEG_R Negate Floating-Point Number
3.13 ROUND Round to Double Integer
3.14 TRUNC Truncate Double Integer Part
3.15 CEIL Ceiling
3.16 FLOOR Floor
4 Counter Instructions
4.1 Overview of Counter Instructions
4.2 S_CUD Up-Down Counter
4.3 S_CU Up Counter
4.4 S_CD Down Counter
4.5 ---( SC ) Set Counter Value
4.6 ---( CU )
Up Counter Coil
4.7 ---( CD ) Down Counter Coil
5 Data Block Instructions
5.1 ---(OPN) Open Data Block: DB or DI
6 Logic Control Instructions
6.1 Overview of Logic Control Instructions
6.2 ---(JMP)--- Unconditional Jump
6.3 ---(JMP)--- Conditional Jump
6.4 ---( JMPN ) Jump-If-Not
6.5 LABEL Label
7 Integer Math Instructions
7.1 Overview of Integer Math Instructions
7.2 Evaluating the Bits of the Status Word with Integer Math Instructions
7.3 ADD_I Add Integer
7.4 SUB_I Subtract Integer
7.5 MUL_I Multiply Integer
7.6 DIV_I
Divide Integer
7.7 ADD_DI Add Double Integer
7.8 SUB_DI Subtract Double Integer
7.9 MUL_DI Multiply Double Integer
7.10 DIV_DI Divide Double Integer
7.11 MOD_DI Return Fraction Double Integer
8 Floating Point Math Instructions
8.1 Overview of Floating-Point Math Instruction
8.2 Evaluating the Bits of the Status Word with Floating-Point Math Instructions
8.3 Basic Instructions
8.3.1 ADD_R Add Real
8.3.2 SUB_R Subtract Real
8.3.3 MUL_R Multiply Real
8.3.4 DIV_R Divide Real
8.3.5 ABS Establish the Absolute Value of a Floating-Point Number
8.4 Extended Instructions
8.4.1
SQR Establish the Square
8.4.2 SQRT Establish the Square Root
8.4.3 EXP Establish the Exponential Value
8.4.4 LN Establish the Natural Logarithm
8.4.5 SIN Establish the Sine Value
8.4.6 COS Establish the Cosine Value
8.4.7 TAN Establish the Tangent Value
8.4.8 ASIN Establish the Arc Sine Value
8.4.9 ACOS Establish the Arc Cosine Value
8.4.10 ATAN Establish the Arc Tangent Value
9 Move Instructions
9.1 MOVE Assign a Value
10 Program Control Instructions
10.1 Overview of Program Control Instructions
10.2 ---(Call) Call FC SFC from Coil (without Parameters)
10.3 CALL_FB Call FB from Box
10.4 CALL_FC Call FC from Box
10.5 CALL_SFB
Call System FB from Box
10.6 CALL_SFC Call System FC from Box
10.7 Call Multiple Instance
10.8 Call Block from a Library
10.9 Important Notes on Using MCR Functions
10.10 ---(MCR<) Master Control Relay On
10.11 ---(MCR>) Master Control Relay Off
10.12 ---(MCRA) Master Control Relay Activate
10.13 ---(MCRD) Master Control Relay Deactivate
10.14 ---(RET) Return
11 Shift and Rotate Instructions
11.1 Shift Instructions
11.1.1 Overview of Shift Instructions
11.1.2 SHR_I Shift Right Integer
11.1.3 SHR_DI Shift Right Double Integer
11.1.4 SHL_W Shift Left Word
11.1.5 SHR_W Shift Right Word
11.1.6 SHL_DW Shift Left Double Word
11.1.7 SHR_DW
Shift Right Double Word
11.2 Rotate Instructions
11.2.1 Overview of Rotate Instructions
11.2.2 ROL_DW Rotate Left Double Word0
11.2.3 ROR_DW Rotate Right Double Word
12 Status Bit Instructions
12.1 Overview of Statusbit Instructions
12.2 OV ---| |--- Exception Bit Overflow
12.3 OS ---| |--- Exception Bit Overflow Stored
12.4 UO ---| |--- Exception Bit Unordered
12.5 BR ---| |--- Exception Bit Binary Result
12.6 ==0 ---| |--- Result Bit Equal 0
12.7 <>0 ---| |--- Result Bit Not Equal 0
12.8 >0 ---| |--- Result Bit Greater Than 0
12.9 <0 ---| |--- Result Bit Less Than 0
12.10 >=0 ---| |--- Result Bit Greater Equal 0
12.11 <=0 ---| |--- Result Bit Less Equal 0
13 Timer Instructions
13.1 Overview of Timer Instructions
13.2 Location of a Timer in Memory and Components of a Timer
13.3 S_PULSE Pulse S5 Timer
13.4 S_PEXT Extended Pulse S5 Timer
13.5 S_ODT On-Delay S5 Timer
13.6 S_ODTS Retentive On-Delay S5 Timer
13.7 S_OFFDT Off-Delay S5 Timer
13.8 ---( SP ) Pulse Timer Coil
13.9 ---( SE ) Extended Pulse Timer Coil
13.10 ---( SD ) On-Delay Timer Coil
13.11 ---( SS )
Retentive On-Delay Timer Coil
13.12 ---( SF ) Off-Delay Timer Coil
14 Word Logic Instructions
14.1 Overview of Word logic instructions
14.2 WAND_W (Word) AND Word
14.3 WOR_W (Word) OR Word
14.4 WAND_DW (Word) AND Double Word
14.5 WOR_DW (Word) OR Double Word
14.6 WXOR_W (Word) Exclusive OR Word
14.7 WXOR_DW (Word) Exclusive OR Double Word
A Overview of All LAD Instructions
A.1 LAD Instructions Sorted According to English Mnemonics (International)
A.2 LAD Instructions Sorted According to German Mnemonics (SIMATIC)
B Programming Examples
B.1 Overview of Programming Examples
B.2 Example: Bit Logic Instructions
B.3 Example: Timer Instructions
B.4 Example: Counter and Comparison Instructions
B.5 Example: Integer Math Instructions
B.6 Example:
Word Logic Instructions
C Working with Ladder Logic
C.1 Types of Blocks
C.2 EN/ENO Mechanism
C.2.1 Adder with EN and with ENO Connected
C.2.2 Adder with EN and without ENO Connected
C.2.3 Adder without EN and with ENO Connected
C.2.4 Adder without EN and without ENO Connected
C.3 Parameter Transfer
Index
|
(
<
=
>
A
B
E
C
D
F
I
N
J
L
O
M
S
P
R
W
T
X
U
Z
0>
Yüklə
1,39 Mb.
Dostları ilə paylaş:
1
...
8
9
10
11
12
13
14
15
16
Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət
gir
|
qeydiyyatdan keç
Ana səhifə
Stomatologiya
Anesteziologiya
Cərrahlıq
Ginekologiya
Tibb
yükləyin