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, I have a CPU 317-2DP Firmware Version V2.1.8. In TIA Portal only V2.6 is available, and there is no option to upgrade FW. Then I open it...
Replies
2
Views
97
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
293
Hi PLC people, think about this scenario: The PLC is somehow connected to the same network with the facilities` network. Then someone connects to...
Replies
2
Views
105
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
159
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
Back
Top Bottom