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

Hi everyone, i have a Siemens S7-300 Cpu 314C-2 DP with several cards of i/o and servos my laptop has TIA version 16 and 17 loaded and...
Replies
3
Views
21
Hi all, Currently having trouble getting a speed reference to write over modbus to an Omron M1... I can successfully write a run command and...
Replies
2
Views
26
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
26
Views
310
Hi everyone, I am an omron plc tec , lately I came across a siemens s7 200 cn plc . Can someone help me regarding the software required and...
Replies
26
Views
472
This is the first time I am working with Simatic Manager Step7 as I started my siemens journey with TIA which is pretty easy and do a lot of stuff...
Replies
3
Views
118
Back
Top Bottom