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

Page 60

Advertising
background image

Chapter 4
Using the Remote I/O Link

4–23

Rung 2:4
Set n7:70 to the number of triggers, before giving the system a new trigger.
| See if the |
| number of |
| missed |
| BTR Done triggers |
| bit increased |
| N7:100 +FLL–––––––––––––––+ |
+––––] [––––––––––––––––––––––––––––––––––––––––––––––––––+FILL FILE +–+
| 13 |Source N7:59| |
| |Dest #N7:70| |
| |Length 1| |
| +––––––––––––––––––+ |

Rung 2:5
If the number of missed triggers did not increase turn off the warning light.
| See if the |
| number of |
| missed |
| triggers Pass |
| increased light |
| +EQU–––––––––––––––+ O:000 |
+–+EQUAL +–––––––––––––––––––––––––––––––––––––––––––––––––(U)–––––+
| |Source A N7:70| 10 |
| | 0| |
| |Source B N7:200| |
| | 0| |
| +––––––––––––––––––+ |

Rung 2:6
If the number of missed triggers are not equal, move the new larger value and
turn on the warning light.
| See if the |
| number of Move the |
| missed new number |
| triggers of missed |
| increased triggers |
| +NEQ–––––––––––––––+ +FLL–––––––––––––––+ |
+–+NOT EQUAL +––––––––––––––––––––––––––––––––––++FILL FILE ++–+
| |Source A N7:70| ||Source N7:70|| |
| | 0| ||Dest #N7:200|| |
| |Source B N7:200| ||Length 1|| |
| | 0| |+––––––––––––––––––+| |
| +––––––––––––––––––+ | Pass | |
| | light | |
| | O:000 | |
| +–––––––––––––(L)––––+ |
| 10 |

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

NO MORE FILES

Example Program for Accessing
Results Data, Cont’d

Advertising