Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

PFC200 - Modbus RTU - RS485

Damian7546
2019-10-06
2019-10-07
  • Damian7546 - 2019-10-06

    Hi,

    Can anybody write step by step what can I do to run Modbus Master in my WAGO PFC200 ?
    My slave is still : Not running as in attachment picture.

    I should set RS485 interface , where ?

    IMG: wago_modbus.jpg

     
  • eschwellinger

    eschwellinger - 2019-10-06

    Hi,
    use the plc shell...

    BR
    Edwin

    IMG: serialmodePFC.png

     
  • Damian7546 - 2019-10-06

    Probably it is ok:
    I checked and the rs485 is selected.

    IMG: test_rs.jpg

     
  • Damian7546 - 2019-10-06

    Only result:

    IMG: test_rs485.jpg

     
  • eschwellinger

    eschwellinger - 2019-10-07

    Hi,
    1. check wiring
    2. check baudrate in CODESYS under 'Modbus_Com'
    3. Check Slave Diagnosis in CODESYS see screenshot

    BR
    Edwin

    IMG: ModbusSlaveDiag.png

     
  • Damian7546 - 2019-10-07

    is better:
    Time to time in "byModbusError " = UNDEFINED but usually is RESPONSE_SUCCES.

    I tried pooling my slave device by other master device with parameter:
    9600/8/N/1 , Slave ID=2, Function=3, Offset =31, lenght =10. an I got response 12,12,22,11,33 ..
    When I set above parameters in WAGO /Codesys the slave not response . When I change function code to 4 i Get response but only 0,0,0,0, like in attachment picture....

    IMG: zdj_test.jpg

     
  • eschwellinger

    eschwellinger - 2019-10-07

    Hi,
    you need to map variables or switch to always update for testing purpose.
    We see on your values the are 'light grey' - means not updated.

    BR
    Edwin

     
  • Damian7546 - 2019-10-07

    Edwin Schwellinger hat geschrieben:
    Hi,
    you need to map variables or switch to always update for testing purpose.
    We see on your values the are 'light grey' - means not updated.
    BR
    Edwin

    thanks it works.

     

Log in to post a comment.