/automatizacion-industrial:siemens-tia-portalfrom Automatización industrial y robótica
Develop TIA Portal SCL and Openness automation, and inspect SIMATIC communications in an authorized test environment.
Ships in Automatización industrial y robótica. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Siemens Totally Integrated Automation (TIA) Portal is the industry standard engineering framework for programming SIMATIC S7-1200, S7-1500, and ET 200SP programmable logic controllers, configuring SINAMICS variable frequency drives, and designing WinCC Unified HMI/SCADA interfaces. TIA Portal supports Structured Control Language (SCL), Ladder (LAD), Function Block (FBD), and Graph (SFC). The platform exposes the TIA Portal Openness .NET API (Siemens.Engineering.dll) for headless project engineering, communicates with controllers via the S7comm / S7comm-plus protocol (TCP port 102), and provides software-in-the-loop virtual commissioning via PLCSIM Advanced. Claude operates as a Principal Industrial Automation Architect and Siemens Controls Systems Specialist, specializing in SCL state machine development, TIA Openness C#/Python CI/CD pipelines, Snap7 direct memory access, and PROFINET topology diagnostics.
┌─────────────────────────────────────────────────────────────┐
│ TIA Portal System Architecture │
│ │
│ Engineering & Openness API Layer │
│ ├── TIA Portal V18/V19 IDE (Project View & Portal View) │
│ ├── TIA Openness API (.NET Framework `Siemens.Engineering`)│
│ └── WinCC Unified (HTML5 Web Engine & JavaScript Runtime) │
│ │
│ SIMATIC Execution & Hardware Core │
│ ├── S7-1200 / S7-1500 Multi-Tasking Execution Engine │
│ ├── Cyclic OB1 Organization Blocks, Cyclic Interrupt OB30 │
│ └── Data Blocks (Standard DB vs Optimized Block Access) │
│ │
│ Industrial Communications & S7 Subsystem │
│ ├── S7comm / S7comm-plus Industrial Protocol (TCP Port 102)│
│ ├── PROFINET IO Real-Time (RT / IRT Isochronous Real-Time) │
│ └── Direct Socket & Snap7 Industrial Communication Engine │
└─────────────────────────────────────────────────────────────┘
python-snap7): Author Python scripts connecting directly to SIMATIC S7-1200/S7-1500 processors over TCP port 102 to read/write DB blocks, Merker memory (M), and digital inputs/outputs (I/Q).Siemens.Engineering.dll to import SCL sources, compile hardware/software, and generate .ap19 project archives.TON), PID controllers (PID_Compact), and sequence step controllers.python-snap7)Save this script as s7_plc_client.py (requires pip install python-snap7):
"""
Siemens SIMATIC S7-1200 / S7-1500 PLC Communication Client (Snap7)
Connects to S7 PLC over TCP port 102, reads Data Block (DB1) variables, and writes setpoints.
"""
import sys
import struct
import snap7
from snap7.util import get_bool, set_bool, get_real, set_real, get_int, set_int
PLC_IP = "192.168.0.1"
RACK = 0
SLOT = 1 # Slot 1 for S7-1200/S7-1500; Slot 2 for S7-300/S7-400
def monitor_s7_plc():
print(f"--- [CONNECTING TO SIEMENS S7 PLC: {PLC_IP} (Rack: {RACK}, Slot: {SLOT})] ---")
client = snap7.client.Client()
try:
client.connect(PLC_IP, RACK, SLOT)
if client.get_connected():
print("✅ Successfully connected to SIMATIC S7 CPU via S7comm (Port 102)!")
# 1. Read Data Block 1 (DB1) - Read 16 bytes starting at Offset 0
# DB Layout:
# Offset 0.0: bMotorRunning (Bool)
# Offset 2.0: rSpeedActual (Real / Float32)
# Offset 6.0: iPieceCount (Int16)
db_number = 1
data = client.db_read(db_number, 0, 16)
is_running = get_bool(data, 0, 0)
actual_speed = get_real(data, 2)
piece_count = get_int(data, 6)
print(f"\n--- [DB{db_number} LIVE MONITORING] ---")
print(f"• Motor Running: {is_running}")
print(f"• Actual Speed: {actual_speed:.2f} RPM")
print(f"• Piece Count: {piece_count} units")
# 2. Write Setpoint Tag: DB1.DBD8 (rTargetSpeed = 1500.0 RPM)
print("\nWriting Target Speed Setpoint (1500.0 RPM) to DB1.DBD8...")
write_buffer = bytearray(4)
set_real(write_buffer, 0, 1500.0)
client.db_write(db_number, 8, write_buffer)
print("✅ Setpoint successfully written to PLC memory.")
client.disconnect()
else:
print("🚨 Failed to connect to S7 PLC.")
except Exception as e:
print(f"🚨 S7 Communication Error: {e}")
print("Note for S7-1200/1500: Ensure 'Permit access with PUT/GET' is enabled in CPU Properties -> Protection, and DB is set to Non-Optimized (Standard).")
if __name__ == "__main__":
monitor_s7_plc()
| Issue & Failure Signature | Root Cause Analysis | Diagnostic & Resolution Pathway |
|---|---|---|
Snap7 Error: CLI: function refused by CPU | S7-1500 CPU security settings block external PUT/GET communication, or target DB has "Optimized block access" enabled. | 1. In TIA Portal $\rightarrow$ CPU Properties $\rightarrow$ Protection & Security, check Permit access with PUT/GET communication from remote partner. 2. In DB Properties $\rightarrow$ Attributes, uncheck Optimized block access $\rightarrow$ Re-compile and download DB. |
| "Cannot establish online connection: PG/PC Interface" | Engineering station IP address is not in the same subnet as the S7 CPU or incorrect network interface selected. | In Online $\rightarrow$ Accessible devices, select your active Ethernet adapter $\rightarrow$ Click Start search to identify CPU IP and assign matching static IP to the PC. |
SCL Compilation Error: Ambiguous reference | Duplicate Function Block (FB) or Data Type (UDT) definitions exist across Project Library and Global Library. | In Project Tree $\rightarrow$ Libraries tab, resolve duplicate versions using the Update project components wizard. |
TIA Openness Throws SecurityException | Windows user account is not a member of the local Siemens TIA Openness user group. | Open Windows Computer Management $\rightarrow$ Local Users and Groups $\rightarrow$ Groups, add current user to Siemens TIA Openness, then log out and log back in. |
# 1. Launch TIA Portal V19 via Command Line
"C:\Program Files\Siemens\Automation\Portal V19\Bin\Siemens.Automation.Portal.exe"
# 2. Query S7comm Port 102 Connectivity
python3 -c "import socket; s = socket.socket(); s.connect(('192.168.0.1', 102)); print('S7 Port 102 Open!'); s.close()"
C:\Program Files\Siemens\Automation\Portal V19\PublicAPI\V19\Siemens.Engineering.dll*.ap18, *.ap19MANDATORY: For direct S7comm communication with S7-1200 and S7-1500 PLCs, always verify that "Permit access with PUT/GET" is enabled in CPU Security settings and target Data Blocks are configured with Standard (Non-Optimized) block access.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub lagzgabrielmuller-dot/kit-ingenieria-3d --plugin automatizacion-industrial15 skills in this plugin
/codesysDevelop CODESYS Structured Text and Python ScriptEngine workflows; troubleshoot fieldbus and OPC UA integration in a test environment./docker-ros2-developmentBest practices for Docker-based ROS2 development including multi-stage Dockerfiles, docker-compose for multi-container robotic systems, DDS discovery across containers, GPU passthrough for perception, and dev-vs-deploy container patterns. Use this skill when containerizing ROS2 workspaces, setting up docker-compose for robot software stacks, debugging DDS communication between containers, configuring NVIDIA Container Toolkit for GPU workloads, forwarding X11/Wayland for rviz2 and GUI tools, or managing USB device passthrough for cameras and serial devices. Trigger whenever the user mentions Docker with ROS2, docker-compose for robots, Dockerfile for colcon workspaces, container networking for DDS, devcontainer for ROS2, multi-stage builds for ROS2, or deploying ROS2 in containers. Also trigger for CI/CD with Docker-based ROS2 builds, CycloneDDS or FastDDS configuration in containers, or shared memory in Docker. Covers Humble, Jazzy, and Rolling distributions across Ubuntu 22.04 and 24.04 base images.
/labviewAutomate LabVIEW dataflow and build workflows, integrate NI-DAQmx or VISA instruments, and diagnose hardware communication./opencvBuild OpenCV image and video processing workflows with transforms, contours, capture, and classical vision operations./robot-bringupBringing up a complete ROS2 system on a robot's onboard computer: systemd services, launch file composition, ordered startup, and production monitoring. Use this skill when configuring a robot to start ROS2 nodes on boot, writing systemd unit files for ROS2 launch, composing layered launch files for full robot stacks, setting up watchdog monitoring, configuring udev rules for deterministic device naming, or debugging boot-time race conditions. Trigger whenever the user mentions robot bringup, robot startup, systemd for ROS2, ROS2 on boot, launch file composition, robot boot sequence, udev rules for cameras or serial ports, automatic restart for ROS2 nodes, network configuration for multi-machine ROS2, log rotation for robots, graceful shutdown of robot stacks, or SSH-based remote debugging. Also trigger for sourcing workspaces in systemd, ordered startup with health checks, or running ROS2 systems as long-running production services. Covers systemd on Ubuntu 22.04/24.04 with ROS2 Humble, Iron, and Jazzy.
/robotics-design-patternsArchitecture patterns, design principles, and proven recipes for building robust robotics software. Use this skill when designing robot software architectures, choosing between behavioral frameworks, structuring perception-planning-control pipelines, implementing state machines, designing safety systems, or architecting multi-robot systems. Trigger whenever the user mentions behavior trees, finite state machines, subsumption architecture, sensor fusion, robot safety, watchdogs, heartbeats, graceful degradation, hardware abstraction layers, real-time constraints, or software architecture for robots. Also applies to sim-to-real transfer, digital twins, and robot fleet management.
2 plugins ship this exact skill · first indexed Sep 11, 2026