Thx a lot to both of you!
Just to make sure i understand you right. Please have a look at my little "programm think sketch" for the upcoming code using arduino PLC and the RGB LED strips. The inputPin1-6 get +5V from the PLC.
void setup ()
{
// setting up all the pins and functions i use e.g. pinMode
}
void loop ()
{
if (inputPin 1 == high)
{
doThingA;
if (inputPin 1 == low)
{
jumpBack to main loop;
}
}
else if (inputPin 2 == high)
{
doThingB;
if (inputPin 2 == low)
{
jumpBack to main loop;
}
// (...) continuing pin 3,4,5, 6
else
{
doThingG;
}
}