Example 2 (continued) – Rockwell Automation 1770,D17706.5.21 SMART TRANSMITTER TOOLKI User Manual
Page 29

Chapter 3
Using The Smart Tranmsitter Toolkit
3-10
Example 2 (continued)
Rung 2:0
STT 1.00 Programming Example 2
This example reads the primary variable from 2 HART field devices wired to 1
1770-HT1.
If neither device is current, make device 1 the current device.
| Doing |Doing Doing |
| Device 1 |Device 2 Device 1 |
| B3 B3 B3 |
+––––]/[––––––––]/[––––––––––––––––––––––––––––––––––––––––––––––––––––(L)–––––+
| 1 2 1 |
Rung 2:1
Set the device 1 STT subroutine trigger bit and load the JSR input variable for
device 1 processing.
| Device 1 |
| Doing |Device 1 STT |
| Device 1 |STT enable trigger |
| B3 N10:30 N10:30 |
+––––] [––––––––]/[–––––––––––––––––––––––––––––––––––––+–––––––––––––(L)––––+–+
| 1 1 | 3 | |
| | JSR Input | |
| | Variable | |
| |+MOV–––––––––––––––+| |
| ++MOVE ++ |
| |Source 10| |
| | | |
| |Dest N14:0| |
| | 12| |
| +––––––––––––––––––+ |
Rung 2:2
This rung is identical to 2:1, except it uses device 2.
| Device 2 |
| |Doing |Device 2 STT |
| Device 2 |Device 2 |STT enable trigger |
| 2 B3 N12:30 N12:30 |
+–––[LBL]–––––––] [––––––––]/[––––––––––––––––––––––––––+–––––––––––––(L)––––+–+
| 2 1 | 3 | |
| | JSR Input | |
| | Variable | |
| |+MOV–––––––––––––––+| |
| ++MOVE ++ |
| |Source 12| |
| | | |
| |Dest N14:0| |
| | 12| |
| +––––––––––––––––––+ |
Rung 2:3
Call the STT subroutine unconditionally.
| STT |
| Subroutine |
| +JSR–––––––––––––––+ |
+–––––––––––––––––––––––––––––––––––––––––––––––––––––––––+JUMP TO SUBROUTINE+–+
| |Prog file number 5| |
| |Input par N14:0| |
| |Return par | |
| +––––––––––––––––––+ |