Detecting Automatic Mode in CEMAT Drive Blocks (C_DRV_1D): Status Word Decoding and Equivalent of QMAN_AUT
In SIMATIC PCS 7 CEMAT drive blocks (C_DRV_1D and C_DRV_2D), there is no dedicated binary output named QMAN_AUT as found in standard APL blocks (MotL). To detect in CFC when a CEMAT motor is in Automatic mode, evaluate the drive's internal status structure. In modern CEMAT versions, read output AUT_ON or decode bit 1 of the status word STATUS32_1 (STA_AUT). Alternatively, in legacy CEMAT, evaluate the operating mode inversions: when both Manual mode (MAN_ON == 0) and Local mode (LOC_ON == 0) are inactive and the drive is not Out of Service (OOS == 0), the drive is confirmed to be in Automatic position.
Table of Contents
- APL vs CEMAT Operating Mode Architecture: The Missing QMAN_AUT
- CEMAT Operating Modes: Automatic, Manual, Local, and Out of Service
- Decoding the CEMAT 32-Bit Status Words (STATUS32_1 / STATUS32_2)
- Evaluating Mode Flags: AUT_ON, MAN_ON, and LOC_ON Logic
- Comparative Signal Matrix: APL MotL vs CEMAT C_DRV_1D Mode Outputs
- Step-by-Step CFC Interconnection and Extraction Workflow
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
APL vs CEMAT Operating Mode Architecture: The Missing QMAN_AUT
Engineers transitioning from standard SIMATIC PCS 7 Advanced Process Library (APL) to the CEMAT Minerals & Mining library frequently search for the ubiquitous output parameter QMAN_AUT (or AutAct / ManualAct). In APL, QMAN_AUT delivers a clear binary indicator (1 = Auto, 0 = Manual) that is easily wired into interlocks, sequencing SFCs, or external SCADA telemetry.
In CEMAT, drive blocks (C_DRV_1D for unidirectional drives and C_DRV_2D for bidirectional drives) were engineered around highly condensed technological data structures optimized for mineral processing group sequencing (C_GROUP). Rather than exposing dozens of discrete binary mode outputs that clutter CFC margins, CEMAT packs operational states into structured 32-bit DWORD status words, requiring specific decoding techniques.
CEMAT Operating Modes: Automatic, Manual, Local, and Out of Service
A CEMAT drive operates in one of four mutually exclusive operating modes:
- Automatic Mode: The drive is controlled automatically by group start/stop sequences (
C_GROUP) and route control logic. - Manual Mode: The drive is operated individually by control room operators from the WinCC faceplate (
C_DRV_1Dstandard view). - Local Mode: The drive is controlled by field personnel via physical start/stop pushbuttons positioned adjacent to the physical motor.
- Out of Service (OOS): The drive is isolated for mechanical or electrical maintenance, suppressing alarms and interlocking.
Because a drive cannot be in Auto and Manual simultaneously, detecting Automatic mode requires reading the positive auto flag or evaluating the absence of all non-automatic modes.
Decoding the CEMAT 32-Bit Status Words (STATUS32_1 / STATUS32_2)
In CEMAT V7.x, V8.x, and V9.x, the block outputs STATUS32_1 and STATUS32_2 contain the full operational state of the machine. To extract individual status flags in Continuous Function Charts:
- In
STATUS32_1, bit positions correlate directly to operating modes: - Bit 1 (
STA_AUT): Drive is in Automatic Mode (1= Active). - Bit 2 (
STA_MAN): Drive is in Manual Mode (1= Active). - Bit 3 (
STA_LOC): Drive is in Local Mode (1= Active). - Bit 4 (
STA_OOS): Drive is Out of Service. - Engineers can connect
C_DRV_1D.STATUS32_1to a bit-demultiplexer block (such as standard STEP 7BITS_32or CEMAT status extractorC_STATUS) to unpack Bit 1 into a clean boolean signal.
Evaluating Mode Flags: AUT_ON, MAN_ON, and LOC_ON Logic
In modern releases of CEMAT, individual boolean interface signals are exposed on the block interface for technological convenience:
- Parameter
AUT_ON: In CEMAT V8.1 and later, parameterAUT_ONis exposed onC_DRV_1Dand asserts1whenever the drive is in Automatic mode. IfAUT_ONis hidden in CFC, unhide it viaObject Properties -> Parameters -> Visible. - Boolean Complement Logic (Legacy CEMAT V6 / V7): If working on legacy versions where
AUT_ONis not exposed, Automatic mode can be derived with absolute mathematical certainty using standard logic gates:
Is_Auto = (NOT MAN_ON) AND (NOT LOC_ON) AND (NOT OOS)
ConnectingMAN_ON,LOC_ON, andOOSinto a NOR gate generates the exact functional equivalent ofQMAN_AUT.
Comparative Signal Matrix: APL MotL vs CEMAT C_DRV_1D Mode Outputs
The following table compares mode detection parameters between standard APL and CEMAT libraries:
| Operational Dimension | Standard PCS 7 APL (MotL) | CEMAT Unidirectional Drive (C_DRV_1D) |
|---|---|---|---|
| Direct Auto Output | QMAN_AUT (or AutAct) | AUT_ON (Visible in modern CEMAT) |
| Status Word Bit | Status1.Bit0 | STATUS32_1.Bit1 (STA_AUT) |
| Manual Mode Output | ManualAct | MAN_ON / STATUS32_1.Bit2 |
| Local Mode Output | LocalAct | LOC_ON / STATUS32_1.Bit3 |
| Out of Service Output| OosAct | OOS / STATUS32_1.Bit4 |
| Group Linkage | External interlock wiring | Native group pointer C_GROUP (LNK_GRP) |
Step-by-Step CFC Interconnection and Extraction Workflow
Follow this procedure to extract the Automatic mode signal in CFC:
- Open the CFC chart containing the
C_DRV_1Dinstance. - Double-click the block or right-click and select Object Properties.
- In the I/Os tab, search for parameter
AUT_ON. - If present and hidden, check the box in the Visible column. Click OK.
- If
AUT_ONis absent in your library version, insert a standard boolean NOT/AND gate or CEMATC_STATUSbit unpacker. - Connect
C_DRV_1D.MAN_ONandC_DRV_1D.LOC_ONto the inputs of a 2-input NOR gate (NORblock from PCS 7 Basis Library). - The output of the NOR gate provides the exact
QMAN_AUTequivalent signal, ready for wiring to downstream sequences or telemetry.
Verification
Verify mode detection in CFC and WinCC Runtime:
- Open the motor faceplate in WinCC Runtime and click Auto. Confirm that the drive switches to Automatic mode.
- In CFC test mode, confirm that
AUT_ON(or your NOR gate output) transitions to1(True). - In WinCC Runtime, click Manual and verify that
AUT_ONimmediately drops to0(False). - Switch to Local mode via field simulation; confirm that the signal remains
0. - Verify that downstream interlocking correctly recognizes the Auto signal without chattering.
Limitations and Operational Precautions
Adhere to the following operational precautions:
- Never Force Operating Modes in Logic: Do not attempt to force a drive into Auto mode by writing directly to
AUT_ON; mode switching in CEMAT must be executed via command inputs (AUTO_ON,MANU_ON) or group commands. - Group Sequence Priority: Remember that in CEMAT, placing a motor in Auto does not automatically start the motor; the motor starts only when the parent group (
C_GROUP) executes its automated start sequence. - Hidden Pin Persistence: Parameters made visible in CFC remain visible across delta compilations, but updating block types from Master Data Library may reset visibility attributes if not configured in the template.
Engineer FAQ
Can I make the AUT_ON pin visible on existing CFC charts?
Yes. In CFC, open the block's Object Properties, find AUT_ON in the I/Os tab, check the Visible column, and click OK.
How do I extract individual bits from the STATUS32_1 status word?
Interconnect STATUS32_1 to the input of a BITS_32 demultiplexer block from the standard S7 library or use the CEMAT C_STATUS block.
Does switching a CEMAT drive to Automatic mode cause it to run immediately?
No. In CEMAT, Automatic mode simply authorizes the drive to be started by its parent group sequence (C_GROUP). The motor starts only when group start conditions are met.
Technical References
- SIMATIC PCS 7 CEMAT V7.0 / V8.0 Engineering and Licensing Manual (Entry ID: 109780813)
- SIMATIC Process Control System PCS 7 Advanced Process Library (APL) Function Manual (Entry ID: 109760968)
- Siemens Industry Online Support (SIOS) CEMAT Object Description (Entry ID: 41931125)
- SIMATIC Process Control System PCS 7 CFC for S7 (Entry ID: 109746516)
Related Articles
- Mapping Operating Modes in CEMAT Drives vs Standard PCS 7 Library
- Connecting CEMAT C_DRV_1D Instance Data Blocks to WinCC Diagnostic Faceplates
- Displaying Motor Current Percentage in CEMAT C_DRV_1D Faceplates
Related Tags
- CEMAT Drive Block
- C_DRV_1D
- QMAN_AUT Equivalent
- STATUS32_1
- AUT_ON Parameter
- Automatic Mode Detection