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.
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.