dmz社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

Plc247: Tia Portal V16

Network 1: Start latch
    I0.0 (Start)     Q0.0 (Motor)
    |--| |-----------( )--|
    |      Q0.0 (Hold)   |
    |--| |---------------|
Network 2: Stop override
    I0.1 (Stop)     Q0.0
    |--|/|-----------(R)--|

Let’s assume you are following a typical PLC247 tutorial: "Controlling a Conveyor Belt using an S7-1214C with HMI."

PLC247 encourages modern programming practices. Here is a simple motor control logic in SCL:

// Network 1: Motor start/stop with latch
IF "Start_PB" AND NOT "Stop_PB" THEN
    "Motor" := TRUE;
ELSIF "Stop_PB" OR "Overload_Fault" THEN
    "Motor" := FALSE;
END_IF;

// Network 2: Run light indicator "Run_Light" := "Motor"; tia portal v16 plc247

Based on frequent forum discussions on PLC247, here are solutions to common V16 problems: Network 1: Start latch I0

| Problem | Solution | |---------|----------| | "Inconsistent project data" error | Right-click project → Consistency Check → Rebuild all. | | PLCSIM cannot find the online CPU | Ensure PLCSIM Advanced is started before going online. In V16, use "Siemens PLCSIM Virtual Ethernet Adapter." | | HMI simulation shows blank screens | Check tag connection settings: HMI runtime must use the same "Connection" path as the PLC simulation. | | Firmware mismatch (e.g., V4.6 detected) | Use "Change device" option to update CPU firmware version in project tree, or upgrade to TIA Portal V17/V18. |


FUNCTION_BLOCK FB_PID_Control  
VAR_INPUT  
    Setpoint : Real;  
    ProcessValue : Real;  
END_VAR  
VAR_OUTPUT  
    OutputValue : Real;  
END_VAR  
VAR  
    Error : Real;  
    Kp := 2.5;  
    Ki := 0.1;  
    IntegralSum : Real;  
END_VAR

Error := Setpoint - ProcessValue;
IntegralSum := IntegralSum + (Error * Ki);
OutputValue := (Kp * Error) + IntegralSum;
IF OutputValue > 100.0 THEN OutputValue := 100.0; END_IF;
IF OutputValue < 0.0 THEN OutputValue := 0.0; END_IF;
Let’s assume you are following a typical PLC247

Once your basic project works, it’s time to leverage TIA Portal V16’s advanced features.

TIA Portal V16 provides a robust environment for programming the PLC247 (S7-1200 compatible). Despite being a non-official device, with proper firmware matching (V4.4) and standard PROFINET configuration, the PLC247 can execute all essential automation tasks including motion control, HMI communication, and web server operation. Engineers should leverage TIA’s diagnostic tools to overcome any third-party hardware limitations.


QQ|Archiver|小黑屋|本站代理|dmz社区

GMT+8, 2025-12-14 18:51 , Processed in 0.101431 second(s), 11 queries , Redis On.

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表