Part I The Problems of Software |
|
|
1 Evolution of Software Development |
|
|
3 | (20) |
|
|
3 | (1) |
|
|
4 | (5) |
|
|
5 | (1) |
|
|
6 | (1) |
|
|
6 | (1) |
|
|
7 | (1) |
|
Script or Macro Notations |
|
|
8 | (1) |
|
|
8 | (1) |
|
|
9 | (10) |
|
|
10 | (1) |
|
|
11 | (1) |
|
|
12 | (1) |
|
|
13 | (3) |
|
|
16 | (1) |
|
|
17 | (2) |
|
|
19 | (1) |
|
|
20 | (3) |
|
|
23 | (20) |
|
Software Development Costs |
|
|
23 | (12) |
|
|
24 | (1) |
|
|
25 | (1) |
|
|
26 | (2) |
|
|
28 | (2) |
|
Ease of Creating New Macro Languages |
|
|
30 | (1) |
|
Do We Need So Many Programming Languages? |
|
|
31 | (1) |
|
The Specifics of Programming Languages |
|
|
32 | (1) |
|
The Specifics of a Software Project |
|
|
33 | (2) |
|
|
35 | (1) |
|
|
35 | (3) |
|
|
35 | (1) |
|
|
36 | (1) |
|
|
37 | (1) |
|
The Costs of Software Errors |
|
|
38 | (1) |
|
|
38 | (2) |
|
A Programmer in a Project |
|
|
39 | (1) |
|
The Software Project Leader |
|
|
40 | (1) |
|
|
40 | (2) |
|
|
42 | (1) |
|
3 Software as Engineering? |
|
|
43 | (20) |
|
|
43 | (8) |
|
Fascination with Graphics |
|
|
45 | (1) |
|
|
46 | (1) |
|
Object-Oriented Design Illusion |
|
|
47 | (1) |
|
|
47 | (2) |
|
|
49 | (1) |
|
CASE Tools — Value for Money? |
|
|
49 | (1) |
|
Programming or Specification Languages? |
|
|
50 | (1) |
|
|
51 | (5) |
|
|
51 | (1) |
|
|
52 | (1) |
|
Software Development Steps |
|
|
52 | (1) |
|
|
53 | (1) |
|
|
54 | (1) |
|
|
55 | (1) |
|
|
55 | (1) |
|
|
55 | (1) |
|
|
56 | (2) |
|
|
56 | (1) |
|
Education as the Basis of Skill |
|
|
57 | (1) |
|
|
57 | (1) |
|
|
58 | (2) |
|
|
60 | (3) |
Part II Finite State Machines |
|
|
4 Introduction, Definitions, and Notation |
|
|
63 | (14) |
|
|
63 | (2) |
|
State Machine Models and Presentations |
|
|
65 | (10) |
|
|
65 | (2) |
|
|
67 | (1) |
|
|
68 | (1) |
|
|
69 | (1) |
|
|
69 | (4) |
|
|
73 | (2) |
|
|
75 | (2) |
|
|
77 | (8) |
|
|
77 | (1) |
|
Limited to Boolean Signals |
|
|
77 | (6) |
|
Design Example — Traffic Light Control |
|
|
78 | (2) |
|
EPROM-Based Implementations |
|
|
80 | (3) |
|
FPLA- or CPLD-Based Implementations |
|
|
83 | (1) |
|
|
83 | (1) |
|
|
84 | (1) |
|
|
85 | (22) |
|
|
85 | (1) |
|
|
86 | (2) |
|
Any Class of Signal May "Contain" the Control Value |
|
|
88 | (6) |
|
|
88 | (1) |
|
|
88 | (1) |
|
|
89 | (1) |
|
|
89 | (1) |
|
|
90 | (1) |
|
|
90 | (1) |
|
|
91 | (1) |
|
External and Internal Signals |
|
|
91 | (1) |
|
|
91 | (1) |
|
|
92 | (1) |
|
|
92 | (1) |
|
|
92 | (1) |
|
|
92 | (1) |
|
|
93 | (1) |
|
|
93 | (1) |
|
|
94 | (2) |
|
Event as a Control Signal |
|
|
94 | (2) |
|
State Machine or Combinational System? |
|
|
96 | (2) |
|
Models of a Finite State Machine |
|
|
98 | (3) |
|
Application-Based State Machine Models |
|
|
99 | (1) |
|
State Machine Execution Models |
|
|
100 | (1) |
|
Coding as a Universal Solution |
|
|
101 | (2) |
|
Table-Driven Software to Reduce Coding Effort |
|
|
103 | (1) |
|
Limits of the Coded Solutions |
|
|
104 | (1) |
|
|
105 | (2) |
|
7 Misunderstandings about FSM |
|
|
107 | (16) |
|
|
107 | (1) |
|
|
108 | (6) |
|
|
109 | (1) |
|
|
109 | (1) |
|
|
110 | (2) |
|
|
112 | (1) |
|
|
113 | (1) |
|
Interface between State Machines |
|
|
114 | (1) |
|
A Flowchart Is Not a State Machine |
|
|
114 | (6) |
|
|
114 | (1) |
|
|
115 | (3) |
|
|
118 | (2) |
|
|
120 | (1) |
|
|
121 | (1) |
|
|
122 | (1) |
|
8 Designing a State Machine |
|
|
123 | (22) |
|
A State Machine Models Behavior |
|
|
123 | (1) |
|
|
124 | (2) |
|
Actions (Entry, Input, Exit, Transition) |
|
|
126 | (1) |
|
|
127 | (1) |
|
Acknowledgment Principle (Busy and Done States) |
|
|
127 | (2) |
|
|
129 | (1) |
|
|
129 | (3) |
|
Completeness of the Design |
|
|
132 | (1) |
|
Hiding Control Information |
|
|
133 | (1) |
|
Example — Pedestrian Traffic Lights |
|
|
133 | (5) |
|
|
133 | (1) |
|
|
134 | (3) |
|
The Specification Must Be Understandable |
|
|
137 | (1) |
|
Example — Pressure Supervision |
|
|
138 | (6) |
|
|
138 | (1) |
|
|
139 | (3) |
|
|
142 | (1) |
|
The State Transition Diagram |
|
|
143 | (1) |
|
|
144 | (1) |
|
9 Systems of State Machines |
|
|
145 | |
|
|
145 | (1) |
|
The Partitioning Criteria |
|
|
146 | (2) |
|
The Communication Interface among State Machines |
|
|
148 | (2) |
|
|
150 | (1) |
|
The (Hierarchical) Structure of the Control System |
|
|
151 | (1) |
|
|
152 | (4) |
|
Locality of the Control Problems |
|
|
152 | (1) |
|
Up-Down or Bottom-Up Design |
|
|
153 | (1) |
|
|
154 | (1) |
|
|
154 | (1) |
|
|
155 | (1) |
|
|
156 | (1) |
|
Example — Pumps Supervision System |
|
|
156 | (12) |
|
|
156 | (1) |
|
|
157 | (2) |
|
|
159 | (5) |
|
|
164 | (4) |
|
Example — Traffic Light Control |
|
|
168 | (10) |
|
|
168 | (1) |
|
|
169 | (2) |
|
|
171 | (1) |
|
|
172 | (2) |
|
|
174 | (1) |
|
|
175 | (1) |
|
System for Two-Track Railway |
|
|
176 | (1) |
|
|
177 | (1) |
|
|
178 | (5) |
|
|
179 | (1) |
|
Designing a State Machine |
|
|
179 | (1) |
|
Designing a System of State Machines |
|
|
180 | (3) |
Part III StateWORKS: Principles and Practice |
|
|
|
183 | (20) |
|
Virtual Environment and Vfsm |
|
|
183 | (1) |
|
The StateWORKS Development Environment |
|
|
184 | (13) |
|
|
184 | (1) |
|
|
185 | (2) |
|
|
187 | (3) |
|
State Machine Defines Object Control Values |
|
|
190 | (1) |
|
|
190 | (1) |
|
|
191 | (6) |
|
|
197 | (1) |
|
The StateWORKS Execution Environment |
|
|
197 | (5) |
|
RTDB-Based Runtime System |
|
|
198 | (1) |
|
|
199 | (1) |
|
|
200 | (1) |
|
|
201 | (1) |
|
|
202 | (1) |
|
11 Digital Input and Output |
|
|
203 | (6) |
|
A Digital Input Has Three Control Values |
|
|
203 | (1) |
|
|
204 | (1) |
|
Setting and Clearing the Boolean Output Are Two Different Actions |
|
|
204 | (3) |
|
|
207 | (1) |
|
|
207 | (2) |
|
|
209 | (12) |
|
|
209 | (2) |
|
|
209 | (1) |
|
|
210 | (1) |
|
|
211 | (1) |
|
Getting the Control Value (SWIP) |
|
|
211 | (3) |
|
|
211 | (1) |
|
|
212 | (1) |
|
|
213 | (1) |
|
|
214 | (1) |
|
NI Object as an Extension of DAT Type |
|
|
214 | (1) |
|
|
214 | (1) |
|
|
214 | (1) |
|
PAR Object as a Specific Variant of DAT Type |
|
|
215 | (3) |
|
|
216 | (1) |
|
|
217 | (1) |
|
String (STR) as a Specific Variant of SWIP |
|
|
218 | (2) |
|
|
218 | (1) |
|
|
218 | (1) |
|
|
219 | (1) |
|
|
220 | (1) |
|
|
220 | (1) |
|
|
221 | (8) |
|
|
221 | (3) |
|
|
221 | (2) |
|
|
223 | (1) |
|
|
223 | (1) |
|
Output Demultiplexer (TAB) |
|
|
224 | (1) |
|
|
225 | (1) |
|
|
225 | (1) |
|
|
225 | (3) |
|
|
225 | (1) |
|
|
226 | (1) |
|
|
227 | (1) |
|
|
228 | (1) |
|
|
229 | (10) |
|
|
229 | (3) |
|
|
229 | (1) |
|
|
230 | (1) |
|
|
231 | (1) |
|
|
232 | (1) |
|
|
232 | (2) |
|
|
233 | (1) |
|
|
233 | (1) |
|
|
234 | (1) |
|
|
235 | (1) |
|
|
235 | (2) |
|
|
235 | (1) |
|
|
235 | (1) |
|
|
236 | (1) |
|
|
236 | (1) |
|
|
237 | (2) |
|
15 VFSM and Its Interfaces |
|
|
239 | (12) |
|
Virtual Finite State Machine Interfaces |
|
|
239 | (1) |
|
A Virtual Finite State Machine (VFSM) |
|
|
240 | (2) |
|
Hiding Specification Details |
|
|
241 | (1) |
|
|
242 | (4) |
|
|
246 | (1) |
|
An Interface to I/O Handler (UNIT) |
|
|
246 | (1) |
|
An Interface to a User-Written Function (OFUN) |
|
|
247 | (2) |
|
|
248 | (1) |
|
|
248 | (1) |
|
|
249 | (1) |
|
|
249 | (1) |
|
Internal Value as a Control Value |
|
|
249 | (1) |
|
|
250 | (1) |
|
|
251 | (10) |
|
Testing a Vfsm Application |
|
|
251 | (1) |
|
|
252 | (1) |
|
|
252 | (2) |
|
|
254 | (1) |
|
|
255 | (2) |
|
|
257 | (3) |
|
The Role of Documentation |
|
|
260 | (1) |
|
|
261 | (6) |
|
Compared with Specification Methods |
|
|
261 | (1) |
|
Compared with Agile Methods |
|
|
262 | (1) |
|
|
262 | (1) |
|
|
263 | (2) |
Appendix A Case Studies |
|
265 | (2) |
Appendix B Microwave Oven Control—Use of StateWORKS Development Tools |
|
267 | (8) |
|
|
267 | (1) |
|
|
268 | (1) |
|
|
269 | (1) |
|
|
270 | (2) |
|
|
272 | (1) |
|
|
272 | (1) |
|
|
273 | (2) |
Appendix C Gas Control — Hierarchical System of State Machines |
|
275 | (8) |
|
|
275 | (1) |
|
|
276 | (1) |
|
|
277 | (2) |
|
|
279 | (1) |
|
|
280 | (1) |
|
|
281 | (2) |
Appendix D Dining Philosophers Problem |
|
283 | (4) |
|
|
283 | (2) |
|
|
285 | (2) |
Appendix E Going Beyond the Limitations of IEC 61131-3 |
|
287 | (12) |
|
|
287 | (1) |
|
GRAVEL Example from IEC 61131 Document — Critical Analysis |
|
|
287 | (5) |
|
A State Machine as a Replacement for Markers |
|
|
292 | (1) |
|
GRAVEL Example as a State Machine |
|
|
293 | (4) |
|
|
297 | (1) |
|
|
298 | (1) |
|
|
298 | (1) |
Appendix F Traffic Light Control — Design of the Hardware Solution |
|
299 | (2) |
Appendix G Coding Finite State Machine — Vending Machine Counter Example |
|
301 | (4) |
Appendix H IOD File of the StandardUnit |
|
305 | (2) |
Appendix I StateWORKS Projects |
|
307 | (6) |
|
|
307 | (1) |
|
Specification of State Machines |
|
|
308 | (1) |
|
|
309 | (1) |
|
|
309 | (1) |
|
|
310 | (1) |
|
Testing with SWLab and Monitors |
|
|
310 | (1) |
|
Documentation of Examples |
|
|
311 | (2) |
Appendix J Vending Machine Counter Project |
|
313 | (2) |
Appendix K Pedestrian Traffic Light Project |
|
315 | (4) |
|
|
315 | (1) |
|
The State Machine of Type Pedestrian |
|
|
315 | (1) |
|
|
316 | (3) |
Appendix L Pumps Supervision Project |
|
319 | (6) |
|
|
319 | (1) |
|
|
320 | (1) |
|
The State Machine of Type Pressure |
|
|
320 | (1) |
|
The State Machine of Type Device |
|
|
320 | (3) |
|
|
323 | (2) |
Appendix M Output Function CalcLimits() |
|
325 | (4) |
Appendix N Traffic Light Project |
|
329 | (6) |
|
|
329 | (1) |
|
|
329 | (1) |
|
The TrafficLight State Machine |
|
|
330 | (1) |
|
|
331 | (2) |
|
|
333 | (2) |
Appendix O DI_DO Project |
|
335 | (4) |
|
|
335 | (1) |
|
The State Machine Test_DI_DO |
|
|
335 | (1) |
|
|
336 | (3) |
Appendix P Other_Inputs Project |
|
339 | (6) |
|
|
339 | (1) |
|
The State Machine Test_DAT |
|
|
339 | (1) |
|
The State Machine Test_SWIP |
|
|
340 | (1) |
|
The State Machine Test_STR |
|
|
341 | (4) |
Appendix Q Other_Outputs Project |
|
345 | (6) |
|
|
345 | (1) |
|
The State Machine Test_NO |
|
|
345 | (2) |
|
|
347 | (1) |
|
The State Machine Test_AL |
|
|
348 | (3) |
Appendix R Counters Project |
|
351 | (6) |
|
|
351 | (1) |
|
The State Machine Test_CNT |
|
|
351 | (3) |
|
The State Machine Test_ECNT |
|
|
354 | (1) |
|
The State Machine Test_UDC |
|
|
355 | (2) |
Appendix S Attributes of RTDB Objects |
|
357 | (2) |
Appendix T StateWORKS Tools and Components |
|
359 | (4) |
|
|
359 | (2) |
|
State Machine Specification |
|
|
359 | (1) |
|
|
360 | (1) |
|
String Resource Specification |
|
|
360 | (1) |
|
Definition of Object Properties |
|
|
360 | (1) |
|
Definition of System of State Machines |
|
|
360 | (1) |
|
|
360 | (1) |
|
|
361 | (1) |
|
|
361 | (1) |
|
|
361 | (1) |
|
StateWORKS Runtime Systems |
|
|
362 | (1) |
|
|
362 | (1) |
Index |
|
363 | |