Industry Online Support
Technical Forum
1/27/2012 7:23 PM | |
Joined: 1/28/2009 Last visit: 9/10/2024 Posts: 6849 Rating: (1365)
|
Dear VWBobC, Please read the posts in the following thread.Check the examples provided there.Ask here in case of any difficulty How to Compare two data BlocksBest regards, Hamid Hosseini |
1/27/2012 11:37 PM | |
Joined: 1/28/2009 Last visit: 9/10/2024 Posts: 6849 Rating: (1365)
|
Dear VWBobC, I hope the following be solution to your problem and meet all requirements.As I have tested the result is "Satisfactory". As a long time user of Allen-Bradley CPUs, this is a little tough to personally handle all data processing in controller's level language (STL Codes).I hope by reading posts in THIS thread and tracking discussions there (especially fritz's concise final solution) you understand how we reached this solution. [code] LAR1 P#3.0 OPN DB 1 OPN DI 2 L 13 lp: T #lpcount L DBB [AR1,P#0.0] L DIB [AR1,P#0.0] <>I JC out +AR1 P#1.0 L #lpcount LOOP lp S M 0.0 JU end out: R M 0.0 end: NOP 0[/code] Best regards, Hamid Hosseini |
This contribution was helpful to1 thankful Users |
Follow us on