Questions tagged [Modbus] (20)

1
answer

How to know whether the variable structure method?

I have a program. Here is a small piece of code. type ModbusTCP struct { Device Device Modbus Client.Client Handler *modbus.TCPClientHandler } // Connect connect to the device func (m *ModbusTCP) Connect(d Device) (err error) { m.Device = d cs := d.DParams.(map[string]interface{})["ip"].(string) + ":" + fmt.Sprint...
Fidel asked April 16th 20 at 10:40
1
answer

How to fix the error?

private void button1_Click(object sender, EventArgs e) { byte[] message=new byte[] {00, 03, 01, 00, 00, 0x0C }; byte[] CRC = new byte[2]; CRC = mass(message); label1.Text = CRC[0]+" "+CRC[1].ToString(); } static public byte[] mass(byte[] message) { byte[] CRC = new byte [16] ; Register ushort = 0xFFFF; usho...
Garrett.Cartwright asked April 7th 20 at 10:36
1
answer

How to send a comport?

need to send this array of bytes into a computer port and get response byte[] ak = { 00, 03, 01, 00, 00,0 C, RCR }; swears at 0C and RCR that is not a bytes. tell me how can I do that??? and then how to take the answer with the MC? And to see whether the byte comes to Comporta?
samantha.Wehner asked April 7th 20 at 09:21
1
answer

Primitive Modbus control via arduino — how to send a command?

Good day, there are 4 slave devices, arduino , UART - RS485 Converter, Very limited time, and adapt library is no possibility Tested the slave via a PC using the USB-RS485 Converter correctly and send schitau registers using the instructions 0x03 and 0x06 The question of whether knowing the specific bit of the command to co...
marlee_Nolan14 asked April 7th 20 at 09:06
0
answer

How to handle set requests for ModBus?

Write a program to work with the device, I developed the same for ModBus RTU. At the moment the exchange is designed so that there is a class ModBus client providing a package of requests and responses are processed via ModBus. Interface types:class IModBusClient { virtual void ReadHoldingRegs(startRegAddres uint16_t, uint...
franco_Botsford asked March 31st 20 at 15:56
0
answer

How to determine the cause of unresponsiveness Lectus OPC Server?

Good day, a Lectus OPC Server, which takes multiple variables via Modbus and transmits them via OPC. This is the same server running the OPC client (vibration monitoring system). So, periodically, randomly hung stream in the OPC. Maybe all this design to work for a week or two, and maybe a couple of hours. In LEctus logs...
Lo asked March 29th 20 at 23:48
1
answer

Modbus ascii what is the answer from the controller?

Have the controller DVP-12SA2. Connect to it via cable to the rs and work with him on the ascii modbus Protocol. The bottom line is this...send a request to read a register: ":0206126C2000E1" get the answer: :02860771 what it does not understand... Help me understand, who have worked with this Protocol.
Kellie asked March 29th 20 at 19:59
1
answer

How to get data in Android app with Modbus?

Hello, there is a task: to write prilozhu receiving data from a connected Modbus-TCP emulator (in the first approximation system is a tablet, USB cable connected from the PC where the emulator Modbus device) Gave rise to the following questions: does anyone have some source code for similar applications? what Modbus emulato...
Genevieve.Donnelly asked March 29th 20 at 19:26
1
answer

How to receive data using Modbus Rtu?

I need to configure modbus. The master performs single-Board computer on Linux, the slave supports the modbus slave program (in the future will be the device kinco). Initially I need to write my Master on Linux but to test the raised devices on Linux program mbpoll - b 9600 - c3 - r 1 - t 0 - a 1-P none - m rtu at startup i...
leatha asked March 19th 20 at 18:56
1
answer

How to transmit bits via modbus rtu to the modbus slave program?

I need to learn how to communicate my odnoletniki(beaglebone) with the program modbus slave. I need to get the bits. Use the libmodbus library. The problem is that the data he's sending.
Darwin asked March 19th 20 at 09:06