CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Wed Nov 13, 2019 3:11 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Fri Nov 08, 2019 6:45 am 
Offline

Joined: Sun Aug 20, 2017 8:15 am
Posts: 40
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


Top
   
PostPosted: Fri Nov 08, 2019 8:38 am 
Offline

Joined: Sun Aug 20, 2017 8:15 am
Posts: 40
Below I sent Error from first slave:


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Fri Nov 08, 2019 1:32 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3530
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


Top
   
PostPosted: Fri Nov 08, 2019 5:29 pm 
Offline

Joined: Sun Aug 20, 2017 8:15 am
Posts: 40
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 ?


Last edited by Damian7546 on Fri Nov 08, 2019 6:45 pm, edited 1 time in total.

Top
   
PostPosted: Fri Nov 08, 2019 6:45 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3530
Hi,
so you are on runtime 3.5.15.0 and FW13(Wago)?
BR
Edwin


Top
   
PostPosted: Fri Nov 08, 2019 6:50 pm 
Offline

Joined: Sun Aug 20, 2017 8:15 am
Posts: 40
Exactly:


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Fri Nov 08, 2019 7:41 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3530
Hi,
could you please check if you have:

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


in /etc/CODESYSControl.cfg

BR
Edwin


Top
   
PostPosted: Fri Nov 08, 2019 7:56 pm 
Offline

Joined: Sun Aug 20, 2017 8:15 am
Posts: 40
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.


Last edited by Damian7546 on Sat Nov 09, 2019 3:21 pm, edited 1 time in total.

Top
   
PostPosted: Sat Nov 09, 2019 9:18 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 3530
Hi,
yes that way serial is from modbus...

BR
Edwin


Top
   
PostPosted: Sat Nov 09, 2019 2:48 pm 
Offline

Joined: Sun Aug 20, 2017 8:15 am
Posts: 40
I changed my CODESYSControl.cfg file , but i have the same sytuation - modbus doesn't work


You do not have the required permissions to view the files attached to this post.


Top
   
PostPosted: Sun Nov 10, 2019 8:20 pm 
Offline

Joined: Sun Aug 20, 2017 8:15 am
Posts: 40
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 11 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited