Time-Controlled Interrupts With the S7-22x Www.otomasyonegitimi.com

Embed Size (px)

Citation preview

  • 8/2/2019 Time-Controlled Interrupts With the S7-22x Www.otomasyonegitimi.com

    1/2

    http://support.automation.siemens.com/WW/llisapi.dll/8803785?func=ll&objId=8803785
  • 8/2/2019 Time-Controlled Interrupts With the S7-22x Www.otomasyonegitimi.com

    2/2

    Notes:

    l Interrupts are processed by the CPU in the order of their occurrence and according to theirpriority status. There can only ever be one program active for interrupt processing. If aninterrupt program is being processed then that program is terminated first. It cannot beinterrupted by a subsequently occurring interrupt program, not even if this has a higher priority.

    If an interrupt occurs while another interrupt is being processed, then the later interrupt is putinto a queue for processing later. A maximum number of 8 interrupts can be put into the timedinterrupt queue.

    l It might happen that more interrupts occur than can be entered in the queue. In this case thesystem has queue overflow flags that specify the type of interrupt events that could not beincluded in the queue. The table shows the special flags that are set when there is queueoverflow. You may only use these bits, SM 4.0 to 4.2, in an interrupt program, because they willbe reset when the queue has been processed and main program processing continues.

    You will find more information in the S7-22x System Manual under Entry ID 1109582.

    Keywords:program configuration

    interrupt programEVENT=Number of theinterrupt event

    Terminate subroutine RET

    Start interrupt program INT 0

    Now you can write the programthat you want to processevery 100 ms

    ....... .... ....

    Terminate the interrupt program RETI

    Queue Special flag

    Queue overflow for communications interrupts SM 4.0

    Queue overflow for I/O interrupts SM 4.1

    Queue overflow for time-controlled interrupts SM 4.2

    Entry ID:8803785 Date:2001-09-25

    I regard this article.... as helpful as not helpful

    Copy link Suggestion for the entry Send to a friend

    Print

    Siemens AG 2010 - Corporate Information - Privacy Policy - Terms of Use

    Page 2 of 2Siemens - Industry Automation and Drive Technologies - Service& Support - Automation...

    10.09.2010http://support.automation.siemens.com/WW/llisapi.dll/8803785?func=ll&objId=8803785 ...

    http://support.automation.siemens.com/WW/llisapi.dll/8803785?func=ll&objId=8803785http://support.automation.siemens.com/WW/llisapi.dll/8803785?func=ll&objId=8803785