fg71
Lets make a simple example to demo a Rising Edge and Falling Edge. We will create Edge Detector in Function Block and use a Set/Reset (latch) block to store the value. As you could see in the simulator we couldn't detect the state of Rising Edge or Falling Edge. In other words its to fast.
 
  1. We need a timer to simulate Rising Edge and Falling Edge (trigger pulse)
  2. We need a Rising Edge and Falling Edge detector
  3. We need to store it with latch, so we could get its state (LED Output)
This is Rising Edge and Falling Edge detector in Function block
[203128%2F9179295%2Fmceclip0]
 
This is the main plc program
[203128%2F9179297%2Fmceclip0]
Reply 0 0
Reply