Matching inputs and outputs based on time / pulses? (Not sure how to word this)

Yeah, it will do ms timers no problem. Unless I'm missing something, if I do an accumulating counter and compare, that would work on any input. I need to differentiate inputs in some fashion. The only way I can think to do it would be to have X1 specifically looking for a 50ms (or whatever value) flash / pulse, X2 looking for 75ms, etc.

That's what I had in mind. No idea if it will work for you though...


We are staying away from Arduino's. We've used them, had numerous issues. The second a customer sees a Arduino in a product, that immediately cheapens it. Additionally, they see Arduino and if there is a problem it's immediately "The Arduino went bad! Send me another one!".

Plus, by the time you spend the money to protect the Arduino, you've bought yourself a Click (or better). I recently saw a project using "Industrial Shields" and the money spent on a (IMO, hacked together) system, could have bought a very nice Productivity 2000, Do-More or DL06 system. The only reason why the Arudino system was put in place was because the programmer doesn't want to learn ladder.


Yup. As much as I like the Arduinos, they aren't made for the real world.

Do you have a link to your game site?
 
Here is a sample program that will pulse an output and read the value as an input.

I only had a relay output click, so I used 600ms pulse and was able to read between 599 and 601ms for the input register.

The program seams to work well.

Regards,
 

Similar Topics

sir, while running program in codsys an error occur 'C0138: No matching 'FB_Init' method found for instantiation of FbPowerPlantControl.' how to...
Replies
1
Views
83
After great help on the forum getting a Red Lion G3 HMI to control & communicate with Advantech's ADAM-4055 D/IO modules, the next step was to...
Replies
15
Views
4,372
Hello. I have a Power Flex 755 that is pulling material (fpm) across conveyor rollers that are controlled by a Powerflex 525 (rpm). I am probably...
Replies
17
Views
4,938
I have a 1771-IFE/C analog card where the data that is showing in the I/O config is not matching what is the actual register that the data is...
Replies
2
Views
1,439
I'm running a PLC simulation software and I have a client Qt, I get the data which is a temperature from the PLC and it's running its own internal...
Replies
4
Views
1,672
Back
Top Bottom