Example program for accessing results data, cont’d – Rockwell Automation 5370 CVIM Communications Manual User Manual
Page 60
Chapter 4
Using the Remote I/O Link
(Node Adapter)
4–23
31 December 1989 Page 2
Ladder Listing Processor File: CVIMBLK.ACH Rung 2:5
Rung 2:5
Set n7:70 to the ”Total Triggers” Just Before Initiating this Inspection.
| BTR Done |First Read |
| N7:100 B3 +FLL–––––––––––––––+ |
+––––] [–––––––] [–––––––––––––––––––––––––––––––––––––––|–+FILL FILE +++
| 13 1 | |Source N7:63|||
| | |Dest #N7:70|||
| | |Length 1|||
| | +–––––––––––––––––+||
| | B3 ||
| +––(U)–––––––––––––––+|
| | 1 ||
| | CVIM Trig ||
| | 0:020 ||
| +––(L)–––––––––––––––+|
| 12 |
|Rung 2:6
After the Requested Inspection is Done, This Rung will Detect the ”Total Trigger”
Value Incrementing, the New Results will be Available.
| +NEG–––––––––––––––+ B3 |
+–+NOT EQUAL +––––––––––––––––––––––––––––––––––––––––––––––+–––(L)–––++
| |Source A N7:63| | 15 ||
| | 6824| | ||
| |Source B N7:70| | ||
| | 0| | 0.020 ||
| +––––––––––––––––––+ +–––(U)–––+|
| 10 |
Rung 2:7
This Rung Counts Total Number of Times New Results were Received by PLC Since Reset
Button was Pushed.
| B3 +CTU–––––––––––––––+ |
+––] [––––––––––––––––––––––––––––––––––––––––––––––––––++Count Up +–(CU)++
| 15 ||Counter C5:1| ||
| ||Preset 0+–(DN)||
| ||Accum 30| ||
| |+––––––––––––––+ ||
| | B3 ||
| +––(U)––––––––––––––––+|
| | 2 ||
| | B3 ||
| +––(U)––––––––––––––––+|
| 15 |
Example Program for Accessing
Results Data, Cont’d