ANY Pointer Copy Data Area Uninterruptible Copying of a Data Area Fill Data Area
137 137
10
Arithmetic Functions
7
Timers
139
10.1
Processing an Arithmetic
7.1
Programming a Timer
139
7.1.1
General Representation of a Timer Starting a Timer Specifying the Duration of Time Resetting A Timer Checking a Timer Sequence of Timer Operations . Timer Box in a Rung (LAD) . . Timer Box in a Logic Circuit (FBD)
18.3.1 Creating a Data Block 18.3.2 Deleting a Data Block 18.3.3 Testing a Data Block
216 216 216
187 19
Block Parameters
218
19.1
Block Parameters in General . .
218
14.2
Program Flow Control
188
15
Status Bits
189
15.1
Description of the Status Bits . . 189
15.2
Setting the Status Bits
190
15.3
Evaluating the Status Bits . . . .
192
15.4
Using the Binary Result
193
15.4.1 Setting the Binary Result BR . . 193 15.4.2 Main Rung, EN/ENO Mechanism 193 15.4.3 ENO in the Case of User-written Blocks 194
System Functions for Data Blocks 216
19.1.1 Defining the Block Parameters . 19.1.2 Processing the Block Parameters 19.1.3 Declaration of the Block Parameters 19.1.4 Declaration of the Function Value
218 219
19.1.5 Initializing Block Parameters . .
220
19.2
Formal Parameters
220
19.3
Actual Parameters
222
19.4
"Forwarding" Block Parameters
225
19.5
Examples
225
219 220
16
Jump Functions
195
16.1
Processing a Jump Function . . .
195
16.2
Unconditional Jump
196
16.3
JumpifRLO = " l "
197
16.4
Jump if RLO = "O"
197
17
Master Control Relay
198
20
Main Program
234
19.5.1 Conveyor Belt Example 19.5.2 Parts Counter Example 19.5.3 Feed Example
225 226 228
Program Processing
233
17.1
MCR Dependency
198
20.1
Program Organization
234
17.2
MCR Area
199
17.3
MCR Zone
200
20.1.1 Program Structure 20.1.2 Program Organization
234 235
17.4
Setting and Resetting I/O Bits . . 202
20.2
236
18
Block Functions
18.1
Block Functions for Code Blocks 203
18.1.1 18.1.2 18.1.3 18.1.4 18.1.5 18.1.6
Block Calls: General Call Box CALL Coil/Box Block End Function Temporary Local Data Static Local Data
204 205 206 207 207 209
20.2.1 Process [mage Updating . . . . 20.2.2 Scan Cycle Monitoring Time . . 20.2.3 Minimum Scan Cycle Time, Background Scanning 20.2.4 Response Time 20.2.5 Start Information
238 239 240
20.3
Program Functions
242
18.2
Block Functions for Data Blocks
212
18.2.1 18.2.2 18.2.3 18.2.4
Two Data Block Registers . . . . Accessing Data Operands . . . . Opening a Data Block Special Points in Data Addressing
212 212 214 214
20.3.1 20.3.2 20.3.3 20.3.4 20.3.5 20.3.6
Real-Time Clock Read System Clock Run-Time Meter Compressing CPU Memory. . . Waiting and Stopping Multiprocessing Mode
23.4.1 Diagnostic Events and Diagnostic Buffer 23.4.2 Writing User Entries in the Diagnostic Buffer 23.4.3 Evaluating Diagnostic Interrupts 23.4.4 Reading the System Status List .
Appendix 24
307 307 308 308 309
310
25.2
System Function Blocks . . . .
319
25.3
IEC Function Blocks
321
25.4
S5-S7 Converting Blocks . . . .
321
25.5
TI-S7 Converting Blocks . . . .
323
25.6
PID Control Blocks
323
25.7
Communication Blocks
323
26
Function Set LAD
324
26.1
Basic Functions
324
Supplements to Graphic Programming
311
26.2
Digital Functions
325
24.1
Block Protection
311
26.3
Program Flow Control
327
24.2
Indirect Addressing
312
24.2.1 24.2.2 24.2.3 24.2.4 24.2.5
Pointers: General Remarks. . . . Area Pointer DB Pointer ANY Pointer "Variable" ANY Pointer
312 312 312 314 314
27
Function Set FBD
328
27.1
Basic Functions
328
27.2
Digital Functions
329
27.3
Program Flow Control
331
24.3
Brief Description of the "Message Frame Example" . . .