gabrieltfs Posted July 20, 2016 Report 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
MVP 2023 Joe Tauser Posted July 21, 2016 MVP 2023 Report Posted July 21, 2016 I've never tried it, but did you look at the value in SI 274? Joe T.
gabrieltfs Posted July 21, 2016 Author Report 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
DaveE Posted August 10, 2016 Report 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?
Cam Posted August 11, 2016 Report 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?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now