All Neighborhoods

CODESYS Talk

    CODESYS Forge

  • YIN YIN posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    I hit this exact error a while back when I was reading device parameters from a script, and in my case the script itself wasn't the problem β€” it was the gateway side. read_online_value goes through the gateway configured for that device, so logging in to the application alone doesn't cover it. The device object still needs its own working gateway connection. First thing I'd check is DEV1 in the device tree, under Communication Settings. Make sure a gateway is actually selected there, that it points...

  • YIN YIN posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    That combination of errors is actually a useful clue. UaExpert works because it browses the server first and picks an endpoint the server really offers, while Fuxa and RapidSCADA seem to be asking for a specific security policy and mode combination that your server does not have, so the server just closes the channel. The RapidSCADA message says that pretty directly. What helped me in a similar setup was to open the server in UaExpert, look at the endpoint list it shows, and write down the exact...

  • YIN YIN posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    That random behaviour rings a bell, I ran into almost the same thing on a panel PC a while back and it drove me nuts for a day. Two separate things are going on here, I think. The PLC freeze is the easier one to explain: SysProcessExecuteCommand waits until the program you started exits. Shutdown works because it exits straight away, but osk.exe just sits there, so the call never returns and the task that called it stalls with it. That is also why TimvH's Task Scheduler idea is worth a try, the PLC...

  • YIN YIN posted a comment on discussion Engineering πŸ‡¬πŸ‡§

    Hi srinidhi, I went down a similar road a while back, not with a PBRT but with a small six-axis arm driven from a CODESYS controller, and in my case the motion itself turned out to be the easy part. What ate most of the time was sorting out who does what: trajectory planning, cell logic and the safety handshake, before writing a single line of motion code. One thing that helped me a lot was deciding early whether the robot should be planned from inside CODESYS or from outside it. If your PBRT setup...

  • YIN YIN posted a comment on discussion Runtime πŸ‡¬πŸ‡§

    Good news is you've already narrowed this down a lot without realising it. If the same Carel answers your laptop through a USB converter, then the controller, its address, the 19200/N/1 settings and the register map are all fine. The fault has to be between the PFC200's DB9 port and the wire, because that's the one part your laptop test never covered. That port is where I'd start. The serial interface on the PFC200 does both RS232 and RS485, so it's worth opening the manual and checking the RS485...