toggle"momentary input" to switch output on/off
toggle"momentary input" to switch output on/off
(OP)
I have been programming PLC's for 10 years,and was ask to program a "SINGLE" toggle input "momentary input" to control an "SINGLE" output(no big deal so far)except for the same "SINGLE"toggle input "momentary input" is to turn on and off the same "SINGLE" output,hence "can not use counters". Control Description(1), press the "SINGLE" toggle "momentary input" and instantly the "SINGLE" output is true or press the "SINGLE" toggle and the "SINGLE" toggle remains press for as long as desired and the "SINGLE" output is instantly true and remains true after the release of the"SINGLE" toggle.Control Description(2),Knowing the "SINGLE" output is now true after reading (control desciption 1)the same "SINGLE" toggle "momentary input" is to turn off the same "SINGLE"output. The pressing action of the "SINGLE" toggle desrcibed in (contol description 1) applies in (control description2).
Please forward and/or post your advice.
Please forward and/or post your advice.





RE: toggle"momentary input" to switch output on/off
RE: toggle"momentary input" to switch output on/off
RE: toggle"momentary input" to switch output on/off
asc code
xic your_pb oneshot your_oneshot NOT(word_dint[1], word_dint[1])
Use the word_dint.x to light your_pb output
when you press the pb the NOT should fill the word_dint[1]=-1, then press it again and the word_dint[1]=0
have fun
RE: toggle"momentary input" to switch output on/off
RE: toggle"momentary input" to switch output on/off
Like this
IN ASCII TEXT
XIC PB_LANE ONS LANE_TOGGLE_OS.1 NOT LANE_TOGGLE[1] LANE_TOGGLE[1]
RE: toggle"momentary input" to switch output on/off
Press 1 - Output goes on
Press 2 - Output goes off
Press 3 - Output goes on (etc etc)
and yours does similar, but the output is a SINT, INT or DINT, in other words multiple bits.
RE: toggle"momentary input" to switch output on/off
Input Output R1
-| |---+---|/|---+--------------( )--
| |
R1 | Input |
-| |---+---|/|---+
Input R1 Output
-|/|---+---| |---+--------------( )--
| |
Output | Input |
-| |---+---| |---+
RE: toggle"momentary input" to switch output on/off
input_pb one_shot one_shot_fired
--||-----------(ONS)----------------------( )
one_shot_fired output output
--||---------------|/|--------------------( )
| |
| |
| one_shot_fired output |
--|/|--------------||-----
RE: toggle"momentary input" to switch output on/off