adccommunitymod (AutomationDirect) asked a question.

Productivity 2000 and Basler Modbus Coms

Created Date: September 19,2019

Created By: ThomasDcOps

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

I can normally figure out most basic modbus coms but this one has left me confused what its looking to be passed or how. I have tried everything I can in the modbus write functions with no luck. Its probably something dumb I'm over looking. Basler modbus list shows the following Name Description Group Register Type Bytes R/W Unit Range Coms Control Group Run Mode GG 5518 Uint32 4 R W n/a Trigger=1 I 've tried different functions, data types and format to pass it a "1 ". I 've received 01:ILLEGAL FUN or 03:ILL DATA VAL Any help would be appreciated.


  • adccommunitymod (AutomationDirect)

    Created Date: September 19,2019

    Created by: ThomasDcOps

    I can normally figure out most basic modbus coms but this one has left me confused what its looking to be passed or how. I have tried everything I can in the modbus write functions with no luck. Its probably something dumb I'm over looking.

    Basler modbus list shows the following

    Name

    Description

    Group

    Register

    Type

    Bytes

    R/W

    Unit

    Range

    Coms Control Group

    Run Mode

    GG

    5518

    Uint32

    4

    R W

    n/a

    Trigger=1

    I 've tried different functions, data types and format to pass it a "1 ". I 've received 01:ILLEGAL FUN or 03:ILL DATA VAL

    Any help would be appreciated.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: September 19,2019

    Created by: Todd Dice

    It may be helpful to see your PLC code. I'm assuming you 're using a Modbus Write instruction?

  • adccommunitymod (AutomationDirect)

    Created Date: September 19,2019

    Created by: kewakl

    I 've tried different functions, data types and format to pass it a "1 ". I 've received 01:ILLEGAL FUN or 03:ILL DATA VAL

    Any help would be appreciated.

    Both exceptions code using the same value? Well, maybe we can take comfort that the errors were returned - maybe this indicates that the cabling is good.

    Serial or ethernet?

    Add/subtract '1 ' from 5518.

    What numeric base is this 5518?

    btw, I am not creating a basler account just to download the manuals.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: September 19,2019

    Created by: ThomasDcOps

    { "data-align ": "none ", "data-size ": "full ", "title ": "Capture.JPG ", "data-attachmentid ":125238}

  • adccommunitymod (AutomationDirect)

    Created Date: September 19,2019

    Created by: ThomasDcOps

    { "data-align ": "none ", "data-size ": "full ", "title ": "Capture2.JPG ", "data-attachmentid ":125240}

  • adccommunitymod (AutomationDirect)

    Created Date: September 19,2019

    Created by: ThomasDcOps

    Its modbus TCP, I can get other data from this unit without issue.

  • adccommunitymod (AutomationDirect)

    Created Date: September 19,2019

    Created by: ThomasDcOps

    { "data-align ": "none ", "data-size ": "full ", "title ": "Capture3.JPG ", "data-attachmentid ":125243}

  • adccommunitymod (AutomationDirect)

    Created Date: September 19,2019

    Created by: kewakl

    With the other MRX/MWX that work correctly, is the slave node 1? Default is 255 unless going thru a server/bridge type devices.

    Is 32-bit to 16-bit mapping the same? is word swap the same?

    Is there any other param required before you can use this register to remotely enter/exit RUN mode?

  • adccommunitymod (AutomationDirect)

    Created Date: September 19,2019

    Created by: MikeN

    Is "test5 " tag a Int32 data type?

  • adccommunitymod (AutomationDirect)

    Created Date: September 23,2019

    Created by: OkiePC

    Instead of trying to write to it, you might try reading a single register first at that same modbus address. That may help you to figure out if bytes or words are swapped. Then try writing that same value back as a single register (instead of multiple registers).

10 of 15