pauljurczak (Customer) asked a question.

Getting precise time of pulse edge.

Is there a way to get precise time of a rising edge of the pulse? I'm using LS Electric XEM-DN32H2. After reading the documentation, I'm under the impression that the current time value is refreshed only once per scan. I would like to get more accurate time stamp. Is it possible? Is there a code example, preferably with Structured Text?


  • shanem717 (Customer)

    the manual list the processing speed of the cpu as 40nS per cycle but it also says the triacs need a min of 100uS pulse width to sense the sensor signal so i would say at least 200uS cycle but you would need a oscilloscope if you need precise readings

    • pauljurczak (Customer)

      How do I read the time stamp of the rising edge of the pulse? I can't find any clock functions other than low resolution DATERD and DATERDP. Where is it in the manual?

  • ADC_LSElectricPLC_PE (AutomationDirect)

    Do you have to use the RTC? If not will the high speed counter function work for you?

    • pauljurczak (Customer)

      I need the timestamp of the pulse. Does the counter provide it? Just pulse counting is not sufficient.