Timer affected by CPU load?

elsabz
2017-02-28
2017-03-01
  • elsabz - 2017-02-28

    Hello, I just updated the system CoDeSys 3.5.10
    Unfortunately from the previous version has anything changed in the sense that the same application I have developed behaves differently

    I describe the problem ...
    With a PIFACE DIGITAL 2 card, I read a digital input that goes to the 50 Hz frequency.
    I program a normal IEC Timer TON that with a time of 100 ms detects the status input low.
    If the input remains low for more than 100 ms, the timer TON.Q becomes high.

    On the project with CoDeSys version 3.5.8 he never go high.
    On new version 3.5.10 (same program) I noticed that if the CPU load goes over (open another VisuElemnt or changePage),
    the timer strangely go high and it should not because the frequency of 50 Hz input is constant.

    The Task is a freewheeling, what can I do to fix this?
    I tried to increase the PT.time to 200 ms but behaves the same.

    Serghei

     
  • elsabz - 2017-02-28

    Hello,

    PLC behavior is strange
    It's not that I have to update the SPI Master and Slave Driver (PIFACE DIGITAL)?
    The version of Master is 1.0.0.0 and Slave 1.2.1.0

    Now i try to update and later i become one compilation error:
    C0077: Unknown type: IoDrvPiFace.IoDrvPiFace

    Where is the updated driver?

     
  • eschwellinger

    eschwellinger - 2017-03-01

    hi,
    please attach your project..

    BR
    Edwin

     
  • elsabz - 2017-03-01

    Hi Edwin,

    file is to big, please give me your email, or send me a message.

    S.G.

     
  • elsabz - 2017-03-01

    Hi Edwin,

    i send in your attention to e support@codesys.com e

    Bye bye...

    S.G.

     

Log in to post a comment.