Programming techniques chapter 7 – Rockwell Automation 1785-BCM_BEM, D17856.5.4 PLC-5 Backup Communication Module User Manual User Manual

Page 99

Advertising
background image

Programming Techniques

Chapter 7

7-2

Figure 7.1
Minimum Program to Transfer Data Table Values
(put this program in both processors)

1771–BCM GETTING STARTED PROGRAM 1 April 1995 Page 1 Program
Listing Report PLC–5/25
Addr 1 Rung 2:0

Rung 2:0
| NUMBER OF |
| SEGMENTS |
| STORE WORD |
| |
| +MOV–––––––––––––––+ |
+–––––––––––––––––––––––––––––––––––––––––––––––––––––––++MOVE ++–+
| ||Source 1|| |
| || || |
| ||Dest N10:1|| |
| || 1|| |
| |+––––––––––––––––––+| |
| | BID | |
| | WORD | |
| |+MOV–––––––––––––––+| |
| ++MOVE ++ |
| |Source 1| |
| | | |
| |Dest N10:2| |
| | 1| |
| +––––––––––––––––––+ |

Rung 2:1
| N7:0 N7:5 +BTR–––––––––––––––+ |
+––]/[–––]/[–––––––––––––––––––––––––––––––––––––––––+BLOCK TRNSFR READ +–(EN)–+
| 15 15 |Rack 0| |
| |Group 0+–(DN) |
| |Module 0| |
| |Control Block N7:0+–(ER) |
| |Data file N10:101| |
| |Length 0| |
| |Continuous N| |
| +––––––––––––––––––+ |

Rung 2:2
| N7:0 N7:5 +BTW–––––––––––––––+ |
+––]/[–––]/[–––––––––––––––––––––––––––––––––––––––––+BLOCK TRNSFR WRITE+–(EN)–+
| 15 15 |Rack 0| |
| |Group 0+–(DN) |
| |Module 0| |
| |Control Block N7:5+–(ER) |
| |Data file N10:1| |
| |Length 0| |
| |Continuous N| |
| +––––––––––––––––––+ |

Rung 2:3
| |
+––––––––––––––––––––––––––––––––[END OF FILE]–––––––––––––––––––––––––––––––––+
| |

Advertising