advertisement
from the RnD department...
Can we read the data of a PLC over Modbus when it is in STOP mode?
PLCs and related questions. topic
Posted by Mukund on 9 August, 2012 - 1:41 am
Can we read the data of a PLC over Modbus when it is in STOP mode?


Posted by Bob Peterson on 9 August, 2012 - 7:57 am
Every PLC I have worked on, and that is a bunch, you can read and write data regardless of whether the PLC itself is executing the program or not.


Posted by Mukund on 10 August, 2012 - 8:33 am
Thanks for the reply.

I will modify my question, does the PLC gives the Current values of the Special Function Blocks, when read over Modbus in Stop Mode.

For example, if i m using a Up counter, and the count has reached up to 10, and now if I stop my PLC and restart it, the count will start from 0. Now in this case, during stop mode, if I will read the counter over Modbus, what should I get 0 or 10.


Posted by bob peterson on 10 August, 2012 - 9:48 am
good point. I was not thinking of such things, because I have never
run across them. I don't recall if the prosoft modules continue to
function if the PLC is not in run.

--
Bob


Posted by Ajrt on 11 August, 2012 - 10:31 am
If siemens plc power is on and i connect plc to pc through RS232 cable, can i read the data without having any problem?


Posted by Steve Myres on 9 August, 2012 - 11:11 am
In most cases, yes you can, especially if you're using a protocol the PLC supports natively.

I did have one project where I had to run a Festo CoDeSys-based PLC as a Modbus/TCP slave via its internal Ethernet port. It's possible, but the support isn't in firmware, it's a little software module Festo gives you to run with your application code, so in that case it talks only in run mode (to the Modbus master anyway). Takes a hell of a long time to boot too. Like 10 seconds or so after the application of power before it was responsive to Modbus polls.


Posted by David Wilson on 12 August, 2012 - 6:27 am
If the PLC is using a communications processor (cp) for Modbus, you can not read data in the STOP mode; the cp is not running, or the data provided to it is no longer 'live'. With a Siemens Step7 plc using Profibus or Ethernet, all input modules that do not require a function block are still 'live' and available to something like a Wonderware I/O or Data Access Server (DAS). The Modbus module is served by read and write function blocks that do not run if the cpu is not in RUN.

I monitor a watchdog timer to verify that the PLC is in RUN mode, but Wonderware can continue to record the data from an analog input with the PLC in the STOP mode.

Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2013 Nerds in Control, LLC. All rights reserved.

Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.


Fortune
The trouble with a kitten is that
When it grows up, it's always a cat
-- Ogden Nash.
Advertise here
Advertisement
our advertisers
Help keep our servers running...
Patronize our advertisers!
Visit our Post Archive