Hello! I have very little PLC knowledge and I am trying to modify a program. I have an input that used to be a 5V. currently the program looks at the input, see's 5V and passes.
the new software, this input is a pulsed input. I need to verify if the pulse is above a setpoint voltage. (say 2.5V)
I am thinking that I need to monitor the input and if it is above the setpoint, then set a bit true. I have tried to implement this, but I think it is hit and miss if the scan of the program is at the correct point in the pulse?
I was hoping to implement some sort of loop - where I could enter the loop and sit there looking at the input for 200ms or so? I looked at a subroutine - but what "holds" the software in the subroutine - isn't it just one scan and it returns to the main program?
the new software, this input is a pulsed input. I need to verify if the pulse is above a setpoint voltage. (say 2.5V)
I am thinking that I need to monitor the input and if it is above the setpoint, then set a bit true. I have tried to implement this, but I think it is hit and miss if the scan of the program is at the correct point in the pulse?
I was hoping to implement some sort of loop - where I could enter the loop and sit there looking at the input for 200ms or so? I looked at a subroutine - but what "holds" the software in the subroutine - isn't it just one scan and it returns to the main program?