gabrieltfs Posted July 20, 2016 Report Share Posted July 20, 2016 HiI need to count the number of times the PLC receive some information. As shown in picture below, the receptions' number is 113, but when I try counting it using the SB 135 and a Increment, the number in MI 0 is less than the number in the serial monitor. The counter can't get all the packages. For example, the serial monitor shows me 113 but MI 0 shows me 50. How can I solve it? Thanks Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted July 21, 2016 MVP 2022 Report Share Posted July 21, 2016 I've never tried it, but did you look at the value in SI 274? Joe T. Quote Link to comment Share on other sites More sharing options...
gabrieltfs Posted July 21, 2016 Author Report Share Posted July 21, 2016 It's not working. The value is not counting and is always 0, but serial monitor is counting. When I try COM 2 using "Online Test", the value is the same of serial monitor, but in COM 1 (Pulses of messages) the value does not change. Thanks Quote Link to comment Share on other sites More sharing options...
DaveE Posted August 10, 2016 Report Share Posted August 10, 2016 Not for nothing but your thumbnail of the RX port shows com 2 and your ladder is SB135 com 1 maybe thats why? Quote Link to comment Share on other sites More sharing options...
Cam Posted August 11, 2016 Report Share Posted August 11, 2016 SB136 is the data receive bit for COM2(as noted by DaveE thats the one in your pic) If your using the Protocol Scan FB there is a MB(user selected) that sets when it receives a valid message. Have you tried using this MB as the trigger for the count? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.