B4A Library Modbus Master / Client - TCP Library - Peter Simpson    Dec 17, 2025   (20 reactions) Hello everyone,
Here is a Modbus library that I just wrapped to test some industrial Modbus TCP... B4A apps directly to industrial devices (PLCs) over TCP to read and write Modbus data. Your app... B4A Code Snippet ✅ Modbus CRC-16 / CRC16 checksum function - Peter Simpson    Dec 11, 2025   (11 reactions) SubName: Modbus CRC-16 is used to ensure data integrity in Modbus RTU (Remote Terminal Unit... string. The following code calculates the Modbus RTU CRC-16 (LSB-first / little-endian), the standard CRC (Cyclic Redundancy Check) used for Modbus frames. Let's use 010107DE000A as an example to calculated it's Modbus CRC-16 checksum value, which is 43 DD. Dim BC As ByteConverter Dim Data() As Byte = BC.HexToBytes("010107DE000A") Log(CalcModbusCRC(Data)) Sub... B4R Code Snippet esp32 RS485 bus: ModBus RTU module via Serial2: Slave + Master, pins settings - peacemaker    Jul 28, 2025   (4 reactions) ModBus RTU module 'v.2.0 'Slave code © OGmac https://www.b4x.com/android/forum/members/ogmac...* unused) { ::Serial2.begin(b4r_modbus::_port_speed, SERIAL_8N1, b4r_modbus::_rx_gpio, b4r_modbus::_tx_gpio); b4r_modbus::_serialnative2->wrappedStream = &::Serial2; } #End If #Region Functions Private Sub Stream_Error Log("Modbus stream error") End Sub Private Sub Receive....Modbus_NewData(c) 'pass the received data block to needed module Else... B4A Question Modbus TCP - Connect to multiple devices - Mike1970    Jun 9, 2025 Hi everyone I found this library by @Walter95 and it seems pretty cool. I already did some test with a PLC and I’m able to read something. However, my question is: if I have multiple devices (PLC) is it possible to have them all connected simultaneously or I’ve to circle between them periodically to get data and sensor readings? Thanks in advance... B4A Question Modbus CRC16 calculation - FreeWolF    Apr 10, 2014 Hello, I have to calculate the CRC16 of a MODBUS string. Unfortunately I have no idea how can I do...-------------------------------------------------
' returns the MODBUS CRC of the lbuf first bytes of "buf" buffer (buf is a global... B4R Question RS485 ModBus Master - peacemaker    Aug 18, 2021 Hi, All
Anyone already tried to implement Master side of Modbus protocol over RS485 interface ?
Any shared code (even to be paid) ?... B4J Question Shared Modbus RTU RS485 code for B4J and B4R - peacemaker    Aug 12, 2021 cross-platform coding of MODBUS RTU sensor's protocol ?
Any links to MODBUS code modules ?... B4R Question ModBus RTU - barx    Apr 23, 2020 Hello,
Has anyone successfully created a project that can communicate (Get & Set) with ModBus RTU
I have already seen this post --> https://www.b4x.com/android/forum/threads/modbus-rtu... B4J Library Asynchronous modbus TCP master - Coldrestart    Sep 22, 2020   (15 reactions) Hello everyone,
Here a modbus TCP master library, fully programmed in b4j.
This library is asynchronous, by use of the asyncstreams and Callback method.
The response is an event, a separate sub... B4R Question b4r modbus, possible? - barx    Mar 15, 2018 b4r, esp8266, modbus communication (over rs485).
Any way to do it?
I have a rs485 to ttl adaptor,
Cheers... Page: 1   2   3   4   |