Jump to content

Recommended Posts

Posted

Hi

I 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

post-51984-0-33463200-1469047258_thumb.png

Posted

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

  • 3 weeks later...
Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.