karofilakis
Member
Sorry for my english
in my s7 project , i have a global variable (as an input in i0.2) named "m35.over_load"
in the function fc2, i have a local variable named #over_load as bool
when i push the buton i0.2 the m35.over_load = 1 and something is done in the fuction (stops the motor)
when i realease the buton i0.2 the m35.over_load = 0 and the motor should start to run but under contitions that have to do with the previus status of m35.over_load (1)
how i can transfer the value of m35.over_load when is 1 in the local variable #over_load whithout this change when the m35.over_load is 0 ???
When i push the buton i0.2
m35.over_load ---> 1
#over_load ------> 1
when i realese the buton i0.2
m35.over_load ---> 0
but i want steel
#over_load ------> 1
how i can do this ????????
Thanks in advance
in my s7 project , i have a global variable (as an input in i0.2) named "m35.over_load"
in the function fc2, i have a local variable named #over_load as bool
when i push the buton i0.2 the m35.over_load = 1 and something is done in the fuction (stops the motor)
when i realease the buton i0.2 the m35.over_load = 0 and the motor should start to run but under contitions that have to do with the previus status of m35.over_load (1)
how i can transfer the value of m35.over_load when is 1 in the local variable #over_load whithout this change when the m35.over_load is 0 ???
When i push the buton i0.2
m35.over_load ---> 1
#over_load ------> 1
when i realese the buton i0.2
m35.over_load ---> 0
but i want steel
#over_load ------> 1
how i can do this ????????
Thanks in advance