Learn PLCs free
Intermediate15 min readIndustrial Manufacturing

Inovance Function Blocks for Motor Control

Learn Function Blocks programming for Motor Control using Inovance InoProShop / AutoShop. Includes code examples, best practices, and step-by-step implementation guide for Industrial Manufacturing applications.

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

Implementing Function Blocks for Motor Control using Inovance InoProShop / AutoShop 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 InoProShop / AutoShop terminology and Function Blocks because process control, continuous operations, modular programming, and signal flow visualization. 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 visual representation of signal flow against can become cluttered with complex logic, 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.

Inovance InoProShop / AutoShop for Motor Control

InoProShop / AutoShop is a programming environment associated with Inovance controller families such as AM600, AM610, H5U. This guide uses Function Blocks 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 Function Blocks constructs

  • The project version matches the installed InoProShop / AutoShop 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:

  • AM600: Confirm CPU, I/O, memory, communications, and Function Blocks support in the current selection guide

  • AM610: Confirm CPU, I/O, memory, communications, and Function Blocks support in the current selection guide

  • H5U: Confirm CPU, I/O, memory, communications, and Function Blocks support in the current selection guide

  • AC800: Confirm CPU, I/O, memory, communications, and Function Blocks 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 Inovance 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 Function Blocks for Motor Control

Function Block Diagram (FBD) is a graphical programming language where functions and function blocks are represented as boxes connected by signal lines. Data flows from left to right through the network.

Execution Model:

Blocks execute based on data dependencies - a block executes only when all its inputs are available. Networks execute top to bottom when dependencies allow.

Core Advantages for Motor Control:

  • Visual representation of signal flow: Critical for Motor Control when handling beginner to intermediate control logic

  • Good for modular programming: Critical for Motor Control when handling beginner to intermediate control logic

  • Reusable components: Critical for Motor Control when handling beginner to intermediate control logic

  • Excellent for process control: Critical for Motor Control when handling beginner to intermediate control logic

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


Why Function Blocks 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 Function Blocks:

StandardBlocks:
- logic: AND, OR, XOR, NOT - Boolean logic operations
- comparison: EQ, NE, LT, GT, LE, GE - Compare values
- math: ADD, SUB, MUL, DIV, MOD - Arithmetic operations

TimersCounters:
- ton: Timer On-Delay - Output turns ON after preset time
- tof: Timer Off-Delay - Output turns OFF after preset time
- tp: Pulse Timer - Output pulses for preset time

Connections:
- wires: Connect output pins to input pins to pass data
- branches: One output can connect to multiple inputs
- feedback: Outputs can feed back to inputs for state machines

Best Practices for Function Blocks:

  • Arrange blocks for clear left-to-right data flow

  • Use consistent spacing and alignment for readability

  • Label all inputs and outputs with meaningful names

  • Create custom FBs for frequently repeated logic patterns

  • Minimize wire crossings by careful block placement


Common Mistakes to Avoid:

  • Creating feedback loops without proper initialization

  • Connecting incompatible data types

  • Not considering execution order dependencies

  • Overcrowding networks making them hard to read


Typical Applications:

1. HVAC control: Directly applicable to Motor Control
2. Temperature control: Related control patterns
3. Flow control: Related control patterns
4. Batch processing: Related control patterns

Understanding these fundamentals prepares you to implement effective Function Blocks solutions for Motor Control using Inovance InoProShop / AutoShop.

Implementing Motor Control with Function Blocks

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 Inovance InoProShop / AutoShop and Function Blocks 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 InoProShop / AutoShop, calculate motor starting current and verify supply capacity.

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

In InoProShop / AutoShop, select starting method based on motor size and load requirements.

Step 3: Configure motor protection with correct thermal curve

In InoProShop / AutoShop, configure motor protection with correct thermal curve.

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

In InoProShop / AutoShop, implement control logic for start/stop with proper interlocks.

Step 5: Add speed control loop if VFD is used

In InoProShop / AutoShop, add speed control loop if vfd is used.

Step 6: Configure acceleration and deceleration ramps

In InoProShop / AutoShop, configure acceleration and deceleration ramps.


Inovance Function Design:

InoProShop strongly favours function-block reuse via the Library Manager — Inovance ships standard libraries for motion, drives, HMI, OPC UA, and industry-specific applications (lithium-battery, EV, elevator). AutoShop reuse is open-coded via P-label subroutines. OEM machine-builders increasingly default to InoProShop / AM600 to access the FB libraries.

Common Challenges and Solutions:

1. Managing starting current within supply limits

  • Solution: Function Blocks addresses this through Visual representation of signal flow.


2. Coordinating acceleration with driven load requirements

  • Solution: Function Blocks addresses this through Good for modular programming.


3. Protecting motors from frequent starting (thermal cycling)

  • Solution: Function Blocks addresses this through Reusable components.


4. Handling regenerative energy during deceleration

  • Solution: Function Blocks addresses this through Excellent for process control.


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

Inovance Diagnostic Tools:

InoProShop online mode with full POU monitoring and breakpoint debug,EtherCAT diagnostics page with topology and slave status,Trace tool for analogue / motion signal capture,OPC UA server diagnostics page,Modbus communication trace utility,AutoShop online mode for legacy AC800 / Easy series,Inovance HMI integrated diagnostics for HMI-PLC binding faults,Servo-drive panel diagnostics with InoProShop drive-monitor view,EtherCAT slave-firmware update tool,Project compare tool for change tracking

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

Inovance Function Blocks Example for Motor Control

Illustrative Function Blocks example for Motor Control using Inovance terminology. Adapt the syntax to your InoProShop / AutoShop release, compile it, and verify it in an isolated test environment before use on equipment.

(* Inovance InoProShop / AutoShop - Motor Control Control *)
(* Reusable Function Blocks Implementation *)
(* InoProShop strongly favours function-block reuse via the Lib *)

FUNCTION_BLOCK FB_MOTOR_CONTROL_Controller

VAR_INPUT
    bEnable : BOOL;                  (* Enable control *)
    bReset : BOOL;                   (* Fault reset *)
    rProcessValue : REAL;            (* Current transformers for motor current monitoring *)
    rSetpoint : REAL := 100.0;  (* Illustrative value; replace with a reviewed requirement *)
    bEmergencyStop : BOOL;           (* Safety input *)
END_VAR

VAR_OUTPUT
    rControlOutput : REAL;           (* Contactors for direct-on-line starting *)
    bRunning : BOOL;                 (* Process active *)
    bComplete : BOOL;                (* Cycle complete *)
    bFault : BOOL;                   (* Fault status *)
    nFaultCode : INT;                (* Diagnostic code *)
END_VAR

VAR
    (* Internal Function Blocks *)
    fbSafety : FB_SafetyMonitor;     (* Safety logic *)
    fbRamp : FB_RampGenerator;       (* Soft start/stop *)
    fbPID : FB_PIDController;        (* Process control *)
    fbDiag : FB_Diagnostics;         (* InoProShop alarms are typically defined in the visualisation alarm-configuration page with severity, latching, and acknowledgement behaviour configured per alarm. The runtime maintains active and historical alarm lists. AutoShop projects fall back to M-flag banks with HMI-side alarm logging. *)

    (* Internal State *)
    eInternalState : E_ControlState;
    tonWatchdog : TON;
END_VAR

(* Safety Monitor - Proper machine guarding for rotating equipment *)
fbSafety(
    Enable := bEnable,
    EmergencyStop := bEmergencyStop,
    ProcessValue := rProcessValue,
    HighLimit := rSetpoint * 1.2,
    LowLimit := rSetpoint * 0.1
);

(* Main Control Logic *)
IF fbSafety.SafeToRun THEN
    (* Ramp Generator - Prevents startup surge *)
    fbRamp(
        Enable := bEnable,
        TargetValue := rSetpoint,
        RampRate := 20.0,  (* Illustrative value; tune and verify for the process *)
        CurrentValue => rSetpoint
    );

    (* PID Controller - Process regulation *)
    fbPID(
        Enable := fbRamp.InPosition,
        ProcessValue := rProcessValue,
        Setpoint := fbRamp.CurrentValue,
        Kp := 1.0,
        Ki := 0.1,
        Kd := 0.05,
        OutputMin := 0.0,
        OutputMax := 100.0
    );

    rControlOutput := fbPID.Output;
    bRunning := TRUE;
    bFault := FALSE;
    nFaultCode := 0;

ELSE
    (* Safe State - Emergency stop functionality with safe torque off *)
    rControlOutput := 0.0;
    bRunning := FALSE;
    bFault := NOT bEnable;  (* Only fault if not intentional stop *)
    nFaultCode := fbSafety.FaultCode;
END_IF;

(* Diagnostics - InoProShop on AM600 / H5U supports SD-card logging via library FBs, plus OPC UA streaming for cloud / on-premises historians. Inovance HMIs add CSV logging at HMI tier. AutoShop projects rely on HMI-tier logging exclusively. *)
fbDiag(
    ProcessRunning := bRunning,
    FaultActive := bFault,
    ProcessValue := rProcessValue,
    ControlOutput := rControlOutput
);

(* Watchdog - Detects frozen control *)
tonWatchdog(IN := bRunning AND NOT fbPID.OutputChanging, PT := T#10S);
IF tonWatchdog.Q THEN
    bFault := TRUE;
    nFaultCode := 99;  (* Watchdog fault *)
END_IF;

(* Reset Logic *)
IF bReset AND NOT bEmergencyStop THEN
    bFault := FALSE;
    nFaultCode := 0;
    fbDiag.ClearAlarms();
END_IF;

END_FUNCTION_BLOCK

Code Explanation:

  • 1.Encapsulated function block follows InoProShop strongly favours function-blo - reusable across Industrial Manufacturing projects
  • 2.FB_SafetyMonitor illustrates status checks and high/low limits; it is not a certified safety function
  • 3.FB_RampGenerator prevents startup issues common in Motor Control systems
  • 4.FB_PIDController tuned for Industrial Manufacturing: Kp=1.0, Ki=0.1
  • 5.Watchdog timer illustrates one way to flag an unchanged output for diagnosis
  • 6.Diagnostic function block enables InoProShop on AM600 / H5U supports SD-card logging via library FBs, plus OPC UA streaming for cloud / on-premises historians. Inovance HMIs add CSV logging at HMI tier. AutoShop projects rely on HMI-tier logging exclusively. and InoProShop alarms are typically defined in the visualisation alarm-configuration page with severity, latching, and acknowledgement behaviour configured per alarm. The runtime maintains active and historical alarm lists. AutoShop projects fall back to M-flag banks with HMI-side alarm logging.

Best Practices

  • Follow Inovance naming conventions: On InoProShop projects, conventions follow CODESYS / IEC norms — PascalCase for
  • Inovance function design: InoProShop strongly favours function-block reuse via the Library Manager — Inova
  • Data organization: InoProShop uses GVLs and persistent variables for shared data. AutoShop uses D /
  • Function Blocks: Arrange blocks for clear left-to-right data flow
  • Function Blocks: Use consistent spacing and alignment for readability
  • Function Blocks: Label all inputs and outputs with meaningful names
  • 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 InoProShop / AutoShop: Use InoProShop's online mode to set breakpoints in POUs and step throu
  • 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

  • Function Blocks: Creating feedback loops without proper initialization
  • Function Blocks: Connecting incompatible data types
  • Function Blocks: Not considering execution order dependencies
  • Inovance common error: EtherCAT slave order mismatch after physical re-cabling — slave addressing break
  • 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 Function Blocks programs unmaintainable over time

Related Certifications

🏆Inovance Certified Engineer
🏆InoProShop / AutoShop training certificates
🏆EV / Lithium Battery automation specialist tracks
🏆Advanced Inovance Programming Certification

Applying Function Blocks to Motor Control using Inovance InoProShop / AutoShop 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 InoProShop / AutoShop 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

Function Blocks Foundation:

Function Block Diagram (FBD) is a graphical programming language where functions and function blocks are represented as boxes connected by signal line...

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 Temperature control, Fan systems, and Inovance platform-specific features for Motor Control optimization.