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

WAGO PFC200 + CODESYS V3.5

Damian7546
2019-11-08
2020-04-23
  • Damian7546 - 2019-11-08

    Hi,

    Several weeks ago I created project on WAGO PFC200 with several IO module and Modbus RTU communication.
    Yesterday I did must change firmware in my PFC 200. After that I did must download to PLC whole project . Eveything working except for Modbus Communication, I get status : BUs is not running. I check in PLC shell serialmode - is ok RS485.... What can be wrong ? Please help me

     
  • Damian7546 - 2019-11-08

    Below I sent Error from first slave:

    IMG: test2.jpg

     
  • eschwellinger

    eschwellinger - 2019-11-08

    Hi,

    Yesterday I did must change firmware in my PFC 200
    what does this mean?
    Changed the firmware from Wago or plc runtime version ???

    BR
    Edwin

     
  • Damian7546 - 2019-11-08

    Exactly, I had to install firmware in PLC again (WAGO_FW0750-8xxx_V030107_IX13_r40667), because earlier I did test with firewall and I block access to PLC.

    My steps:
    I lost acces to WAGO PFC200, so:
    I installed fresh firmware on WAGO, next I Updated PFC - from my Codesys Environment, next i installed target license and I did "download to" my project. Next I have just changed the setting in
    /etc/CODESYSControl.cfg

    [SysCom]

    Linux.Devicefile.1=/dev/serial
    Linux.Devicefile.4=/dev/ttyMdm0

    And everything works good (even SMS's) except modbus communication.
    What can be wrong ?

     
  • eschwellinger

    eschwellinger - 2019-11-08

    Hi,
    so you are on runtime 3.5.15.0 and FW13(Wago)?
    BR
    Edwin

     
  • Damian7546 - 2019-11-08

    Exactly:

    IMG: tesy.jpg

     
  • eschwellinger

    eschwellinger - 2019-11-08

    Hi,
    could you please check if you have:

    [SysCom]Linux.Devicefile.1=/dev/serialLinux.Devicefile.4=/dev/ttyRUNTIME66

    in /etc/CODESYSControl.cfg

    BR
    Edwin

     
  • Damian7546 - 2019-11-08

    Are you sure ?
    Linux.Devicefile.4=/dev/ttyMdm0 this is for SMS Modem - Modem I use on port COM4 in CODESYS - it works.
    Linux.Devicefile.1=/dev/serial this is for Modbus? - I use Modbus on port COM1 in CODESYS.....

    Earlier I had have this settings and it was good.

     
  • eschwellinger

    eschwellinger - 2019-11-09

    Hi,
    yes that way serial is from modbus...

    BR
    Edwin

     
  • Damian7546 - 2019-11-09

    I changed my CODESYSControl.cfg file , but i have the same sytuation - modbus doesn't work

    IMG: scr1.jpg

     
  • Damian7546 - 2019-11-10

    I runed my project (Modbus).
    I set in PLC Shell:
    serialmode rs485

    Very strange thing, because earlier I runed command serial mode and I get : rs485, so I didn't even think about overwriting it - but it helped.

     
  • benbammens - 2020-04-23

    Had the same thing and this solved my problem, Thanks!

    Please allow me to clarify the procedure for people that might have the same problem...

    1. In codesys you double click on the device
    2. go to PLC Shell. You will only see a gray field with an input area at the bottom
    3. type serialmode rs485 and enter

    Et voila...

     

Log in to post a comment.