blog Discussion
husarz17
blog
(Discussion)
Forum for blog comments
Last updated: 2026-03-31
wiki Discussion
erolca
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-03-31
blog Discussion
erolca
blog
(Discussion)
Forum for blog comments
Last updated: 2026-03-31
(no subject)
erolca
wiki
(Thread)
Last updated: 2026-03-31
Home
erolca
wiki
(WikiPage)
Project Members: erolca (admin)
Last updated: 2026-03-31
Post by husarz17 on How change Unity-ID in TCP Modbus Slave
CODESYS Forge
talk
(Post)
I need the same issue. In my application TCP server on raspberry (codesys) should have UnitID 1. But it only works when I am requesting with UnitID 255. And my application can't work with this parameters...
Last updated: 2026-03-31
wiki Discussion
husarz17
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-03-31
(no subject)
husarz17
wiki
(Thread)
Last updated: 2026-03-31
Home
husarz17
wiki
(WikiPage)
Project Members: husarz17 (admin)
Last updated: 2026-03-31
Post by max1987martin on USB Communication for IP Configuration & Application Update – STM32H Series PLC
CODESYS Forge
talk
(Post)
CODESYS does NOT natively support USB for program download on custom STM32 runtimes. Best Approach Use USB CDC (Virtual COM Port) STM32 appears as a COM port on PC Make a simple custom protocol Commands like: SET_IP, UPLOAD_APP, REBOOT Use a USB Bootloader (Recommended) PC tool sends application via USB Bootloader writes to flash Reboots into CODESYS runtime mcdvoice Result Change IP via USB Update application via USB No need to modify CODESYS internals Avoid Trying to directly download from CODESYS IDE over USB (complex + unsupported) If you want, I can give a minimal STM32 USB bootloader + protocol example.
Last updated: 2026-03-31
USB Communication for IP Configuration & Application Update – STM32H Series PLC
CODESYS Forge
talk
(Thread)
USB Communication for IP Configuration & Application Update – STM32H Series PLC
Last updated: 2026-03-31
wiki Discussion
woodenapple
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-03-31
blog Discussion
woodenapple
blog
(Discussion)
Forum for blog comments
Last updated: 2026-03-31
(no subject)
woodenapple
wiki
(Thread)
Last updated: 2026-03-31
Home
woodenapple
wiki
(WikiPage)
Project Members: woodenapple (admin)
Last updated: 2026-03-31
Post by nulltrace on How change Unity-ID in TCP Modbus Slave
CODESYS Forge
talk
(Post)
Please explain how you configured that. Normaly, the Server should answer to all UID as long as gateway isn't activated. With activated gateway all UID will be forwarded to Serial-Interface, in taht case 255 has to be used for Gateway-Diagnostics. So that means, there is somethink wrong on your configuration. Which CDS-Version, Which Runtime-Version and so on are used.
Last updated: 2026-04-01
wiki Discussion
nulltrace
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-04-01
(no subject)
nulltrace
wiki
(Thread)
Last updated: 2026-04-01
Home
nulltrace
wiki
(WikiPage)
Project Members: nulltrace (admin)
Last updated: 2026-04-01
Post by husarz17 on How change Unity-ID in TCP Modbus Slave
CODESYS Forge
talk
(Post)
My codesys is 3.5.21.30. I am using function ModbusServer from library ModbusTCP_Slave. The reason is that I need share 9000 Holding registers. By standard configuration it is only 4096. fbMbTcpDevice: ModbusTCP_Slave.ModbusServer; fbMbTcpDevice( wPort := 502, pInputData := ADR(awInputReg), pOutputData := ADR(awHoldingReg), uiInputDataSize := 10, uiOutputDataSize := 9000, xEnable := TRUE, tTimeout := 10000, InterfaceName := "eth0", xBusy => xBusy, xError => xError, byClientConnections => byConnections ); Ethernet port is cofigured: Network interface: eth0 IP address: 10.10.22.55 Subnet maskL 255.255.255.0 Default gateway: 0.0.0.0 And it only works when I am reading registers with ID 255 by Modbus Poll. Any other IDs don't work. The actual TCP client device try to read registers with ID 1 and I can't change it... Thanks in advance for your help!
Last updated: 2026-04-01
Home
aradhya
wiki
(WikiPage)
Project Members: aradhya (admin)
Last updated: 2026-04-01
wiki Discussion
gkulkarni
wiki
(Discussion)
Forum for wiki comments
Last updated: 2026-04-02
blog Discussion
gkulkarni
blog
(Discussion)
Forum for blog comments
Last updated: 2026-04-02
(no subject)
gkulkarni
wiki
(Thread)
Last updated: 2026-04-02
Home
gkulkarni
wiki
(WikiPage)
Project Members: gkulkarni (admin)
Last updated: 2026-04-02