Post by eoahe on Problem Reading Registers via Modbus from non Codesys device
CODESYS Forge
talk
(Post)
Hey Guys :) I have the following Problem using Modbus via Codesys: I'm trying to implement a Modbus Device into my codesys project. The device is a Router from Teltonika (RUT956) and it can communicate via Modbus. Currently I'm trying to implement it into my codesys prject as a slave and I'm using my windows computer as master. As it is not a codesys device (the codesys application is not uploaded to device as it has its own software) I'm having problems requesting and reading registers from the router. I've set up my windows computer as Master and implemented the router as slave. When I go online on my master device it sais that it has established a connection to the slave (router)(So I'm thinking this could work as there is a connection?). The goal is to read the GPS (latitude and longitude) data and on the homepage of teltonika you can find the register address and number of registers (adress 143 for latitude and 145 for longitude; both have a number of two registers). I've found tutorials how to read specific registers via their register address with other modbus programs (like modbus-cli), but as my entire project is established in codesys I was hoping to read these specific registers via codesys so that I can show the GPS data on my dashboard. I've tried establishing slave channels but that hasn't been working. I tried read input register channels of the length 4 but it's not possible to define specific register addresses to read via codesys so that didn't work (I jsut get a slaves device failure) and I've also tried establishing 516 (total number of registers the router sends I think?) read inputregister channels but that has the samle failure... So i guess the problem I'm having is establishing slave channels to read these specific registers. Does anyone know how to tackle this problem and has maybe had the same problem? Or maybe someone knows a workaround? I'm quite new to codesys so maybe I'm also lacking expertise...
Last updated: 2025-03-01
Using a method called from opcua fill an specific array position
CODESYS Forge
talk
(Thread)
Using a method called from opcua fill an specific array position
Last updated: 2022-02-18
how to run the machine using CNC editor in codesys
CODESYS Forge
talk
(Thread)
how to run the machine using CNC editor in codesys
Last updated: 2007-10-24
Time Measurement between two events with V2.3 using Wago750-890
CODESYS Forge
talk
(Thread)
Time Measurement between two events with V2.3 using Wago750-890
Last updated: 2020-12-22
Using Beckhoff EL3356 1-channel precise load cell analysis (resistor bridge), 16 bit
CODESYS Forge
talk
(Thread)
Using Beckhoff EL3356 1-channel precise load cell analysis (resistor bridge), 16 bit
Last updated: 2016-05-30
Establishing communication between a Raspberry Pi 4 and an Arduino UNO R3 using IΒ²C.
CODESYS Forge
talk
(Thread)
Establishing communication between a Raspberry Pi 4 and an Arduino UNO R3 using IΒ²C.
Last updated: 2023-12-03
How to configure gateway for programming RPi 2B using Codesys
CODESYS Forge
talk
(Thread)
How to configure gateway for programming RPi 2B using Codesys
Last updated: 2024-07-10
Timeout Error in Modbus Communication with WAGO PFC200 and iEM2050 Meter using 750-652 Module
CODESYS Forge
talk
(Thread)
Timeout Error in Modbus Communication with WAGO PFC200 and iEM2050 Meter using 750-652 Module
Last updated: 2024-07-30
Connection between Beijer PLC and Schneider Tesys-Island using Modbus TCP
CODESYS Forge
talk
(Thread)
Connection between Beijer PLC and Schneider Tesys-Island using Modbus TCP
Last updated: 2024-10-08
Using PEAK CAN PCIe card (IPEH-004040) with Codesys Control RTE V3
CODESYS Forge
talk
(Thread)
Using PEAK CAN PCIe card (IPEH-004040) with Codesys Control RTE V3
Last updated: 2024-12-20
How do I stop/start logging in my code using AC_Datalog with composer
CODESYS Forge
talk
(Thread)
How do I stop/start logging in my code using AC_Datalog with composer
Last updated: 2025-07-07
Unable to add EL6751 to Control RTE V3 on W11 IoT LTSC using Eng. V3.5 SP21
CODESYS Forge
talk
(Thread)
Unable to add EL6751 to Control RTE V3 on W11 IoT LTSC using Eng. V3.5 SP21
Last updated: 2025-09-08
Unable to Re-Import Native XML Exported Using CODESYS Script API
CODESYS Forge
talk
(Thread)
Unable to Re-Import Native XML Exported Using CODESYS Script API
Last updated: 2025-09-12
Using Automation server to access RPi softplc over a 4g link with a dynamic IP address?
CODESYS Forge
talk
(Thread)
Using Automation server to access RPi softplc over a 4g link with a dynamic IP address?
Last updated: 2022-02-15
enabling OPC UA connectivity while using motion control SM3_basic library gives build error
CODESYS Forge
talk
(Thread)
enabling OPC UA connectivity while using motion control SM3_basic library gives build error
Last updated: 2018-08-22
Using ADAM-6200 with CODESYS Control for Raspberry Pi MC SL
CODESYS Forge
talk
(Thread)
Using ADAM-6200 with CODESYS Control for Raspberry Pi MC SL
Last updated: 2021-03-21
how implement a load cell with Raspberry Pi in CODESYS using a HX711 ADC?
CODESYS Forge
talk
(Thread)
how implement a load cell with Raspberry Pi in CODESYS using a HX711 ADC?
Last updated: 2021-05-30
Can't get the IEC var address correcttly when using the function "IecVarAccGetAddress 2"
CODESYS Forge
talk
(Thread)
Can't get the IEC var address correcttly when using the function "IecVarAccGetAddress 2"
Last updated: 2018-12-25
SEGV when using an Ethernet_IP_Scanner/Profinet-Master coming from the ETHTOOL syscall
CODESYS Forge
talk
(Thread)
SEGV when using an Ethernet_IP_Scanner/Profinet-Master coming from the ETHTOOL syscall
Last updated: 2023-08-16
Switching between applications to run before starting PLC when using CODESYS ControlWin
CODESYS Forge
talk
(Thread)
Switching between applications to run before starting PLC when using CODESYS ControlWin
Last updated: 2023-05-06
Using Wago 750-8202 and Wago 750-651 in CoDeSys V3
CODESYS Forge
talk
(Thread)
Using Wago 750-8202 and Wago 750-651 in CoDeSys V3
Last updated: 2018-09-14
Select DMX-Channels via Art-Net using Net Base Services SP16
CODESYS Forge
talk
(Thread)
Select DMX-Channels via Art-Net using Net Base Services SP16
Last updated: 2020-06-12
RTS signals are misaligned to Modbus COM port packets when using the RaspberryPi
CODESYS Forge
talk
(Thread)
RTS signals are misaligned to Modbus COM port packets when using the RaspberryPi
Last updated: 2022-09-05
How do you find the PID of the process using http://127.0.0.
CODESYS Forge
talk
(Thread)
How do you find the PID of the process using http://127.0.0.
Last updated: 2008-10-31
Is using Codesys 3.5 SP8 for Beckhoff PLC is do able?
CODESYS Forge
talk
(Thread)
Is using Codesys 3.5 SP8 for Beckhoff PLC is do able?
Last updated: 2016-01-08
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND or OR.