Siemens CTU instruction erratic

DairyBoy

Member
Join Date
Jun 2007
Location
UK
Posts
393
Processor: 1517F3; Software: TIAPV13. Application scan time: 1mS.

I have several FCs which are unconditionally called in OB1. In one of them there is a CTU instruction which is incremented by the system clock 1Hz bit, M0.5. There are other conditions in the rung to permit counting; these are all stable and set on.

The counter is incrementing erratically. The net result is that a 30s preset completes in 15s.

I have tried each of the following to find the cause:

1: changed the M0.5 XIC to a positive differentiating XIC.
2: inserted a Ptrig in the rung after the clock bit.
3: removed all other conditions in the rung.
4: set up a CTU in OB1, incremented by M0.5 (with and without the Ptrg).

Needles to say, it has persisted or I wouldn't be typing this.

In order to check the integrity of the M0.5 bit, I configured it to enable an unused output. First thing I noticed was that it was not 1:1 on/off, but also that it was running consistently slow: about 0.75Hz.

What an I doing wrong here??? Thank you.
 
Are usin Clock bits in safety parts? Because you shouldn't... Not directly anyways... Move them to other M part before.
 

Similar Topics

Hello everyone, I've had this issue for the last 2 days where I try to assign the profisafe address to an IO block (6ES7 146-6FF00-0AB0) but when...
Replies
5
Views
115
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
157
Hello to all, I'm just starting with using CodeSys. Immediately, I have noticed that Codesys doesn't use data blocks like for example S7 does...
Replies
11
Views
170
Hi, I'm setting up a modbus master on an S7-300. It seems to work in OB1 but not when I use it in OB35. Does anyone have any ideas why? Could...
Replies
10
Views
114
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
332
Back
Top Bottom