HSC Interrupt properties
The HSC Interrupt properties status bits indicate the enabled/disabled status, the execution status, and whether the interrupt condition is lost.
User Interrupt Enable (HSC0.Enabled)
Parameter | Data format | HSC modes | User program access |
---|---|---|---|
HSCO.Enabled | Bit | 0...9 | Read-only |
Enabled bit is used to indicate HSC interrupt enable or disable status.
User Interrupt Executing (HSC0.EX)
Parameter | Data format | HSC modes | User program access |
---|---|---|---|
HSCO.Ex | Bit | 0...9 | Read-only |
The EX (User Interrupt Executing) bit is set (1) whenever the HSC sub-system begins processing the HSC subroutine due to any of the following conditions:
- Low preset reached
- High preset reached
- Overflow condition - count up through the overflow value
- Underflow condition - count down through the underflow value
The HSC EX bit can be used in the control program as conditional logic to detect if an HSC interrupt is executing.
The HSC sub-system will clear (0) the EX bit when the controller completes its processing of the HSC subroutine.
User Interrupt Pending (HSC0.PE)
Parameter | Data format | HSC modes | User program access |
---|---|---|---|
HSCO.PE | Bit | 0...9 | Read-only |
The PE (User Interrupt Pending) status flag indicates that an interrupt is pending. The PE status bit can be monitored or used for logic purposes in the control program if you need to determine when a subroutine cannot be immediately executed. The PE bit is maintained by the controller and is set and cleared automatically.
User Interrupt Lost (HSC0.LS)
Parameter | Data format | HSC modes | User program access |
---|---|---|---|
HSCO.LS | Bit | 0...9 | Read-only |
The LS (User Interrupt Lost) is a status flag that indicates an interrupt has been lost. The controller can process one active user interrupt condition and maintain one pending user interrupt condition before it sets the lost bit.
The LS bit is set by the controller. It is up to the control program to use and monitor a lost condition.
Provide Feedback