Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Read micro second signal with industrial plc

a-simone
2022-12-03
2022-12-03
  • a-simone - 2022-12-03

    Dear,

    I'm mechatronic engineer using Codesys from some years.

    I have a PLC application with cycle time 10 ms.
    I have a library provided from the plc supplier able to read the period of the input digital signal with precision of 1 us (micro-second) and it works very well.

    My need is to read about the same digital signal, not the period, but the high level time with precision of 1 us. Because I have high level time that is variable and I want to rread it.

    Example I know that the signal has period of 100000 us and high level time of 500 us.

     
  • sgronchi - 2022-12-03

    It's probably done in the hardware. You should ask the manufacturer, typically the peripherals that do that stuff already have both the high/low time and the period information.

     

Log in to post a comment.