
70 Publication LOGIX-AP008B-EN-P - June 2008
Chapter 3 Conversion of System Software and Standard Functions
Handling of Interrupts
Interrupts can be enabled and disabled by the user program making calls to
system functions.
Errors
These system calls return bit fields in the case of S7, or an integer in the case of
Logix, representing error codes.
S7 Comment Logix Comment
SFC39 DIS_IRT Disables interrupts handled by a
specified OB. Interrupt requests are
lost.
SSV
Inhibits specified task.
SSV Class - Task
SSV Instance - Task name
SSV Attribute - InhibitTask
SSV source - DINT variable set to 1
SFC39 EN_IRT Enables interrupts handled by a
specified OB
SSV
Enables specified task.
SSV Class - Task
SSV Instance - Task name
SSV Attribute - InhibitTask
SSV source - DINT variable set to 0
SFC41 DIS_AIRT Disables interrupts handled by a
specified OB. Interrupt requests are
delayed.
UID Disables interruption of the current task
by a higher priority task
SFC42 EN_AIRT Enables interrupts handled by a
specified OB. Any interrupts
delayed by SFC41 are executed.
UIE Enables interrupts of the current task.
S7 Comment Logix Comment
SFC38 READ_ERR Reads and clears error bits. The
type of error to be queried can be
selected with a filtering field.
GSV
(Use SSV to reset counters
or faults)
GSV Class - FaultLog
GSV Attribute:
MajorEvents – No of major events
MinorEvents – No of minor events
MajorFaultBits – current major fault
MinorFaultBits – current minor fault
GSV Target – INT or DINT to receive data
Commentaires sur ces manuels