Creating and Running Algorithms 181
Chapter 6
Chapter 6
Creating and Running Algorithms
Learning Hint
This chapter builds upon the "VT1422A Programming Model" information
presented in Chapter 4. Reading Chapter 4 is recommended before moving
on to this chapter.
About This Chapter
This chapter describes how to write algorithms that apply the VT1422A's
measurement, calculation, and control resources. It describes these
resources and how to access them with the VT1422A's Algorithm Language.
This manual assumes that the user has programming experience already,
ideally, in the 'C' language since the VT1422A's Algorithm Language is
based on 'C'. Following the tutorial sections of this chapter is an Algorithm
Language Reference. The contents of this chapter are:
• Overview of the Algorithm Language . . . . . . . . . . . . . . . . . page 182
• The Algorithm Execution Environment . . . . . . . . . . . . . . . . page 184
• Accessing the VT1422A's Resources . . . . . . . . . . . . . . . . . . page 185
-- Accessing I/O Channels . . . . . . . . . . . . . . . . . . . . . . . . . . page 186
-- Accessing Remote Scan Status Variables . . . . . . . . . . . . . page 187
-- Runtime Remote Scan Verification . . . . . . . . . . . . . . . . . . page 187
-- Defining and Accessing Global Variables. . . . . . . . . . . . . page 190
-- Determining First Execution (First_loop) . . . . . . . . . . . . . page 190
-- Initializing Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . page 191
-- Sending Data to the CVT and FIFO . . . . . . . . . . . . . . . . . page 191
-- Setting a VXIbus Interrupt . . . . . . . . . . . . . . . . . . . . . . . . page 192
-- Determining An Algorithm's Identity (ALG_NUM) . . . . page 193
-- Calling User Defined Functions . . . . . . . . . . . . . . . . . . . . page 193
• Operating Sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . page 194
• Defining Algorithms (ALG:DEF). . . . . . . . . . . . . . . . . . . . . page 196
• A Very Simple First Algorithm . . . . . . . . . . . . . . . . . . . . . . . page 200
• Modifying an Example PID Algorithm . . . . . . . . . . . . . . . . page 200
• Algorithm to Algorithm Communication . . . . . . . . . . . . . . . page 201
Communication Using Channel Identifiers. . . . . . . . . . . . page 201
Communication Using Global Variables. . . . . . . . . . . . . . page 202
• Non-Control Algorithms . . . . . . . . . . . . . . . . . . . . . . . . . . . . page 204
Process Monitoring Algorithm . . . . . . . . . . . . . . . . . . . . . page 204
• Implementing Setpoint Profiles . . . . . . . . . . . . . . . . . . . . . . page 205
• Algorithm Language Reference . . . . . . . . . . . . . . . . . . . . . . page 207
-- Standard Reserved Keywords . . . . . . . . . . . . . . . . . . . . . . page 207
-- Special VT1422A Reserved Keywords . . . . . . . . . . . . . . page 207
Содержание VT1422A
Страница 2: ...This page is blank...
Страница 8: ...8 Notes...
Страница 22: ...22 Support...
Страница 57: ...Field Wiring 57 Chapter 2...
Страница 58: ...58 Field Wiring Chapter 2...
Страница 96: ...94 Programming the VT1422A VT1529A B for Remote Strain Measurement Chapter 3...
Страница 162: ...160 Programming the VT1422A for Data Acquisition and Control Chapter 4...
Страница 224: ...222 Creating and Running Algorithms Chapter 6...
Страница 419: ...VT1422A Command Reference 417 Chapter 7 Notes...
Страница 420: ...418 VT1422A Command Reference Chapter 7 Notes...
Страница 425: ...Specifications 423 Appendix A Thermocouple Type E 200 800 C SCPs VT1501 02 03A...
Страница 426: ...424 Specifications Appendix A Thermocouple Type E 200 800 C SCPs VT1508 09A...
Страница 427: ...Specifications 425 Appendix A Thermocouple Type E 0 800 C SCPs VT1501A 02A 03A...
Страница 428: ...426 Specifications Appendix A Thermocouple Type E 0 800 C SCPs VT1508A 09A...
Страница 429: ...Specifications 427 Appendix A Thermocouple Type E Extended SCPs VT1501A 02A 03A...
Страница 430: ...428 Specifications Appendix A Thermocouple Type E Extended SCPs VT1508A 09A...
Страница 431: ...Specifications 429 Appendix A Thermocouple Type J SCPs VT1501A 02A 03A...
Страница 432: ...430 Specifications Appendix A Thermocouple Type J SCPs VT1508A 09A...
Страница 433: ...Specifications 431 Appendix A Thermocouple Type K SCPs VT1501A 02A 03A...
Страница 434: ...432 Specifications Appendix A Thermocouple Type R SCPs VT1501A 02A 03A...
Страница 435: ...Specifications 433 Appendix A Thermocouple Type R SCPs VT1508A 09A...
Страница 436: ...434 Specifications Appendix A Thermocouple Type S SCPs VT1501A 02A 03A...
Страница 437: ...Specifications 435 Appendix A Thermocouple Type S SCPs VT1508A 09A...
Страница 438: ...436 Specifications Appendix A Thermocouple Type T SCPs VT1501A 02A 03A...
Страница 439: ...Specifications 437 Appendix A Thermocouple Type T SCPs VT1508A 09A...
Страница 440: ...438 Specifications Appendix A 5k Thermistor Reference SCPs VT1501A 02A 03A...
Страница 441: ...Specifications 439 Appendix A 5k Thermistor Reference SCPs VT1508A 09A...
Страница 442: ...440 Specifications Appendix A RTD Reference SCPs VT1501A 02A 03A...
Страница 443: ...Specifications 441 Appendix A RTD SCPs VT1501A 02A 03A...
Страница 444: ...442 Specifications Appendix A RTD SCPs VT1508A 09A...
Страница 445: ...Specifications 443 Appendix A 2250 Thermistor SCPs VT1501A 02A 03A...
Страница 446: ...444 Specifications Appendix A 2250 Thermistor SCPs VT1508A 09A...
Страница 447: ...Specifications 445 Appendix A 5k Thermistor SCPs VT1501A 02A 03A...
Страница 448: ...446 Specifications Appendix A 5k Thermistor SCPs VT1508A 09A...
Страница 449: ...Specifications 447 Appendix A 10k Thermistor SCPs VT1501A 02A 03A...
Страница 450: ...448 Specifications Appendix A 10k Thermistor SCPs VT1508A 09A...
Страница 454: ...452 Specifications Appendix A...
Страница 480: ...478 VT1529A B Verification Calibration Appendix C...
Страница 484: ...482 Glossary Appendix D Notes...