![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#1 |
Member
![]() ![]() Join Date: Feb 2022
Location: algeria
Posts: 40
|
Time_delay_interrupt
HI everyone as a beginner i have been working with the time delay interrupt to understand how it works
the SRT_DINT instruction starts the counting with a negative edge in EN input when disactivating the interrupt with CAN_DINT instruction the the counting stops but it give an error code 16#80A0 (Time-delay interrupt has not started.) rather than 16#0000 why is that i didn't totally understand the use of the DIS_AIRT and EN_AIRT instruction and what's the difference between DIS_AIRT and CAN_DINT when creating a time delay interrupt OB what's his cycle time (how long he last) what the limitations when putting a code inside of it like putting a timer thanks for all please correct me if am wrong kind regards Last edited by adam_lhadi; November 23rd, 2022 at 03:59 PM. |
![]() |
![]() |
#2 |
Member
|
I think probably using timers in a time interrupt is not a good thing, also perhaps this will help
https://support.industry.siemens.com...rt-dint/133159 |
![]() |
![]() |
#3 | ||
Lifetime Supporting Member + Moderator
|
Quote:
They are not directly related to SRT_DINT, CAN_DINT, QRY_DINT. Quote:
In TIA help the use of SRT_DINT, CAN_DINT, QRY_DINT is described with a link to a program example as well as a link to a general sample library. What are you trying to achieve ? I think that SRT_DINT, CAN_DINT, QRY_DINT are used when you want a hardware interrupt, but dont want it to be too sensitive, i.e. triggering many events on a signal that bounces.
__________________
Jesper ![]() NOTICE: JesperMP has passive-aggressive tendencies, can be impolite and may even use sarcasm ! Also: ᛁᚠ ᚢᚬᚢ ᚴᚬᚾ ᚱᛅᚬᛏ ᚦᛁᛋ ᚦᛅᚾ ᚢᚬᚢ ᚼᚬᚠᛅ ᚴᚬᛁᚾᛅᛏ ᛘᚢ ᚱᛅᛋᛒᛅᚴᛏ |
||
![]() |
![]() |
#4 | |
Member
![]() ![]() Join Date: Feb 2022
Location: algeria
Posts: 40
|
Quote:
about the interference of time delay interrupt we can use the offset that's what makes me wondering about the difference between the offset and AIRT and EN_AIRT instructions |
|
![]() |
![]() |
#5 | |
Member
![]() ![]() Join Date: Feb 2022
Location: algeria
Posts: 40
|
Quote:
also it's scan time is it inlimited |
|
![]() |
![]() |
#6 |
Member
|
Timed interrupts are exactly that, for example a 100ms interrupt wil trigger every 100ms & run the code in the interrupt OB. this interrupts the normal scan of the main program, there are limitations for example too many calls to interrupts could alter the normal program scan time, also if the code in the interrupt OB took longer than the 100ms to scan not all the code would complete or the interrupt would be triggered again before all code is processed, this would probably generate an error.
|
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|