Programm Modbus RTU Multireader - help
======================================

Programm Modbus RTU Reader - actual version 12
= = = = = = = = = = = = = = = = = = = = = = = =
Date of first finalising : 2023-09-14

Preface :
=========

I have created more programms for solar inverters and two black boxes,
at firts program Modbus RTU reader for grid-tie inverter SUN1000G and wattmeter SDM120M,
the second one was Modbus ANSI Reader-controler for inverter/charger PS3KVA
(from the PS1-5KVA series like predecestors of Axpert Max from Voltronic)

I informed about actual version for Modbus30 Ansi on Github and on MyPower.
I inform now about actual version for Modbus Rtu on Github and on MyPower, too.

This readme is for last Modbus RTU Multireader - version is ModbusRtu12 .

Short description of programm ModbusRtu12 RTU Multireader :
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Version of program : 12
Date of last updating  : 14. 9. 2023

Programm was created in Delphi XE Starter 
and it is working under operating system Windows W7 till W10 32 bit .

Programm was created by Pavel Oupicky, rentier and home worker.

Programm in full version is distributed as licensed for user.

Programm in shareware version is distributed as shareware.
  There is limited the number of recorded data for 100 ones.

Author takes no liability towards of any use of his programm.

Contact on author : pavel.oupicky@seznam.cz

Default known problems in this program ModbusRtu12 :
= = = = = = = = = = = = = = = = = = = = = = = = = = =
- the program is the compilation of many of previous programs created by author,
- so some functions programs are or not ready or are out of functions
- Window OS can open many of windows, but when program is running, it is impossible to use 
  the mini- or maximalization of ones, as the OS and Deplphi program cannot right open or closed them 
  .. so if my program is running do not use these button symbols for windows or program and data will be lost.

Basic description of program :
= = = = = = = = = = = = = = = = 

Program ModbusRtu11 was created for devices with communication protocol Modbus RTU
 and for communication between personal computers with connectors RS232 or USB converters 
 to RS232 or RS485 and devices like inverters SUN1000G or wattmeter SDM120M.
 This  renewed program Modbus Rtu Multireader can work with more devices on line RS485,
 the used devices need be to set with different line address from 1 to 247
 and the used devices need be to set with the same baud rate and transfered data format.
 There is  one driver for all used devices with commands starting with address of device


Description of basic buttons on home page in upper line:
= = = = = = = = = = = = = = = = = = = = = = = = = = = = =

About
- basic description of program

Memo
- memory for notes on PC

Help
- reads this similar file

Graphs
- first visualisation of parameters  for graphs

Menu
- when there are a data from measuremet, it is possible to see them 
  or get them into table or graph

Data
- reads recorded datas from pevious measurements

Hex counts
- some transfers between bits, bytes and hexbytes

End
- ends programm

Description ob basic buttons on home page in bottom line:
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = 

Parameters
- primary basic parameters for measurements, data, graph etc.

Drivers
- parameters for communication via com ports and MODBUS RTU commands

Measure
- start for measurement process

Inputs
- list of   commands for measurement and suiteable inputs

Rtu Test
- basic test of communication between PC and device in Modbus RTU


Parameters for tests and measurement :
= = = = = = = = = = = = = = = = = = = =

- basic and driver parameters must be set before then the programm is started

- basic parameters must be set in file with extension .par in Par folder
- driver parameters must be set in file with extension .rtu in Driver folder
- parameters for graphs are in the filr wizh extension .grp in  Grp folder
- help file for Modbus28 must have name Modbus28-help.txt and must be in the Help folder

All files with parameters have text format and there is possible to change them in all notepads.

Example of initialization file (.ini)
ModbusRtu12.ini
= = = = = = = = = = = = = = = = = = =

ModbusRtu/12/Initial
Initialfile of program ModbusRtu12
14.09.2023/13:16:07
User: shareware
Path:Par
File:ModbusRtu12-SDM120M+230M-RS485-01+02-9600-kWh.par
end

Example of basic parameters (.par file):
ModbusRtu12-SDM120M+230M-RS485-01+02-9600-kWh.par
= = = = = = = = = = = = = = = = = = = = =  = = = =

ModbusRtu12/params
Measuring with system of SDM230M+SDM120M test
Test of program functions
Date:2023-09-09*10:22
System:SystemSDM,USB-RS485
Protocol:Rtu/Eastron V2.4
Driver:ModbusRtu12-SDM120M+230M-RS485-01+02-9600.rtu
Inputs:2,3,9,10,12,13,19,20,end
Measured interval:1
Outputs:8
Data:Data
Help:Help\ModbusRtu12-help.txt
Graf-par:Grp\Graphpar-Modbus-SystemSDM.grp
end

Note: Measured interval is integer number from 0 to 32000 in seconds

Parameters for driver file (.rtu file) example :
ModbusRtu12-SDM120M+230M-RS485-01+02-9600.rtu
= = = = = = = = = = = = = = = = = = = = = = = = =

ModbusRtu/12/params
Parameters for measurog with SDM230M and SDM120M via RS485 by Modbus Rtu
6.09.2023*12:47:45
Protocol:Rtu
Description:Protocol Modbus V2.4 of Eastron for SDM230 and 120M
System:SystemSDM,USB-RS485
Port:Com,7,9600,8,1,0
Timing:Timer=10,Sleep=10,Wait=200,Timeout=5
Devices:SDM230MCT/02+SDM120M/01
Commands:20
1:0x01,0x04,0x00,0x00,0x00,0x02/4,0,999.99,1.0/V-01,Volts
2:0x01,0x04,0x00,0x06,0x00,0x02/4,0,99.999,1.0/A-01,Ampers
3:0x01,0x04,0x00,0x0C,0x00,0x02/4,0,999.99,1.0/W-01,Watts
4:0x01,0x04,0x00,0x12,0x00,0x02/4,0,999.99,1.0/VA-01,Voltampers
5:0x01,0x04,0x00,0x18,0x00,0x02/4,0,999.99,0.1/VAr-01,Voltamper r
6:0x01,0x04,0x00,0x1E,0x00,0x02/4,0,999.99,1.0/au-01,Power Factor
7:0x01,0x04,0x00,0x24,0x00,0x02/4,0,999.99,1.0/Deg-01,Degree
8:0x01,0x04,0x00,0x46,0x00,0x02/4,0,99.999,1.0/Hz-01,Frekvence
9:0x01,0x04,0x00,0x48,0x00,0x02/4,0,99.999,1.0/kWh-01,Import Active Energy
10:0x01,0x04,0x00,0x4A,0x00,0x02/4,0,99.999,1.0/kWh-01,Export Active Energy
11:0x02,0x04,0x00,0x00,0x00,0x02/4,0,999.99,1.0/V-02,Volts
12:0x02,0x04,0x00,0x06,0x00,0x02/4,0,99.999,1.0/A-02,Ampers
13:0x02,0x04,0x00,0x0C,0x00,0x02/4,0,999.99,1.0/W-02,Watts
14:0x02,0x04,0x00,0x12,0x00,0x02/4,0,999.99,1.0/VA-02,Voltampers
15:0x02,0x04,0x00,0x18,0x00,0x02/4,0,999.99,0.1/VAr-02,Voltamper r
16:0x02,0x04,0x00,0x1E,0x00,0x02/4,0,999.99,1.0/au-02,Power Factor
17:0x02,0x04,0x00,0x24,0x00,0x02/4,0,999.99,1.0/Deg-02,Degree
18:0x02,0x04,0x00,0x46,0x00,0x02/4,0,99.999,1.0/Hz-02,Frekvence
19:0x02,0x04,0x00,0x48,0x00,0x02/4,0,99.999,1.0/kWh-02,Import Active Energy
20:0x02,0x04,0x00,0x4A,0x00,0x02/4,0,99.999,1.0/kWh-02,Export Active Energy
end

Example of with parameters for graphs file (.grp)
Grf-Modbus-basic-en.grp
= = = = = = = = = = = = = = = = = = = = = = = = =

ModbusRtu12/parameters/graphs
Graph:ModbusRtu12 - test
24.9.2023/21:25:21
0*1*5*min*Axe of time for graph
0*1*5*2*min*Axe of time for measuring
0*50*250*a.u.*Axe of intensity for graph
0*10*50*a.u.*Axe of intensity for measuring - user
0*50*250*a.u.*Axe of intensity for measuring - basic
1*1*.point for data on axe x and y
1*0*rastr x and rastr y , 0 = no rastr
Color of line*type of line*width of line from 0 to 8 works
clBlue*psSolid*1
clGreen*psSolid*1
clRed*psSolid*1
clFuchsia*psSolid*2
clNavy*psSolid*1
clLime*psSolid*2
clAqua*psDotDash*2
clPurple*psDot*2
end


