Programming Help

Hi . Actually i wanted to make program in that I get continuous output pulse from my system so I wanted to count that pulse with odd and even number pulse so according i wanted to on 2 output for odd and even bit respectively
 
So...
Inputs:
A boolean value that is pulsing on and off
Outputs:
A counter that goes up by 1 every ODD pulse
A counter that goes up by 1 every EVEN pulse

Code:
pulse          countAll
--][------------(CTU)

------[MOD         ]
      [countAll.ACC]
      [2           ]
      [Oddoreven   ]

                countODD
-[EQU      ]-----(CTU)
 [Oddoreven]
 [1        ]

I will leave it as an excercise for you to find out how to count the even pulses.

I am not 100% sure I have interpreted your requirements correctly
 
Use a counter to count all the pulses. Create a one shot on the rising edge of the lowest bit of the counter's accumulator. Create another one shot on the falling edge of the same bit. Use these one shots to trigger the separate outputs.
 

Similar Topics

Hi all, i am the new controls guy at the plant and i have inherited a pc from the previous controls guy with Siemens tia portal version 16 and 17...
Replies
20
Views
686
Hi can you help, have a book stitching machine with collates pages in 8 stages. I have installed a camera system that will give an input to...
Replies
24
Views
1,879
I don't have much experience in programming. I can do simple configuration. it is like this. i want to add something to the existing ladder...
Replies
39
Views
6,148
Hello there, I'm practically new to the PLC world, I'm quite familiar with Siemens TIA Portal but I'm currently tasked to program Schneider PLCs...
Replies
5
Views
1,852
Hello All, As you can guess by the title I am a total noob to programming PLC's. So my problem is that I have an old Pallet wrapper that uses an...
Replies
21
Views
4,897
Back
Top Bottom