Step7: OB35 with 10ms cycle time

Ponteva

Member
Join Date
Sep 2011
Location
Tampere
Posts
2
Hi all,

I have a little problem related OB35 with 10ms cycle time. I need to set one output ON every 30ms, i.e 10ms ON then 20ms OFF then 10ms ON etc.

I created a simple test program with empty OB1 and OB35 containing only this function. When monitoring with oscilloscope I could see that function itself works. However when I added this to project (i.e there are several calls in OB1) function behavior changed totally. I did some research and found out that this problem is related to process image someway, meaning that when output is set ON in OB35 process image is updated in next OB1 cycle.

How should I proceed with this one? For my understand is that I should somehow use peripheral addresses for this.
 
Yes, you must use peripherial addresses.
You have to use an intermediary binary address for the logic, i.e. M20.0, then copy the intermediary byte to the direct peripherial output byte, as the last thing in OB35:

L MB20
T PQBxx // must be PQ address !
 
Yes, you must use peripherial addresses.
You have to use an intermediary binary address for the logic, i.e. M20.0, then copy the intermediary byte to the direct peripherial output byte, as the last thing in OB35:

L MB20
T PQBxx // must be PQ address !


To ensure you don't damage other signals I would do something like this

L QBx
T MB20

manipulate bit in MB20 and then

L MB20
T QBx
T PQBx
 
No need to use MB, process Q bits as normal and then execute

L QB x
T PQB x

to update the outputs immediately.
 

Similar Topics

Hello friends. I have made a little program in my cpu314C, and the longest cycle-time is 102 ms. My question goes for OB35........what is...
Replies
14
Views
6,356
Hello. If I set up the Cyclic Interrupt block OB35, to be 50ms........does anyone know, if this time varies........I mean, if there is a...
Replies
4
Views
3,224
is there any free trial version available for step7 professional and wincc comfort v17. i searched and downloaded TRIAL Download STEP 7...
Replies
1
Views
100
Hello. I need your help. I work at STEP7. There are two CPU 317-2 PN/DP controllers (317-2EK14-0AB0), working on PROFIBUS, as Master (CPU_1) and...
Replies
6
Views
205
This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
193
Back
Top Bottom