Example program for accessing results data, cont’d – Rockwell Automation 5370 Color CVIM Communications Manual User Manual

Page 59

Advertising
background image

Chapter 4
Using the Remote I/O Link

4–22

Program Listing Report PLC–5/15 File CCVIM2 Rung 2:0

Rung 2:0
Initialize the appropiate bits to read the results block and use Data Valid.
| Specify |
| first half |
| of the |
| toolset |
| O:022 |
+–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––+–––(L)––––+–+
| | 00 | |
| |Specify | |
| |results | |
| |block | |
| | O:023 | |
| +–––(L)––––+ |
| | 00 | |
| |Block 1 of| |
| |6 possible| |
| | BLOCKS | |
| | O:023 | |
| +–––(L)––––+ |
| 10 |

Rung 2:1
This rung acquires an image, the Color CVIM one shots the input
| External |
| trigger Trigger |
| bit the Camera |
| B3 O:020 |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––( )–––––+
| 1 12 |

Rung 2:2
Read results block from the Color CVIM.
| Data Valid Read from |
| for the the Color |
| TS CVIM |
| I:020 B3 +BTR––––––––––––––––––––+ |
+––––] [–––––[ONS]––––––––––––––––––––––––––––––+BLOCK TRNSFR READ +–(EN)–+
| 06 2 |Rack 02| |
| |Group 0+–(DN) |
| |Module 0| |
| |Control Block N7:100+–(ER) |
| |Data file N7:0| |
| |Length 0| |
| |Continuous N| |
| +–––––––––––––––––––––––+ |

Rung 2:3
Clear block transfer read error, if it occurs.
| BTR Error BTR Enable |
| bit bit |
| N7:100 N7:100 |
+––––] [–––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––+
| 12 15 |

Example Program for Accessing
Results Data, Cont’d

Advertising