< 5. Ladder Program Training >
5-28
TI 34M6A82-01E
2nd Edition : Nov. 1, 2002-00
5.4 Exercise 3 (Structured Ladder Programming)
5.4.1 Edit Ladder Diagram
Outline of Exercise 3
In Exercise 3, you will perform structured ladder programming by creating a ladder
diagram and combining it with the ladder diagrams you created in exercises 2 and 3.
Four data registers are used as local devices starting with /D00001.
If X00803 is set to OFF, the program stops DEMO2 and starts DEMO1.
If X00803 is set to ON, the program stops DEMO1 and starts DEMO2.
The CPU reads four input voltages through channels 1-4 of the analog input module
(in slot 5), and constantly outputs a value of 2000 through channel 2 of the analog
output module (in slot 6).
Notes on Structured Programming
You can divide a ladder program into blocks, using one block for each function.
This provides the following advantages:
- You can standardise and reuse program blocks.
- You can divide the program into a maximum of 1,024 function blocks.
- It allows parallel program development by multiple developers.
-
You can modify (debug), maintain or combine the individual blocks more easily.