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

HI everyone, i am new to Siemens plc programming and i am in need of some help. yesterday we had an S7-1200 CPU 1214C fail to turn on an output to...
Replies
9
Views
291
Hello, good morning, I have been having two problems with the Tia Portal software. The first is that I have installed it on my computer and...
Replies
5
Views
197
The past week we received a new piece of equipment from Germany which utilizes siemens controls. Typically in our company we use A.B. controls for...
Replies
12
Views
357
i have two plc 1. s7-1212dc/dc/dc ip; 192.168.0.1 2. s7-1500 1513-1pn ip; 192.168.3.2 i need to get data from plc1 to plc2. any idea how to do...
Replies
5
Views
175
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
32
Views
961
Back
Top Bottom