Siemens plc scanning speed question

Nan

Member
Join Date
Jul 2015
Location
louisville
Posts
126
Hi,

I am new to Siemens plc. I am using a 315-2 DP plc right now. I am wondering if there is a way to slow down the plc scanning speed to 1 second in the specific network, because I am trying to send message every second to the LED display. Thank you very much!
 
Hi,

I am new to Siemens plc. I am using a 315-2 DP plc right now. I am wondering if there is a way to slow down the plc scanning speed to 1 second in the specific network, because I am trying to send message every second to the LED display. Thank you very much!

Wouldn't it be easier to put inside timer which triggers sending message every second?

What I mean by saying timer - I'd use Cycle/Clock Memory byte which you can configure in your HW Config
 
Last edited:
Thank you for your response! when I put a timer on it, it will trying to send multiple message during 1 second and then stop for 1 second and so on...
 
Hi,

I am new to Siemens plc. I am using a 315-2 DP plc right now. I am wondering if there is a way to slow down the plc scanning speed to 1 second in the specific network, because I am trying to send message every second to the LED display. Thank you very much!

It is possible, yes. If you remove the networks from OB1, you can put them in a cyclic OB (OB35, etc). Make sure you set the cyclic OB period to 1 second in the CPU properties in the HW config.

HOWEVER, what you probably want to do is what the other posters suggested, with the timers/clock bits. You may need to use an edge detection instruction so that it only triggers once.
 
Thank you for all replies! I end up use clock memory and one shot instruction(-|p|-) to make it work... If I use DB35, it will interrupt the operation of OB1. Thanks again for all your helps!
 
If you use DB35 it will not do anything to the main OB1.
However if you use OB35 it will.
Hope the DB35 was just a mistake.
 
Thank you for all replies! I end up use clock memory and one shot instruction(-|p|-) to make it work... If I use DB35, it will interrupt the operation of OB1. Thanks again for all your helps!


Glad you got it working! To follow up to a possible misconception:

Assuming you mean OB35, yes, it will interrupt OB1. However that interruption should only be very brief (if you are running a small amount of code), and then OB1 will pick up right where it left off. Cyclic interrupts are not required, but they can be very useful, and I've seen many systems that mix them with OB1.
 

Similar Topics

Good morning fellow sea captains and wizards, I am being asked to do the above and obtain 4 values from each slave, I know about the MRX and MWX...
Replies
27
Views
559
Hey guys, I have to take an upload of a program on an S71200 PLC to change a hardware config option and then redownload the program with this...
Replies
3
Views
109
Hello Guys, I want to establish profinet communication between siemens plc and my system using python programming. Which python lib can i use to...
Replies
12
Views
355
When you download a DB, the values get overwritten by what is in the "actual" column in offline DB. Does this happen at the start of the PLC...
Replies
6
Views
141
Hi everyone, I want to upload the program from my CPU317TF-2 DP to my PC via connecting to CP 343-1 Advanced since it has LAN ports and the CPU...
Replies
1
Views
166
Back
Top Bottom