beautypg.com

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

Page 34

background image

Chapter 3

Using The Smart Transmitter Toolkit

3-15

Example 3 (continued)

Rung 2:2

Only process when the STT subroutine is done. If the Hart command is 1, copy

the primary variable to file F15. If the Hart command is 0, copy the Hart

address to the input area and request Hart command 1. If device 1 does not

respond (error 33), try getting a new Hart address for device 1 by requesting

Hart command 0.

| Device 1 Device 1 |

| Device 1 Hart Process |

| STT Done Command # Variable |

| N10:30 +EQU–––––––––––––––+ +MOV–––––––––––––––+ |

+––––] [––––––––––––––––––––––––––++EQUAL +––+MOVE ++–+

| 2 ||Source A N10:5| |Source F11:10|| |

| || 0| | 0.000000|| |

| ||Source B 1| |Dest F15:1|| |

| || | | 0.000000|| |

| |+––––––––––––––––––+ +––––––––––––––––––+| |

| | Device 1 Device 1 | |

| | Hart Hart | |

| | Command # Address | |

| |+EQU–––––––––––––––+ +COP–––––––––––––––+ | |

| ++EQUAL +++COPY FILE +++ |

| ||Source A N10:5|||Source #N10:40||| |

| || 0|||Dest #N10:6||| |

| ||Source B 0|||Length 3||| |

| || ||+––––––––––––––––––+|| |

| |+––––––––––––––––––+| Device 1 || |

| | | Hart || |

| | | Command # || |

| | |+MOV–––––––––––––––+|| |

| | ++MOVE ++| |

| | |Source 1| | |

| | | | | |

| | |Dest N10:5| | |

| | | 0| | |

| | +––––––––––––––––––+ | |

| | Device 1 Device 1 | |

| | Not Hart | |

| | Responding Command # | |

| |+EQU–––––––––––––––+ +MOV–––––––––––––––+| |

| ++EQUAL +––+MOVE ++ |

| |Source A N10:33| |Source 0| |

| | 33| | | |

| |Source B 33| |Dest N10:5| |

| | | | 0| |

| +––––––––––––––––––+ +––––––––––––––––––+ |

Rung 2:3

This rung is identical to 2:0, except it uses device 2.

| Device 2 |

| Device 2 STT |

| STT enable trigger |

| N12:30 N12:30 |

+––––]/[–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––(L)–––––+

| 1 3 |