How to Add Variables to a PCS 7 SFC Type

How to Add Variables to a PCS 7 SFC Type

For a reusable PCS 7 SFC type, expose the required process value through the type's interface, use that interface I/O in the step or transition logic, and interconnect the SFC instance to the CFC signal. Siemens documents that SFC type logic is restricted to its own interface rather than arbitrary external objects. If Apply remains disabled, verify that the type is editable and the selected element is valid for the active address field; the exact cause cannot be established without the PCS 7 version and dialog details.

Table of Contents

Why an SFC type cannot use an arbitrary process variable

An SFC type is a reusable template, so its step logic is confined to its own defined interface; it cannot directly address every process signal in the CFC project. Siemens' SFC for SIMATIC S7 V9.0 SP8 manual states that assignments and transition conditions in an SFC type use its interface I/Os. To control a CFC block, expose the needed value through the SFC type interface, then interconnect the SFC instance's interface in CFC.

This is a plausible explanation for a variable that can be located in a browser but cannot be applied to the type. The source does not identify the PCS 7 version, exact object type or selected I/O, so the grey Apply button itself cannot be diagnosed conclusively.

Expose the required signal through the SFC type

  1. In the SFC type, open its Interface editor and create the input/output needed to represent the signal used by the sequence. Choose the direction and data type to match how the value is used. Siemens also describes using characteristics to expose setpoints, process values or block contacts.
  2. In the SFC type step or transition, use an interface I/O in the statement or condition. The V9.0 SP8 manual specifies that type assignments and conditions refer to interface inputs/outputs; an external CFC path is not a substitute for a type interface element.
  3. Return to the CFC chart containing the SFC instance. Interconnect the instance interface to the corresponding CFC block I/O or project signal, observing I/O direction and data type.
  4. Reopen the step or transition properties and enter or browse for the now-defined type interface element. In the address browser, select the intended element and use Apply to place it in the active address box where the installed version provides that workflow.
  5. Save, compile and review diagnostics using the manuals for the actual PCS 7 version. Do not download to a production AS until the sequence, interfaces and interconnections have been reviewed under the site change procedure.

Check editability and the selected field

If Apply remains disabled after selecting a valid interface element, check whether the SFC type is write-protected and whether the properties dialog is for the type master rather than a read-only instance. Siemens documentation distinguishes the editable type from the instance, whose type-defined step logic is read-only. Also confirm that the selection is being inserted into the intended address box and is of a compatible type for that field.

The available source does not show the selected variable, which cell is active, the exact dialog state or software version. These checks narrow the issue but do not establish which one caused the original grey button.

Understand the three step phases

The step properties provide Initialization, Processing and Termination actions. Siemens documents these as the initial, normal and termination phases of step processing. When designing a sequence, place an assignment in the phase appropriate to the required behavior; do not treat the three tabs as interchangeable. Check the version-specific SFC manual for statement syntax and supported assignments.

Verification

After the interface and CFC interconnections are configured, confirm that the intended type I/Os appear in the step or transition expression and that data types and directions are compatible. Compile the SFC/type and the relevant CFC program and inspect compiler diagnostics. Then, under an approved test plan, verify that the instance receives its intended input and that outputs affect the intended CFC block I/Os. An enabled Apply button or successful compilation alone does not prove the sequence behaves correctly.

Limitations and Operational Precautions

The ticket does not specify PCS 7 release, SFC editor version, the exact selected variable or whether the type is write-protected. The interface-based explanation is supported by Siemens' SFC for SIMATIC S7 V9.0 SP8 documentation, but the precise UI behavior should be checked against the installed version's manual.

An SFC type can be instantiated and reused; edits to its interface and logic affect its instances. Review type and CFC changes before compilation or download. Sequence changes can affect plant operation; use the site's review, backup, test and change-control practices.

Engineer FAQ

Can an SFC type directly reference any CFC variable? Siemens' V9.0 SP8 manual says an SFC type uses its own interface I/Os for assignments and conditions. Expose the required signal through the type interface and connect the instance in CFC.

How do I make a CFC block value available to an SFC type? Add a suitable interface I/O or characteristic to the type, use that element in the type logic, and interconnect the SFC instance to the block I/O in CFC.

Why might Apply still be grey after selecting an item? The ticket lacks enough UI detail to identify the cause. Check type write protection, active address field, selection validity and compatibility using the manual for the installed release.

Can I edit the step logic on the SFC instance? The SFC type defines reusable logic. Siemens documents that type-defined step properties are read-only at the instance; edit the type master.

What confirms the sequence is ready to test? Compile the SFC/type and relevant CFC, resolve diagnostics, and verify the instance's interface wiring and sequence behavior using an approved test plan.

Technical References

  • Siemens, SFC for SIMATIC S7 V9.0 SP8, Programming and Operating Manual, 06/2023, A5E41356228-AH. See Sections 8.5.2–8.5.3 (pp. 76–78) on SFC type interfaces and instance effects, Section 12.4.2.1–12.4.2.4 (pp. 132–137) on step properties and address selection.
  • Siemens, Process Control System PCS 7 Getting Started, A5E00122408-01. See “Working with the SFC Editor,” pp. 5-7–5-8, for an example assigning a browsed address and applying step edits; it is an older example and is not used to infer behavior for unspecified versions.

Related Articles

Search IndustrialAutomation.net for PCS 7 SFC type configuration

Related Tags

PCS 7 SFC · SFC type interface · CFC interconnection

20 respuestas