Learn PLCs free
Intermediate15 min readIndustrial Manufacturing

Unitronics Sequential Function Charts (SFC) for Motor Control

Learn Sequential Function Charts (SFC) programming for Motor Control using Unitronics VisiLogic / UniLogic. Includes code examples, best practices, and step-by-step implementation guide for Industrial Manufacturing applications.

💻
Platform
VisiLogic / UniLogic
📊
Complexity
Beginner to Intermediate
⏱️
Project Duration
1-3 weeks

Implementing Sequential Function Charts (SFC) for Motor Control using Unitronics VisiLogic / UniLogic requires translating a control narrative into code, tests, and commissioning checks. This hands-on guide focuses on practical implementation steps, an illustrative code example, and decisions that should be recorded during design review.

The guide uses VisiLogic / UniLogic terminology and Sequential Function Charts (SFC) because batch processes, step-by-step operations, state machines, and complex sequential control. Confirm language support for the selected controller and software release, then map the example's 5 sensor inputs and 5 actuator outputs to the project's reviewed I/O list.

Real Motor Control projects in Industrial Manufacturing face practical challenges including soft start implementation, overload protection, and integration with existing systems. Success requires balancing perfect for sequential processes against limited to sequential operations, while meeting 1-3 weeks project timelines typical for Motor Control implementations.

This guide provides step-by-step implementation guidance, an illustrative example, practical design patterns, and troubleshooting scenarios. Compile and test the adapted logic in an isolated environment, verify fail-safe behavior with the responsible controls and safety reviewers, and complete site acceptance checks before production use.

Unitronics VisiLogic / UniLogic for Motor Control

VisiLogic / UniLogic is a programming environment associated with Unitronics controller families such as Jazz 2, Samba 7", Vision V350. This guide uses Sequential Function Charts (SFC) terminology from the supplied guide dataset, but controller capabilities and language support can change by model, firmware, software edition, and license.

Verify Before You Start:

  • The selected controller supports the required Sequential Function Charts (SFC) constructs

  • The project version matches the installed VisiLogic / UniLogic release

  • Required communications, motion, safety, and simulation options are licensed

  • Firmware and device-description files are compatible with the project

  • The vendor manuals used for the design match the exact hardware revision


Application Planning:

For a Motor Control exercise, map the required inputs and outputs before writing logic. The example considers 5 sensor types, including Current sensors, Vibration sensors, Temperature sensors, and 5 actuator types.

Control Equipment for Motor Control:

  • Motor control centers (MCCs)

  • AC induction motors (NEMA/IEC frame)

  • Synchronous motors for high efficiency

  • DC motors for precise speed control


Controller-family references used in this guide include:

  • Jazz 2: Confirm CPU, I/O, memory, communications, and Sequential Function Charts (SFC) support in the current selection guide

  • Samba 7": Confirm CPU, I/O, memory, communications, and Sequential Function Charts (SFC) support in the current selection guide

  • Vision V350: Confirm CPU, I/O, memory, communications, and Sequential Function Charts (SFC) support in the current selection guide

  • Vision V570: Confirm CPU, I/O, memory, communications, and Sequential Function Charts (SFC) support in the current selection guide


Hardware Selection Checklist:

  • Count local and remote I/O, including planned expansion

  • Measure the required task and communications update rates

  • Identify memory, data-retention, diagnostics, and cybersecurity requirements

  • Treat safety functions as a separate, standards-led design activity

  • Confirm lifecycle status, regional availability, licensing, and support


Source and Validation Note:

This page does not represent a vendor certification or a hardware acceptance test. Use current Unitronics manuals, release notes, and safety documentation as the authority for product-specific behavior. Validate adapted logic in a simulator or isolated test setup before connecting it to equipment.

Investment Considerations:

For Motor Control projects, compare hardware, software licensing, training, engineering, test equipment, commissioning, spares, and ongoing support. Obtain current pricing and lifecycle information directly from the vendor or an authorized regional supplier.

Understanding Sequential Function Charts (SFC) for Motor Control

Sequential Function Chart (SFC) is a graphical language for programming sequential processes. It models systems as a series of steps connected by transitions, ideal for batch processes and machine sequences.

Execution Model:

Only active steps execute their actions. Transitions define conditions for moving between steps. Multiple steps can be active simultaneously in parallel branches.

Core Advantages for Motor Control:

  • Perfect for sequential processes: Critical for Motor Control when handling beginner to intermediate control logic

  • Clear visualization of process flow: Critical for Motor Control when handling beginner to intermediate control logic

  • Easy to understand process steps: Critical for Motor Control when handling beginner to intermediate control logic

  • Good for batch operations: Critical for Motor Control when handling beginner to intermediate control logic

  • Simplifies complex sequences: Critical for Motor Control when handling beginner to intermediate control logic


Why Sequential Function Charts (SFC) Fits Motor Control:

Motor Control systems in Industrial Manufacturing typically involve:

  • Sensors: Current transformers for motor current monitoring, RTD or thermocouple for motor winding temperature, Vibration sensors for bearing monitoring

  • Actuators: Contactors for direct-on-line starting, Soft starters for reduced voltage starting, Variable frequency drives for speed control

  • Complexity: Beginner to Intermediate with challenges including Managing starting current within supply limits


Programming Fundamentals in Sequential Function Charts (SFC):

Steps:
- initialStep: Double-bordered box - starting point of sequence, active on program start
- normalStep: Single-bordered box - becomes active when preceding transition fires
- actions: Associated code that executes while step is active

Transitions:
- condition: Boolean expression that must be TRUE to advance
- firing: Transition fires when preceding step is active AND condition is TRUE
- priority: In selective branches, transitions are evaluated in defined order

ActionQualifiers:
- N: Non-stored - executes while step is active
- S: Set - sets output TRUE on step entry, remains TRUE
- R: Reset - sets output FALSE on step entry

Best Practices for Sequential Function Charts (SFC):

  • Start with a clear process flow diagram before implementing SFC

  • Use descriptive step names indicating what happens (e.g., Filling, Heating)

  • Keep transition conditions simple - complex logic goes in action code

  • Implement timeout transitions to prevent stuck sequences

  • Always provide a path back to initial step for reset/restart


Common Mistakes to Avoid:

  • Forgetting to include stop/abort transitions for emergency handling

  • Creating deadlocks where no transition can fire

  • Not handling the case where transition conditions never become TRUE

  • Using S (Set) actions without corresponding R (Reset) actions


Typical Applications:

1. Bottle filling: Directly applicable to Motor Control
2. Assembly sequences: Related control patterns
3. Material handling: Related control patterns
4. Batch mixing: Related control patterns

Understanding these fundamentals prepares you to implement effective Sequential Function Charts (SFC) solutions for Motor Control using Unitronics VisiLogic / UniLogic.

Implementing Motor Control with Sequential Function Charts (SFC)

Motor control systems use PLCs to start, stop, and regulate electric motors in industrial applications. These systems provide protection, speed control, and coordination for motors ranging from fractional horsepower to thousands of horsepower.

This walkthrough demonstrates practical implementation using Unitronics VisiLogic / UniLogic and Sequential Function Charts (SFC) programming.

System Requirements:

A typical Motor Control implementation includes:

Input Devices (Sensors):
1. Current transformers for motor current monitoring: Critical for monitoring system state
2. RTD or thermocouple for motor winding temperature: Critical for monitoring system state
3. Vibration sensors for bearing monitoring: Critical for monitoring system state
4. Speed encoders or tachometers: Critical for monitoring system state
5. Torque sensors for load monitoring: Critical for monitoring system state

Output Devices (Actuators):
1. Contactors for direct-on-line starting: Primary control output
2. Soft starters for reduced voltage starting: Supporting control function
3. Variable frequency drives for speed control: Supporting control function
4. Brakes (mechanical or dynamic): Supporting control function
5. Starters (star-delta, autotransformer): Supporting control function

Control Equipment:

  • Motor control centers (MCCs)

  • AC induction motors (NEMA/IEC frame)

  • Synchronous motors for high efficiency

  • DC motors for precise speed control


Control Strategies for Motor Control:

1. Primary Control: Industrial motor control using PLCs for start/stop, speed control, and protection of electric motors.
2. Safety Interlocks: Preventing Soft start implementation
3. Error Recovery: Handling Overload protection

Implementation Steps:

Step 1: Calculate motor starting current and verify supply capacity

In VisiLogic / UniLogic, calculate motor starting current and verify supply capacity.

Step 2: Select starting method based on motor size and load requirements

In VisiLogic / UniLogic, select starting method based on motor size and load requirements.

Step 3: Configure motor protection with correct thermal curve

In VisiLogic / UniLogic, configure motor protection with correct thermal curve.

Step 4: Implement control logic for start/stop with proper interlocks

In VisiLogic / UniLogic, implement control logic for start/stop with proper interlocks.

Step 5: Add speed control loop if VFD is used

In VisiLogic / UniLogic, add speed control loop if vfd is used.

Step 6: Configure acceleration and deceleration ramps

In VisiLogic / UniLogic, configure acceleration and deceleration ramps.


Unitronics Function Design:

Function block design in Unitronics uses user-defined FBs in UniLogic (more limited in VisiLogic). Extensive vendor-provided helper FBs cover common tasks (PID, motion, communication, HMI utilities). OEM machine builders typically maintain private FB libraries for their common machine patterns, though code reuse is less mature than in mainstream PLC ecosystems.

Common Challenges and Solutions:

1. Managing starting current within supply limits

  • Solution: Sequential Function Charts (SFC) addresses this through Perfect for sequential processes.


2. Coordinating acceleration with driven load requirements

  • Solution: Sequential Function Charts (SFC) addresses this through Clear visualization of process flow.


3. Protecting motors from frequent starting (thermal cycling)

  • Solution: Sequential Function Charts (SFC) addresses this through Easy to understand process steps.


4. Handling regenerative energy during deceleration

  • Solution: Sequential Function Charts (SFC) addresses this through Good for batch operations.


Safety Considerations:

  • Proper machine guarding for rotating equipment

  • Emergency stop functionality with safe torque off

  • Lockout/tagout provisions for maintenance

  • Arc flash protection and PPE requirements

  • Proper grounding and bonding


Performance Metrics:

  • Task and I/O timing: Record minimum, average, and maximum values under a defined test load

  • Accuracy: Define an acceptable tolerance and compare it with calibrated reference measurements

  • Throughput: Count completed cycles over a fixed interval and record rejected or incomplete cycles

  • Fault response: Measure detection, safe-state, alarm, and recovery behavior for each test case

  • Resource use: Record memory, communications load, and diagnostic-buffer behavior

Unitronics Diagnostic Tools:

UniLogic (current) and VisiLogic (legacy) integrated debuggers with breakpoints,Built-in simulator covering PLC logic, HMI screens, alarms, recipes, and data tables,Web visualisation for UniStream — remote HMI viewing without additional software,SD card logging with PC-side export tools for offline trend analysis,Modbus RTU/TCP transaction logging built into the IDE,Controller status monitor — CPU load, scan time, memory usage,HMI event logger capturing operator actions for audit purposes,CAN bus diagnostic tools for CANopen-equipped models,Remote support tool — Unitronics' own screen-sharing for technical support,User community forum with active troubleshooting discussions

Use the monitoring and diagnostic functions available in your VisiLogic / UniLogic version, and record the software, firmware, hardware, workload, and test procedure with every result.

Unitronics Sequential Function Charts (SFC) Example for Motor Control

Illustrative Sequential Function Charts (SFC) example for Motor Control using Unitronics terminology. Adapt the syntax to your VisiLogic / UniLogic release, compile it, and verify it in an isolated test environment before use on equipment.

// Unitronics VisiLogic / UniLogic - Motor Control Control
// Sequential Function Charts (SFC) Implementation for Industrial Manufacturing
// Unitronics projects use IDE-managed tag names rather than ra

// ============================================
// Variable Declarations
// ============================================
VAR
    bEnable : BOOL := FALSE;
    bEmergencyStop : BOOL := FALSE;
    rCurrentsensors : REAL;
    rMotorstarters : REAL;
END_VAR

// ============================================
// Input Conditioning - Current transformers for motor current monitoring
// ============================================
// Standard input processing
IF rCurrentsensors > 0.0 THEN
    bEnable := TRUE;
END_IF;

// ============================================
// Safety Interlock - Proper machine guarding for rotating equipment
// ============================================
IF bEmergencyStop THEN
    rMotorstarters := 0.0;
    bEnable := FALSE;
END_IF;

// ============================================
// Main Motor Control Control Logic
// ============================================
IF bEnable AND NOT bEmergencyStop THEN
    // Motor control systems use PLCs to start, stop, and regulate 
    rMotorstarters := rCurrentsensors * 1.0; (* Illustrative scaling only *)

    // Process monitoring
    // Add specific control logic here
ELSE
    rMotorstarters := 0.0;
END_IF;

Code Explanation:

  • 1.Sequential Function Charts (SFC) structure organized for a Motor Control training example
  • 2.Input conditioning handles Current transformers for motor current monitoring signals
  • 3.Safety interlock ensures Proper machine guarding for rotating equipment always takes priority
  • 4.Main control implements Motor control systems use PLCs to start,
  • 5.Adapt the scan-cycle assumptions to the selected Jazz 2 task configuration and verify them by measurement

Best Practices

  • Follow Unitronics naming conventions: Unitronics projects use IDE-managed tag names rather than raw memory addressing.
  • Unitronics function design: Function block design in Unitronics uses user-defined FBs in UniLogic (more limi
  • Data organization: Unitronics uses its own tag database concept rather than IEC-standard data block
  • Sequential Function Charts (SFC): Start with a clear process flow diagram before implementing SFC
  • Sequential Function Charts (SFC): Use descriptive step names indicating what happens (e.g., Filling, Heating)
  • Sequential Function Charts (SFC): Keep transition conditions simple - complex logic goes in action code
  • Motor Control: Verify motor running with current or speed feedback, not just contactor status
  • Motor Control: Implement minimum off time between starts for motor cooling
  • Motor Control: Add phase loss and phase reversal protection
  • Debug with VisiLogic / UniLogic: Use the built-in simulator to reproduce issues before hardware visit
  • Safety: Proper machine guarding for rotating equipment
  • Use a compatible simulator or isolated test rig to test Motor Control logic before deployment

Common Pitfalls to Avoid

  • Sequential Function Charts (SFC): Forgetting to include stop/abort transitions for emergency handling
  • Sequential Function Charts (SFC): Creating deadlocks where no transition can fire
  • Sequential Function Charts (SFC): Not handling the case where transition conditions never become TRUE
  • Unitronics common error: VisiLogic-to-UniLogic migration issues — not all projects convert cleanly
  • Motor Control: Managing starting current within supply limits
  • Motor Control: Coordinating acceleration with driven load requirements
  • Neglecting to validate Current transformers for motor current monitoring leads to control errors
  • Insufficient comments make Sequential Function Charts (SFC) programs unmaintainable over time

Related Certifications

🏆Unitronics Certified Integrator
🏆UniLogic Developer Training

Applying Sequential Function Charts (SFC) to Motor Control using Unitronics VisiLogic / UniLogic requires understanding the platform, the process, and the project's acceptance criteria. This guide has covered implementation structure, an illustrative code example, verification practices, and common pitfalls for a beginner to intermediate Motor Control exercise.

Use the practices outlined here to create a design that can be reviewed and tested. Define performance targets in the project requirements and confirm them with repeatable measurements.

Next Steps:

1. Check Sources: Read the current VisiLogic / UniLogic help, controller manual, release notes, and relevant standards
2. Practice Safely: Adapt the example in a simulator or isolated training setup
3. Review: Have the I/O map, state behavior, faults, and recovery steps reviewed
4. Test: Record normal, boundary, fault, restart, and communications test results

Sequential Function Charts (SFC) Foundation:

Sequential Function Chart (SFC) is a graphical language for programming sequential processes. It models systems as a series of steps connected by tran...

Project duration depends on scope, reviews, hardware availability, software and firmware versions, testing, commissioning, and site constraints. Remember: Verify motor running with current or speed feedback, not just contactor status

For further learning, explore related topics including Assembly sequences, Fan systems, and Unitronics platform-specific features for Motor Control optimization.