0760-22278043
Sharing of PLC general function control program block

Sharing of PLC general function control program blocks

In automation projects, we often need to handle basic control tasks such as analog quantity, digital quantity, PID regulation, axis control, and motor start-stop. If we had to write these functional blocks from scratch for every project, it would not only be inefficient but also difficult to ensure code quality and standardization. The LBC (Library of Basic Controls) officially launched by Siemens is precisely designed to address this issue.
LBC is a global library based on TIA Portal, encompassing a range of standardized PLC function blocks, data types, HMI panels, and ProDiag monitoring settings. It strictly adheres to Siemens programming style guidelines and PLCopen specifications, aiming to assist engineers in rapidly constructing reliable and reusable automation programs.
Analog signal processing
LBC_AnalogInput / LBC_AnalogOutput / LBC_AnalogScale: Analog input and output scaling, unit conversion, and support for limit monitoring and alarming.
PID control
LBC_PIDControl (based on CONT_C) and LBC_PIDCompactControl (based on PID_Compact, applicable to S7-1200 G2 and later versions) offer various controller structures such as P, PI, PD, and PID, supporting manual/automatic switching, integral freezing, and external disturbance input.
Motion Control
LBC_AxisControl_StdPlc / LBC_AxisControl_TecPlc: A powerful axis control block that supports various modes such as point positioning, speed control, and synchronous axes, including functions like jogging, homing, relative/absolute positioning, gear synchronization, and camming.
LBC_Axis16Pos_StdPlc / LBC_Axis16Pos_TecPlc: Supports point control for 16 preset positions, suitable for multi-station applications.
LBC_AxisCtrlBasic: A lightweight axis control block specifically designed for the S7-1200 G2, enabling basic motion control.
LBC_SinaPos / LBC_SinaSpeed: Communicate with SINAMICS drives through standard messages to achieve positioning or speed control.
motor starter
LBC_MotorStarter: Controls the forward and reverse rotation of a single-speed motor, with feedback monitoring and time configuration.
LBC_StarDeltaStarter: A star-delta starter that supports two directions, with configurable start time, feedback monitoring, and restart delay.
executor control
LBC_TwoWayActuator / LBC_ThreeWayActuator: Controls two-position or three-position actuators (such as valves, cylinders), with position feedback monitoring, configurable continuous output or pulse output.
Counter and digital signal
LBC_Counter: An up-down counter that can be set with initial value, step size, upper and lower limits, and overflow behavior.
LBC_DigitalSignal: Digital input processing, featuring on/off delay, signal inversion, and simulation functions.
filter
LBC_PT1Filter: A first-order low-pass filter used for signal smoothing or process simulation.
safety-related
LBC_TwoHandControl: A two-hand control module that monitors and ensures that two buttons are pressed simultaneously within a specified time frame before outputting. It is commonly used in safety-critical applications.
other
LBC_TMPulseDrive: Used for controlling DC motors with the ET200SP TM Pulse module.
LBC_ControlNode_General: Control node encapsulation, facilitating unified management of commands and monitoring by upper-level programs.