Jump to content

Modbus Addresses


Combos

Recommended Posts

Hi everybody!

I'm trying to connect a JUMO oven controller to labview using a RS485 serial connection and Modbus RTU. I have the NI Modbus Library which has been very helpful except for a few things. Specifically, some of the addresses within the slave are very straight forward and are just a hex number I have to plug in but some of them are shown as having an additional address that goes to the individual bits (See attached picture). Are these coils or input registers or something? And how do I read them in when the Modbus library only allows me to input one address? Please help!

Thanks!

post-27509-0-21728100-1346438181_thumb.p

Link to comment

You read the address then mask (and) the bit you are interested in to get that state. You will notice that the bits are 2^n so each bit represents the state of an output/input. So to get the state of "Control Contact 4", read the word at 0x026 then AND the result with 0x8. If it is greater than 0 (1), it is on; 0 it is off.

  • Like 2
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.