S7 using SFC43

Join Date
Aug 2005
Location
Hasselt
Posts
60
Hi all,

Here's my situation;
- I have a S7-318 -2, Every 10ms OB35 is called (priority 12). Recently, when I went online (MPI) the CPU went in Stop. De Diagnostic Buffer showed me a problem with the cyclic interrupt OB35 .
Because the execution time can't be changed, I was thinking about calling SFC43 in OB80 to avoid such problems in the future.
The only problem is that I only want to avoid this problem when the cause of the failure is that I'm online and not when there's is another cause. Second is that when the cycle time gets to long (>50ms) the CPU should go into STOP.


So I wrote a program for this but during testing (with PLCSIM) I've noticed that during the exceeding of the cycle time the CPU indeed stays into Run, but when I'd stop the loop (Cycle time is normal again) programs aren't processed anymore.
Anyone:
- has experience with similar problems or with using SFC43?
- might know better ways to solve this problem?
- knows why the CPU doesn't process anymore?
thx in advance
HG
 
My experience with PLCSIM (V5.2) is that the timed interrupt stops working if you do a lot of files accesses (but OB1 always keeps going). The scan cycle time for PLCSIM is set to 20 seconds by default and overrides the h/w config setting for the CPU. This can be changed using the Execute option on PLCSIM.

As for preventing the timed interrupt fault whist monitoring, my only suggestion is to reduce the code executed in the timed interrupt (easier said than done of course).
 

Similar Topics

Hi I'm very new to PLC programming and I'm trying to find out if this library (Tc2_NcFifoAxes) is necessary for our task In our case we need to...
Replies
0
Views
38
I have a project to automate four generator sets. The system will monitor and store the load demand of the factory. Once there's Power outage, the...
Replies
0
Views
72
Adding ethernet equipment to an existing panel that has none. We have some solid ethernet cables coming from other remote cabinets that I plan to...
Replies
3
Views
133
I'm trying to control a device via MODBUS RTU and the ModbusRtuMasterV2_PcCOM in Twincat 3. I've configured a device with the right com port and...
Replies
7
Views
234
Hi, I'm trying to use the IO Device Library (Product Versions) which is configured to work with the 1756-EN4TR & 1756-EN2TR but my system uses...
Replies
0
Views
78
Back
Top Bottom