Which Arduino board do you have ?
Do you use the newest Arduino IDE version 1.0.6 or 1.5.8 ?
Are you sure that you are uploading the sketch ? Can you make a led blink ?
Delta_G, you think a step relay is used ? then 4ms is too short.
You can't do that. You're only allowed one function with that name.
Do you want one to change every 4ms and the other to change every 1000ms? If so, I suspect you need to learn and embrace the "Blink Without Delay" paradigm.
the pin 11 puts power to a bace of a NPN tranzistor alowing the steper moter to reverce and the 4 ms is makeing the steper moter step bye aplying pasitive pulces to the step pin on the bipolar driver bord from pin 12 so i want pin 12 to have a 4ms delay and the pin 11 to have a 1000 ms delay dose that make more sence
vinaton:
the pin 11 puts power to a bace of a NPN tranzistor alowing the steper moter to reverce and the 4 ms is makeing the steper moter step bye aplying pasitive pulces to the step pin on the bipolar driver bord from pin 12 so i want pin 12 to have a 4ms delay and the pin 11 to have a 1000 ms delay dose that make more sence
That's what I thought you wanted to do. Well, you can't do that and use the delay function because during that 1 second of delay the board won't do anything but sit there like a lump. And from what I understand you'd like that other output to keep going.
Have you had a look at the link that I gave you in reply #6? That will show you how to write non-blocking code so you can handle doing more than one thing at a time.
Did you read it? Do you understand it? If not then read it again. Once you understand it then it should be quite trivial. That write-up that I linked you to is incredibly simple.
On each pass through the loop function, check the time and see if it is time to switch one of the pins. If 4ms have passed since the last time the step pin was toggled, then its time to toggle it and remember what time you did so. Same with the 1000ms time period only for the other pin.
Do you want blinkDuration or the NPNRev_Interval here?
It looks like you've got the concept. The only thing you're doing wrong here is not setting the pins. You get the new state for the pins, but at some point you'll need to actually do a digitalWrite(Step, Step_State) to actually put that out on the pin.
that is how the code was wrote so i coppyed it and modifyed the variebls so it would do what i want so what needs to be fixed what line and what number
Would writing the current states to the pins help I wonder ?
Delta_G did tell you earlier
The only thing you're doing wrong here is not setting the pins. You get the new state for the pins, but at some point you'll need to actually do a digitalWrite(Step, Step_State) to actually put that out on the pin.