Polling Modbus

Hello,

I hope ya’ll are having a good day. I had a question about address requests from a Modicon.

As far as communication to the device is concerned, will I add network traffic if I poll bits from a register (A) rather than polling the register and parsing the bits with expressions (B)?

A
Tag 1 = HR1000.0
Tag 2 = HR1000.1
Tag 3 = HR1000.2

B
Tag = HR1000
Tag 1 = getBit(Tag, 0)
Tag 2 = getBit(Tag, 1)

I thought I would check because I know that sometimes when an OPC polls it just grabs a whole block of registers. The device we are connecting to is a little delicate, and as convenient as it is to grab lots of individual bits into their own little tags, I wanted to get your opinions before I started faulting things all over town.

Thanks!

  • Mike

Both cases should just request HR1000.

The Modbus protocol doesn’t support reading registers at the bit level (if you want bits that’s what Coils and Discrete Inputs are), so in either case the breakdown into bits doesn’t affect the register(s) requested.

Thanks.

What happens if I request

Tag 1 = HR 1001.1
Tag 2 = HR 1001.1

Will it request HR 1001 twice?

[quote=“mikehill100”]Thanks.

What happens if I request

Tag 1 = HR 1001.1
Tag 2 = HR 1001.1

Will it request HR 1001 twice?[/quote]

As long as they’re being requested at the same rate (same scanlass, or scanclass at equal rate), I think just once.