Configuring Alarm Acknowledgment Interlock Latching with APL Feature.Bit22 and MsgAckn1
To implement interlock latching that prevents automatic equipment restart until an operator acknowledges the trip alarm in WinCC, enable Feature.Bit22 ('Send message state to block outputs') on the monitoring block (MonAnL or MonDiL). When enabled, internal ALARM_8P state feedback updates output MsgAckn1. The condition MsgAckn1 = W#16#FFFF (decimal 65535) confirms that all incoming and outgoing messages are fully acknowledged. Route MsgAckn1 to latching logic or compare its decimal value to reset interlock latches. Alternatively, use standard APL interlock blocks (Intlk02, Intlk04, Intlk08) with Feature.Bit27 enabled, which natively latches tripped inputs until an operator clicks Reset.
Table of Contents
- Principles of Interlock Latching and Alarm Synchronization
- APL Feature.Bit22 and ALARM_8P Feedback Architecture
- Internal Bit Structure of MsgAckn1 and ACK_STATE
- Comparing Alarm-Based Reset vs Native Interlock Latching
- Step-by-Step Procedure to Implement Latching Logic
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
Principles of Interlock Latching and Alarm Synchronization
In continuous process facilities, safety standards frequently dictate that tripped machinery (such as feed pumps or burner valves) must not automatically restart when process conditions return to normal. Even if a high-temperature or low-pressure condition clears, the protective interlock must remain latched until an operator acknowledges the alarm in the WinCC alarm banner and issues an explicit reset command.
In SIMATIC PCS 7 Advanced Process Library (APL), achieving this synchronization between HMI alarm acknowledgment and AS control logic can be handled via two distinct architectures: extracting internal ALARM_8P acknowledgment status using Feature.Bit22, or deploying standard APL interlock blocks (Intlk02, Intlk04, Intlk08) with input latching enabled (Feature.Bit27).
APL Feature.Bit22 and ALARM_8P Feedback Architecture
By default, technological monitoring blocks (MonAnL, MonDiL) and motor/valve blocks (MotL, VlvL) call internal system message blocks (ALARM_8P) without routing message status to external block pins. Setting Feature.Bit22 = 1 activates feedback of internal message status to block outputs:
MsgErr: Indicates internal communication or parameterization error inALARM_8P.MsgStat: Reports internal execution status of the message handler.MsgAckn1(andMsgAckn2): Exposes the exact 16-bit acknowledgment word (ACK_STATE) directly fromALARM_8P.
When an alarm event triggers, MsgAckn1 transitions to indicate an unacknowledged incoming event. Once the operator acknowledges the alarm line on the WinCC OS client, the alarm system transmits acknowledgment back to the AS, setting MsgAckn1 to W#16#FFFF.
Internal Bit Structure of MsgAckn1 and ACK_STATE
The table below details the internal bit structure of the 16-bit word output MsgAckn1, which directly mirrors ALARM_8P.ACK_STATE.
Bit 0SIG_1) Incoming EventBit 1SIG_2) Incoming EventBit 2SIG_3) Incoming EventBit 3SIG_4) Incoming EventBit 4SIG_5) Incoming EventBit 5SIG_6) Incoming EventBit 6SIG_7) Incoming EventBit 7SIG_8) Incoming EventBit 8 to 15Word Status: W#16#FFFFComparing Alarm-Based Reset vs Native Interlock Latching
Engineers must evaluate whether to use MsgAckn1 comparison or standard APL interlock blocks:
-
Alarm-Based Reset (
MsgAckn1 = W#16#FFFF): Couples reset directly to the alarm system banner. When the operator presses the global 'Acknowledge Horn / Alarm' button in WinCC, the interlock condition clears. While convenient, this approach can lead to unintended equipment restarts if an operator acknowledges alarms without inspecting the underlying root cause. -
Native APL Interlock Latching (
Intlk02 / Intlk04 / Intlk08withFeature.Bit27 = 1): The recommended Siemens standard. When any interlock input trips, the interlock block latchesOut = 0regardless of whether the physical input recovers. The operator must open the interlock faceplate or actuator faceplate and click the dedicated Reset button (RstOporRstLi). This guarantees deliberate operator intent independent of alarm acknowledgment.
Step-by-Step Procedure to Implement Latching Logic
Follow this procedure to configure alarm acknowledgment latching in Continuous Function Chart (CFC):
-
Enable Feature.Bit22 on Monitoring Blocks:
- In the CFC editor, open the object properties of the monitoring block (e.g.,MonAnL).
- Locate parameterFeatureand set Bit 22 = 1 ('Send message state to block outputs'). -
Extract Acknowledgment Status:
- Insert a type conversion block (e.g.,W_BOto unpack individual bits, orWord_To_Dint/ comparison block).
- InterconnectMonAnL.MsgAckn1to the converter input.
- Compare the output value: ifValue == 65535(W#16#FFFF), acknowledgment is complete. -
Wire Latch Reset Logic:
- Feed the trip condition (e.g.,MonAnL.AH_Act) into theSinput of anSR(bistable flip-flop) block.
- Feed the acknowledgment signal into theRinput of theSRflip-flop.
- Route the flip-flop inverted output to theProtectorPermitinput of the target actuator block (MotL,VlvL). -
Alternative: Configure APL Intlk08 with Feature.Bit27:
- InsertIntlk08. Connect process signals to inputsIn01throughIn08.
- SetIntlk08.Feature.Bit27 = 1('Interlock latching'). ConnectIntlk08.OuttoMotL.Protect.
- InterconnectMotL.RstOpor field reset pushbutton toIntlk08.RstLi.
Verification
Verify latching and acknowledgment logic through the following commissioning tests:
1. Force an analog input above its high-high alarm threshold (MonAnL.AH_Lim): verify that MonAnL.AH_Act = 1 and MsgAckn1 changes from W#16#FFFF to W#16#FFFE.
2. Confirm that the associated motor trips (MotL.Protect = 0).
3. Remove the simulated process override: verify that process condition returns to normal, but the interlock output remains latched.
4. In the WinCC alarm banner, click 'Acknowledge': verify that MsgAckn1 returns to W#16#FFFF and the reset signal unlatches the interlock logic.
Limitations and Operational Precautions
Using MsgAckn1 requires bidirectional communication between the WinCC Alarm Logging server and the automation system. If network communication between OS Server and AS is severed, alarm acknowledgments from the OS client will not reach the controller, leaving the equipment permanently locked out. Furthermore, when grouping dozens of signals across a single interlock, evaluating MsgAckn1 on every individual monitoring block creates complex logic networks. Utilizing standard Intlk08 blocks with Feature.Bit27 is significantly more scalable and robust.
Engineer FAQ
What does MsgAckn1 = W#16#FFFF mean?
It indicates that all incoming and outgoing alarms associated with signals 1 through 8 in the internal ALARM_8P block are fully acknowledged by the operator.
Why is MsgAckn1 missing from my CFC block?
By default, MsgAckn1 is hidden and inactive. You must set Feature.Bit22 = 1 to activate message status feedback, and set the pin visibility attribute to 'Visible' in the CFC block properties if necessary.
Can I reset latched interlocks automatically when the process clears?
Yes, by leaving Feature.Bit27 = 0 on APL interlock blocks, the interlock output automatically tracks the raw process input status without latching.
Technical References
- SIMATIC Process Control System PCS 7 Advanced Process Library (APL) Function Manual
- SIMATIC PCS 7 CFC for S7 Programming Manual - Message Configuration and Interlocks
- Siemens Technical Support: Handling Alarm Acknowledgment in PCS 7 Logic (SIOS Entry ID 23624898)
Related Articles
- Displaying Single Process Alarms Across Multiple Plant Hierarchies and Control Rooms
- Resolving WinCC API Error 4029 (PutSingleMessageProperties) During OS Compilation
- Proper Initialization and Memory Rules for S7 SCL VAR_TEMP Variables in PCS 7
Related Tags
- APL
- Interlocks
- ALARM_8P
- Feature.Bit22
- Feature.Bit27
- Alarm Acknowledgment