Minmium cycle time for repetitive tasks in IRC5 controller?

I would like to know how faster I could repeat a task/ procedure in IRC controller. 
I also would like to know how fast a DO/DI could switch on/off .

Someone could help me with the answer?
Thank you

Answers

  • What is the task?
  • xerim said:
    What is the task?
    Create a higher frequency square wave on a digital output (on/off) for example.
  • The default length of PulseDO is 0.2 seconds if the argument is omitted, but I believe it can be set to as low as 0.001 seconds
  • lemster68lemster68 United States ✭✭✭
    I would NOT use a pulse.  The fastest way to go about this would be like this:

    SetDO DO1, 1;
    WaitDO DO1, 1;
    SetDO DO1, 0;
    WaitDO DO1,0;

    This will happen very fast, if you were to observe the LED, it may even appear to not go off at all.  If you have some high speed monitoring equipment, you might see a clean sine wave.  A limitation could be CPU load too high, but I think that with the newer controllers, the cpu load might be OK.
    Lee Justice
Sign In or Register to comment.