Vai al contenuto

Fast output management on counter threshold

Home Forum Discussioni su problematiche generali Fast output management on counter threshold

Stai visualizzando 2 post - dal 1 a 2 (di 2 totali)
  • Autore
    Post
  • #35648
    Jozef
    Partecipante

    I am currently developing a serial machine where i am thinking of using the Slimline controller. I want to count pulses at high speed frequencies (<=10kHz) and when the preset count is reached, activate an output.

    The problem is that i need to activate the output immediately after the preset count is reached. Thereby is it not allowed for the controller to continue his program to the end of the program cycle and then switch the output. The timing is very critical here and should always be the same and not dependant of the program’s cycle time. Is this possible with the slimline controller ? (Perhaps with an interrupt routine that stops the program and switches the output, before returning to the normal program cycle).

    #38479
    Sergio Bertana
    Amministratore del forum

    You don’t report how many counters that must be managed, anyway I try to suggest some possible solutions at your question.

    If you need a single counter you can use the counter on the SlimLine CPU module. It’s possible to read its value on a program executed on Fast task (Standard every 1 mS, but the time can be changed to your requirements and you can set times down to 100 uS). Here the screenshot of an example program, as you can see the program execution takes 9 uS and at the maximum 19 uS (Download program).

    If you need more counters and for a significantly number of applications, we can modify the static output expansion I/O module. The module is based on a FPGA logic, so it’s possible to program it by adding up to 4 counters and the logic to preset a value and manage the output according to your requirements.

Stai visualizzando 2 post - dal 1 a 2 (di 2 totali)
  • Devi essere connesso per rispondere a questo topic.