If anyone can tell me whats wrong with my program iam trying to ditect the negate edge of the pushbotton.
I have created 3 type of code.
No one is working.
It always turn on the out at the push insted at relise of pushbotton
Whay??
Please help
View attachment 39666
Hello mk42Thanks for u fast replay!!I really appreciate u fast replay.
Concerning u answer!!Can we get some explanation of what you are expecting your code to do? Your tags are just tag1, tag2, tag3, etc, so it isn't very clear. Which tag is the pushbutton? Which tag do you want to be on after the negative edge?
Your problem might be that you need to use the N_Trig command or the N contact instead of the N coil.Well lets see!!I am trying to create module of detecting a falling edge.Which mean transport from 1 to 0.I try to catch push button i0.1 when it's release and not when its pushed.Every time as soon as I push button i0.1 the out is lit.And I like the out to lit up when I release .I looked at the data sheet book and I choose that symbol (N) like it says at the manual.look at the second pic of the manual .
that how i used it.
thank in addvance
danielchen:
I'm not sure what manual that screenshot is from, but it doesn't match up to what I see in the help file, or in your program. In your program, the (N) coil has an address both above and below (two operands). The top one is the tag it is setting, the bottom one is the memory tag. However, this doesn't affect the RLO ("Result of Logic Operation", or "is this network true or false") which controls the (S) you used, thus it became true as soon as the contact did.
As VictorBit (and I suggested), you probably want the N_Trig function instead of the (N). You could also use a |N| contact instead of the typical contact you used for the input, and remove the (N) entirely.
U suggesstion is good for one time use in the program.
I need to use it many time.
Beside!! whats wrong with my program.
Is it because of the s7200??
What should i do to fix it??
Hello every body !!
I think mk42 and victorbit where right .
I suppose the instruction should be /N/ instead of (N)
The first is for s7200 the second is for s300 and s400
Just now i downloaded the programing manual for s7200 and checked that.
Hope on sunday or monday to check that alive??
Thanks for all any way
The "edge" trigger needs two memory bits. One is the bit that you are monitoring for the negative edge, and the other is a memory bit that the instruction uses to store the last value of the tag, so that it knows when the bit transitions from high to low.
In the second field, just put any spare memory bit, and perhaps for readability, label it "NTrigStorageBit" or something similar.
You have Q0.0 switching in to Q0.0, so Q0.0 can't activate until Q0.0 has activated.