new to Arduino, and learning a new language. I am a controls engineer by trade so I have worked with several PLC's and am very familiar with Relays and controls wiring.
I have an Open Source PLC and am trying to get some simple stuff to work. Specifically a push button input to start an automotive relay flashing similar to the Pin13 LED example program but I have not had much luck with finding the right key words to express my issue here in this forum.
I am not able to turn on and off the Output to power the relay. in fact, when testing with my meter between the COM and either the NO or NC terminals I do not get any continuity.
Which Arduino are you using? Can you post a link to the relay data sheet? What are you using for a driver for the relay coil (an Arduino output can't directly drive a relay coil)? Post a schematic of your project.
OK I got the output to work but it wont latch on. My meter is fine. Output 1 is pin2. couldn't find that information anywhere. I still don't have continuity from COM to NC. the output only toggles on. I am familiar with scripting logic as I use it for my company software. I am very familiar with AB5000 and Opto22 plc's.
I want to use it for a simple alarm system for my detached garage. flashing lights and sounding a horn.
one momentary limit switch triggering the alarm to do various things with lights and a horn.
OK, by adding a delay after the simple code the relay stays on. Not sure what relay you are talking about. I am using an output relay from the PLC to close an automotive relay. (I have a 30 amp fused horn to turn on) at any rate, below is the link to the PLC that I have.
now the question is;
Digital inputs are labeled D30 to D37 what are the represented Pin assignments for these?
D30 = digitalRead pin 1?
another question, how do I read internally what input is being energized so I can determine terminal versus pin #