Siemens plc

orense

Member
Join Date
Apr 2006
Location
Norway
Posts
196
Hello everybody!

Has anybody ever experienced that it seems as if the plc does not finish doing everything it is supposed to do within a scan.

I have a program which is using special functions to write to some structs, and the functions are used over and over many times. But sometimes it seems that the functions do not always update the DB'w that it is supposed to write to. Some things in the DB changes, but it is as if the function will not go through all the way....I know it sounds strange, but that is what seems to happen.

And since all the functions gets called from OB1, is there anyway to wait in between the function calls, like say for a second or two. I C programming it is called delay, but I have not seen any similar in S7.

For instance if OB1 was like this:

call fc12
call fc13
call fc22,

If I would like to wait 1 second between each call, anybody know how that can be done??


Thanks alot for any inputs!

brg
Andreas
 
Could you not just fit timer conditions to the FC call rung ?
Run timer 1 for 1 sec then timer done call fc12.
Run timer 2 for 2 sec then timer done call fc13
run timer 2 for 3 secs then timer done call fc22.
 
Post a cut down version of the project that will run and show the problem. (Copy the necessary blocks to a library and archive the library, then attach the zip file to your post)
 

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