Reading bits within a word in the Flexy205

Hello everyone,

We are working on a large application with an OEM that has their own PLC. The diagnostic (alarms) for each motor of the machine is provided via a few 16-bit registers (one per motor, addresses ranging from 53617 and 53632), and each bit of these registers represents a failure:

Is there a way we can manipulate these words in the Flexy and extract each one of the bits to present these alarms individually?

Hi,

What kind of protocol does this PLC use? When creating tags you can have it assign a bit but the formatting of the depends on the type of protocol. It is also possible to do this by writing a script in the basic IDE .

Hello Zach,

The protocol is Modbus RTU. Can that be done?

Best regards

HI

Zach

Thanks for your Support

The protocols are Modbus RTU and TCP

Please find the attached file please take a look on page 89, 91 and 84 you can get the info how the PLC or controller sends the info to Flexy

If you have any question about the controller please let me know

Guentner_Modbus_GMM_Specification_V3-0_EN.PDF (728 KB)

To accomplish this you will have to setup the modbus IO server in the flexy and create a tag for each bit that you want as an alarm. this can be done when creating the tag after adding the address in insert # to then be able to select a bit in the address.

After that you can setup your alarm triggers as normal.

1 Like

Hello Zach,

Thank you very much, this is excellent news!

Best regards