How to set cycle time in Step 7?

S7PP

Member
Join Date
Sep 2010
Location
Toronto
Posts
134
Hi experts, I'm wondering whether I can set the scan cycle time in step 7, for example, how to set it to 50ms if I want the program (OB1) is scaned once per 50ms?
 
Last edited:
you mean it's not able to set the scan time for OB1?

yes, I may use OB35 for 100ms per scan, or so.. . So you think that's the only way?
 
you mean it's not able to set the scan time for OB1?

yes, I may use OB35 for 100ms per scan, or so.. . So you think that's the only way?

You can't to my knowledge set scan time directly, but as mentioned above you can use one of the OB's to call a block repetitively at the required scan time (for example, a PID control block).
 
In the top of OB1 you can put a self-triggering timer, something like this: NB! The time will allways be 50ms+.
A M 10.0
L S5T#50ms
SD T 10
AN T 10
= M 10.0
BEC

L MW12 // count just to check if the code works
+ 1
T MW12

Kalle
 
You haven't stated which PLC.
The 400 series have the option to set a minimum scan cycle time. The 300's don't.
For the 300's you need to create the interval yourself.
 
OB1 is for free running cycle.
OB35 is for exact timed cyclic interrupt.

Use OB35 if you want exact cycle time.
Depending on the CPU type, there may be additional OBs for more cyclic interrupts available, so you can have 50 ms, 200 ms, 500 ms cycles running in parralel.
 
With S7-400 you can set cycle time minimum. With S7-300 only way to do constant cycle time is by using above mentioned interrupt OBs.
 

Similar Topics

We have 5 machines each using a 418-2 CPU. 4 of the lines have automatic bleed off valves to purge gases which might accumulate during production...
Replies
8
Views
4,922
Anyone who can tell me how to set a flag and reset it after 1 program cycle?
Replies
4
Views
4,705
Omron AD081-V1 Analog Input Card Offset & Gain Adjustment Entering Adjustment Mode 1. Set the input card in adjustment mode (Turn ON Dip SW No-1)...
Replies
0
Views
84
I was loading a program onto an XE1e2 PLC and it got stuck on these two windows and won't progress. It won't let me connect from the PC to reload...
Replies
0
Views
72
Hi all, i have recieved some 4RF Aprisa SR+ ethernet radios from a customer to configure. Issue is that they are used and have non-default...
Replies
0
Views
68
Back
Top Bottom