feat: OpenPLC v4 tank simulation demo with OPC-UA#48
Closed
mfaferek93 wants to merge 1 commit intomainfrom
Closed
Conversation
Working Docker container with OpenPLC v4 runtime running an IEC 61131-3 Structured Text tank simulation with OPC-UA server. Verified end-to-end: - PLC compiles tank_demo.st (matiec -> C -> .so) at container startup - PLC runtime executes simulation (100ms cycle) - OPC-UA server exposes 5 variables (TankLevel, TankTemperature, TankPressure, PumpSpeed, ValvePosition) - Read values via OPC-UA client: TankLevel=500, Temp rises from 25C - Write PumpSpeed=50 via OPC-UA: TankLevel increases to 1000 (pump fills) - Anonymous read/write permissions for demo use Components: - tank_demo.st: IEC 61131-3 program with LOCATED vars (AT %MD/MX) - glueVars_tank.c: OpenPLC runtime glue with all required symbols - opcua_config.json: OPC-UA address space with 5 REAL variables - Dockerfile: multi-stage (matiec builder + OpenPLC runtime) Note: gateway/ Dockerfile and docker-compose.yml reference OPC-UA plugin which is not yet integrated. OpenPLC + OPC-UA standalone works.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Docker-based OpenPLC v4 tank simulation with OPC-UA server for PLC diagnostics demo.
What works (verified)
Tank variables (OPC-UA)
Not yet integrated