Talk

FORUM LATEST POST # TOPICS
Engineering 🇬🇧

Discussions about the CODESYS Development System, IEC programming, CODESYS Professional Developer Edition

SoftPLC (CODESYS Control x86 RTE V3 x64) OPC UA binds only to 127.0.0.1 ...
by YIN
3 hours ago
6079
Runtime 🇬🇧

Related questions to SoftPLCs e.g. Raspberry Pi, Beaglebone, IoT2000 and other platforms

Unresolved reference when trying to upload to Codesys Runtime V3
by YIN
2 days ago
2316
Visualization 🇬🇧

Realizing operator screens with CODESYS HMI, Targetvisu, Webvisu

Visualization Object missing from drop-down list...
by YIN
3 days ago
1073
Motion 🇬🇧

Realizing single or multi axis motion control, CAM, CNC and Robotic applications

CNC15_LargeGCode.project BC Axis Issue
by YIN
1 day ago
575
Codesys V2.3 🇬🇧

Forum about V2.3

Where Can I download the latest Version of CoDeSys V
by yueqiqi
2026-06-15
2245
Deutsch 🇩🇪

German forum

Ausführen von OPC-UA-Methodenaufrufen auf dem Server durch die SPS als C...
by YIN
1 day ago
4596
Automation Server 🇬🇧

The Industry 4.0 administration platform for users and operators of CODESYS compatible controllers

Gateway in China - "Gateway not connected"
by pernockham
2 days ago
81
Forge 🇬🇧

Discussions about CODESYS Forge projects and features of the CODESYS Forge website

WebVisu scaling regression in V3.5.22 P2: frame size jumps when switchin...
by YIN
3 days ago
232

Recent Activities

    CODESYS Forge

  • YIN YIN posted a comment on discussion Engineering 🇬🇧

    That localhost-works-but-LAN-doesn't pattern is a strong hint, and since you already tried with the firewall off I'd stop chasing the firewall for now. First thing I'd do is check what the server is actually listening on. On the Windows box run netstat -ano | findstr 4842 and look at the local address column — if it says 127.0.0.1:4842 and nothing on 0.0.0.0 or 192.168.0.XX, the OPC UA server simply isn't bound to the LAN interface, so UAExpert on another machine never gets a TCP connection and FindServers...

  • YIN YIN posted a comment on discussion Engineering 🇬🇧

    Your Wireshark capture is the part I'd trust most here. No RPC Bind, no Record Read or Write at all — the request never leaves the controller, so the SK205E, the GSDML and the parameter number are probably not the problem. Cyclic IO working at the same time fits that: the cyclic channel is up and the record channel never gets built, and the AR CMI timeout that keeps repeating in the diagnostics says the same thing. Before anything else, watch the controller's diagnostic log in the moment you pulse...

  • YIN YIN posted a comment on discussion Engineering 🇬🇧

    Yes, you are on the right track, and ADR(myArray) is the way I would do it too. I usually declare a small buffer just for this, something like an ARRAY[0..1] OF BYTE, put the alias in there low byte first, and then pass ADR() of that buffer as pbyData, with the length set to 2 rather than 2048. The 2048 you saw is just the size of the buffer the FB can work with, not what you have to write every time, and for the alias at 16#0012 you really only want those two bytes. One thing I learned the hard...

  • YIN YIN posted a comment on discussion Engineering 🇬🇧

    Hi, your guess about ppConnectorList is on the right track, at least in my experience. When the IDE runs a scan it calls IoDrvScanModules on your device FB, and that method is supposed to hand back one connector entry per module it finds, so the IDE can match each entry against the device descriptions in the repository and show them in the dialog. So the enumeration part really belongs in that method: ask the master for the attached modules over your socket, then build one entry per module. The breakpoints...

  • YIN YIN posted a comment on discussion Engineering 🇬🇧

    Hi Kmax, I ran into the same confusion the first time I tried this, so you are not missing something obvious. Function code 6 is not really a function block you create on its own, it is just the operation you pick inside the Modbus setup, and that is why searching the Library Manager for a block called ModbusTCP_FunctionCode06 does not get you anywhere. In your case the PQM_1000 is the slave and your PLC is the master, so I would do it through the device tree rather than hand-coding the frame. Add...

  • YIN YIN posted a comment on discussion Engineering 🇬🇧

    Your Oct 23 summary is pretty much what I ended up with on the same cards, especially the _User.cfg part. Editing CODESYSControl.cfg directly cost me a working setup once when it got overwritten, so that note alone is worth keeping around for the next person who finds this thread. One thing I would add is about TraceLevel=0xFFFFFFFF in your snippet. It was a lifesaver while I was chasing the hang, but I would not leave it on once the bus is running. With full tracing the log grows fast and the RTE...

  • YIN YIN posted a comment on discussion Engineering 🇬🇧

    Hi artem, welcome to ST — the jump from FBD and ladder takes a bit of getting used to, but what you're trying to do is very doable. The thing that tripped me up the first time too: SysTimeRtcGet isn't a function you just call and get a value back, it's a function block. So you need an instance of it in your VAR block, something like fbRtcGet : SysTimeRtc.SysTimeRtcGet; and then in the code you set fbRtcGet.xExecute := TRUE and call it every cycle until fbRtcGet.xDone comes back TRUE, and only then...

  • YIN YIN posted a comment on discussion Motion 🇬🇧

    That sounds familiar — I ran into something similar when I moved a working XY program over to a rotary pair, and the first thing that caught me out was that the BC axes don't behave like X and Y at all in the interpolator. With small G01 segments the problem is usually not the G-code itself but the way the short blocks are handed over. On XY the blocks are long enough for the path planner to keep the feed up, while on BC the same feed, plus the acceleration and jerk limits of the rotary axes, can...

  • YIN YIN posted a comment on discussion Engineering 🇬🇧

    Ran into this one a while back with a script that read device parameters, and in my case the message was a bit misleading — it wasn't really about the parameter itself, it was the gateway behind it. read_online_value goes through the gateway configured for that device, not through the application login you did just before it, so a successful login doesn't prove the gateway is usable. What I'd do first is step out of the script and check it by hand: open the device in the IDE, look at its communication...

  • YIN YIN posted a comment on discussion Deutsch 🇩🇪

    Hallo ironplc, kurz gesagt: Ja, das geht — aber nicht über die Symbolkonfiguration und auch nicht über den Communication Manager. Die beiden können nur Variablen lesen und schreiben, für Methodenaufrufe sind sie nicht gemacht. Dafür ist die OPC-UA-Client-Bibliothek zuständig, und sie kann das auch. Im Client gibt es einen eigenen Baustein für Methodenaufrufe (OPCUA_MethodCall), dem übergibt man die Verbindung, die NodeIds von Objekt und Methode und die Argumente als Varianten. Ich hab das mal für...