Help for programm MODBUS ANSI for inverters PS1-5KVA
= = = = = = = = = = = = = = = = = = = = = = = = = = = =

Version of programm : 27
Date of last creating  : 27. 6. 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 shareware.
Demo version of programm is distributed as freeware.
There is blocked the comunication between PC and device.

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

Contact  on author : pavel.oupicky@seznam.cz

Default known problems in this programm Modbus :
= = = = = = = = = = = = = = = = = = = = = = = = =
Version 27 :
- - - - - - -
- programm is compilation from many previous programms of author,
  so some functions are not finnaly corrected and so some function seems in non standard use
  (graphs, tables etc.) to be a little in chaos, but basic fubnction is correct.

Basic description of programm :
= = = = = = = = = = = = = = = = 

Programm was created for devices with communication protocol
PI30 of Modbus ANSI with commands confirmed  by CRC CCITT Xmodem and CR
 and for communication between personal computers
with connectors RS232 or USB converters to RS232 a RS485
 and devices like inverters PS1-5KVA.

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

About
- basic description of programu

Memo
- memory for notes on PC

Graphs
- first visualisation of parameters  for graphs

Data
- reads recorded datas from pevious measurements

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

Test
- basic control of communication between PC and device in Modbus Ansi or Ascii

Help
- reads this similar file

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 ANSI commands

Inputs
- list of answers on the choosed measurement command

Measure
- start for measurement process

Status
- reads nominal and actual data from inverter

Control
- reads and sets the process commands for device

Data
- simply reading and visualisation of data from device

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 .ans in Driver folder
- parameters for graphs are in the filr wizh extension .grp in folder Grp
- help file for Modbus27 must have name Modbus27-help.txt and must be in the folder Help

Example of basic parameters (.par file):
= = = = = = = = = = = = = = = = = = = = = 

Modbus/27/params
Test:Inverter-charger PS3KVA
Description: The test of device and data
Date:2023-06-28*15:22
Device:PS3KVA,USB-RS232
Protocol:Ansi/PI30
Battery:AGM/24V
Driver:Modbus27-PS3KVA-RS232-com4-2400-PI30.ans
Inputs:QPIGS:1,3,4,5,6,12,13,14,end
Measured interval:0
Outputs:8
Data:Data
Help:Help\Modbus-help.hlp
Graf-par:Grp\Grf-Modbus-basic.grp
end

Parameters for driver (.ans file) example :
= = = = = = = = = = = = = = = = = = = = = = = = =

Modbus/27/params/Modbus27-PS3KVA-Com4-2400-PI30.ans
Parameters for data transmission from PS3KVA via port RS232
19.6.2023*8:47:45
Protocol:Ansi/CRC/Xmodem/CR
Description:Protocol for PS3KVA like PI30
Device:PS3KVA,USB-RS232
Port:Com,4,2400,8,1,0
Timing:Timer=10,Sleep=10,Wait=300,Timeout=300
Device Address:NU
Commands:7
QPIGS:R/21
1:AC_Grid_Voltage/V
2:AC_Grid_Frequency/Hz
3:AC_Output_Voltage/V
4:AC_Output_Frequency/Hz
5:AC-App_Power/VA
6:AC_Active_Power/W
7:Output_Load_%/%
8:Bus_Voltage/V
9:Battery_Voltage/V
10:Batt_charg._Current/A
11:Battery_Capacity/%
12:Heat_Sink_Temp/Cels
13:PV_in_Current/A
14:PV_in_Voltage/V
15:Batt_SCC_voltage/V
16:Batt_disch_Current/A
17:Device status/byte
18:Batt_offset_for_fans/10mV
19:EEProm Version/nr
20:PV_charging_Power/W
21:Device_Status/nr
QPIRI:R/25
1:AC_Grid_Voltage/V
2:AC_Grid_Current_max/A
3:AC_Output_Voltage/V
4:AC_Grid_Frequency/Hz
5:AC_Output_Current_max/A
6:AC_Output_Voltampers_max/VA
7:AC_Output_Watts_max/W
8:DC_Battery_Nominal/V
9:DC_batt_set_low_volts/V
10:DC_batt_minimal_volts/V
11:DC_batt_set_volts_max/V
12:DC_batt_set_high_volts/V
13:Battery type/nr
14:DC_battery_max_charge/A
15:DC_batt_max_discharge/A
16:Input voltage range/nr
17:Output source priority/nr
18:Charger source priority/nr
19:Parallel max num/-
20:Machine type/nr
21:Topology/nr
22:Output mode/nr
23:Battery re-discharge voltage/V
24:PV OK condition for parallel/nr
25:PV power balance/nr
QDI:R/25
1:AC output voltage/V
2:AC output frequency/Hz
3:Max AC charging current/A
4:Battery Under voltage/V
5:Charging float voltage/V
6:Charging bulk voltage/V
7:Battery default re-charge voltage/V
8:Max charging current/A
9:AC input voltage range/V
10:Output source priority/nr
11:Charger source priority/nr
12:Battery type/nr
13:Buzzer/nr
14:Power saving/nr
15:Overload restart/nr
16:Over temperature restart/nr
17:LCD backlight on/nr
18:Alarm on primary source interrupt/nr
19:Fault code record/nr
20:Overload bypass/nr
21:LCD display escape/nr
22:Output mode/nr
23:Battery re-discharge voltage/V
24:PV OK condition for parallel/nr
25:PV power balance/nr
QID:R/1
1:Device_SN/Nr
QPI:R/1
1:Protocol/Text
QVFW:R/1
1:Firmware/Text
QFLAG:R/1
1:ListOfFlagsED/text
end



Dictionairy of some used terms for solar inverters:
= = = = = = = = = = = = = = = = = = = = = = = = = = = = =

AC - Alternate Current

DC - Double polarised Current

Grid - electric power net

Overflow of electric energy into grid

Grid Tie - device conncted on the grid with energy limiter breaking overflow of one

Off Grid- system primary powered by solar energy

Hybrid - system usually coupled from Grid Tie + Off Grid

SCC - Solar Charger Controller

SOL - Prioritn pouit solrn energie a baterie 
    	- a do plnho vybit baterie, teprve potom s

Utility - system primary powered by grid 
    	- solar energy and battery are used only when grid is off

SBU - system primary used solar energy and battery
    	

Appliance Voltage - used range of AC voltage can be 90 a 280 V
UPS -  used range of AC voltage can be 170 a 280 V

Agm - closed battery with gel electrolyte
Floaded - battery with floded electrolyte (PbS or NiFe)




 

