Skip to content

Commit 1dcce56

Browse files
committed
v2.42
- Fixed bug loading profile group - Improved csv export speed - Added context menu datagrids - Added offset columns in registers datagrids
1 parent f7946f4 commit 1dcce56

36 files changed

+1491
-396
lines changed

ModBus_Client/Config/SettingsToSave.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,31 +55,37 @@
5555
"CheckBoxSendValuesOnEditCoillsTable": {},
5656
"CheckBoxSendValuesOnEditHoldingTable": {},
5757
"checkBoxUseOffsetInTextBox": {},
58-
"checkBoxFollowModbusProtocol": {},
5958
"checkBoxCellColorMode": {},
6059
"checkBoxViewTableWithoutOffset": {},
6160
"CheckBoxDarkMode": {},
6261
"checkBoxModbusSecure": {},
63-
"CheckBoxUseOnlyReadSingleRegistersForGroups": {}
62+
"CheckBoxUseOnlyReadSingleRegistersForGroups": {},
63+
"CheckBoxPreviewimportWriteMultipleRegisters": {},
64+
"CheckBoxPreviewImportCloseWindowAfterWrite": {},
65+
"CheckBoxPreviewImportAbortOnError": {}
6466
},
6567
"menuItems": {
68+
"viewTabCoilsOffset": {},
6669
"viewTabCoilsRegisters": {},
6770
"viewTabCoilsValues": {},
6871
"viewTabCoilsConvertedValues": {},
6972
"viewTabCoilsNotes": {},
7073

74+
"viewTabInputsOffset": {},
7175
"viewTabInputsRegisters": {},
7276
"viewTabInputsValues": {},
7377
"viewTabInputsConvertedValues": {},
7478
"viewTabInputsNotes": {},
7579

80+
"viewTabInputRegistersOffset": {},
7681
"viewTabInputRegistersRegisters": {},
7782
"viewTabInputRegistersValues": {},
7883
"viewTabInputRegistersBinaryValues": {},
7984
"viewTabInputRegistersConvertedValues": {},
8085
"viewTabInputRegistersNotes": {},
8186
"viewTabInputRegistersMappings": {},
8287

88+
"viewTabHoldingRegistersOffset": {},
8389
"viewTabHoldingRegistersRegisters": {},
8490
"viewTabHoldingRegistersValues": {},
8591
"viewTabHoldingRegistersBinaryValues": {},

ModBus_Client/Doc/EN/04_settings.tex

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ \chapter{Settings}
1919
requested
2020
address 40002. Same for input registers (30001), discrete inputs (10001)
2121
or coils (00001).
22-
\item \textbf{Limit modbus addresses to 9998:}
23-
If checked, only address requests between 0 and 9998 (or corresponding address
24-
modbus e.g.: 10001-19999/30001-39999/40001-49999) are allowed. Otherwise, the request is sent
25-
whatever modbus address is entered. For example, some Beckhoff CPUs provide
26-
the words MW0,MW1,... starting at holding register 0x3000 (dec 12288).
27-
By not checking the box
28-
you can then also send requests to addresses beyond the value of 9998, up to 65535.
2922
\item \textbf{Color cells with value > 0 / Alternating color:}
3023
If checked, only table rows with a value > 0 are colored, otherwise rows
3124
are colored alternately.
@@ -66,4 +59,16 @@ \chapter{Settings}
6659
when the connection returns. With the second
6760
mode this does not happen because the socket is opened for each read
6861
and closed immediately after so on a practical level this mode can come in very handy.
62+
\end{itemize}
63+
64+
Preview import settings:
65+
\\\\
66+
The following settings allow you to set the default values
67+
of the preview import window.
68+
69+
\begin{itemize}
70+
\item \textbf{WRITE MULTIPLE REGISTERS (FC15 / FC16):} merge consecutive records into a single command where possible.
71+
\item \textbf{CLOSE WINDOW AFTER WRITE:} closes the window automatically when the writing is finished.
72+
\item \textbf{ABORT WRITE ON ERROR:} stops the entries in case of an error (otherwise ignores the error and continues with the next entries).
73+
\item \textbf{NR. OF REGISTERS MULTIPLE WRITE:} maximum number of registers sent in a single command FC15 / FC16.
6974
\end{itemize}

ModBus_Client/Doc/EN/05_templates.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ \section{Group definition}
6868

6969
In the "Notes" tab of the template window, it is possible to define resource groups
7070
to be called up later in the main window. It is not necessary to enter the groups in order.
71+
The tab shows also a summary of the number of registers configured by the user.
7172

7273
\begin{figure}[H]
7374
\centering
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
2+
\chapter{Preview import}
3+
4+
The preview import window allows
5+
to import a set of previously exported registers
6+
in order to send them in bulk to the modbus slave.
7+
The import window can be opened from the "import" menu,
8+
via the import button at the bottom or by pressing the
9+
right button on the tables in the main window:
10+
11+
\begin{figure}[H]
12+
\centering
13+
\includegraphics[width=0.35\textwidth]{../Img/Menu_Import.PNG}
14+
\caption{Preview import}
15+
\end{figure}
16+
17+
\begin{figure}[H]
18+
\centering
19+
\includegraphics[width=0.35\textwidth]{../Img/PreviewImport_OpenButton.PNG}
20+
\caption{Preview import}
21+
\end{figure}
22+
23+
\begin{figure}[H]
24+
\centering
25+
\includegraphics[width=0.50\textwidth]{../Img/PreviewImport_Open.PNG}
26+
\caption{Preview import}
27+
\end{figure}
28+
29+
From the context menu you can either import a set of records
30+
copied from a spreadsheet ("paste") or import a file
31+
.csv/.json ("import"). The "copy" or "cut" commands allow you to copy
32+
the table displayed on the clipboard and then paste them into a spreadsheet.
33+
34+
\newpage
35+
The preview window appears as follows:
36+
37+
\begin{figure}[H]
38+
\centering
39+
\includegraphics[width=0.85\textwidth]{../Img/PreviewImport_Main.PNG}
40+
\caption{Preview import main window}
41+
\end{figure}
42+
43+
The data displayed in the preview can be copied or pasted
44+
in the window via the context menu:
45+
46+
\begin{figure}[H]
47+
\centering
48+
\includegraphics[width=0.85\textwidth]{../Img/PreviewImport_ContextMenu.PNG}
49+
\caption{Preview import context menu}
50+
\end{figure}
51+
52+
The "write single" and "write multiple" commands allow you to send
53+
the displayed registers as a group (FC15/FC16) or individually (FC05/FC06).
54+
55+
56+

ModBus_Client/Doc/EN/08_dropdown.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ \section{Import Menu}
5252
are consecutive you can choose whether to
5353
send them individually (write single coil/write single register) or in bulk
5454
(write multiple coils/write multiple registers).
55+
It is possible to directly import a csv/json file or
56+
directly import cells copied (ctrl+c) from a spreadsheet
57+
(clipboard).
5558

5659
\begin{figure}[H]
5760
\centering
59.5 KB
Binary file not shown.
5.16 KB
Binary file not shown.

ModBus_Client/Doc/EN/ModBus_Client_EN.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
6161
% -----------------------------------------------
6262
\newcommand{\docrevision}{\ddmmyyyydate\today}
6363
\newcommand{\projectname}{Modbus Client}
64-
\newcommand{\projectdescription}{Modbus Client Manual }
64+
\newcommand{\projectdescription}{Modbus Client Manual \version}
6565

6666
\newcommand{\revision}{\docrevision}
67-
\newcommand{\version}{v2.38}
67+
\newcommand{\version}{v2.42}
6868
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}} % Chapter name in alto a sx senza "Capitolo x " davanti
6969

7070
\pagestyle{fancy}
@@ -153,6 +153,7 @@
153153
\input{03_packet_log.tex}
154154
\input{04_settings.tex}
155155
\input{05_templates.tex}
156+
\input{06_preview_import.tex}
156157
\input{06_tools_holding_registers.tex}
157158
\input{07_gestione_database.tex}
158159
\input{08_dropdown.tex}

ModBus_Client/Doc/IT/04_settings.tex

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,6 @@ \chapter{Impostazioni}
1919
richiesto
2020
l'indirizzo 40002. Stessa cosa per gli input registers (30001), discrete inputs (10001)
2121
o coils (1).
22-
\item \textbf{LIMITA GLI INDIRIZZI MODBUS A 9998:}
23-
Se spuntata vengono inviate solo le richieste di indirizzi tra 0 e 9998 (o corrispondente indirizzo
24-
Modbus es: 10001-19999/30001-39999/40001-49999). In caso contrario viene inviata la richiesta
25-
modbus qualsiasi sia l'indirizzo inserito. Ad esempio alcune CPU Beckhoff mettono a disposizione
26-
le word MW0,MW1,… partendo dall'holding register 0x3000 (dec 12288). Non spuntando la casella
27-
si possono quindi inviare richieste anche a indirizzi oltre il valore di 9998, fino a 65535.
2822
\item \textbf{COLORE CELLE > 0 / COLORE CELLE ALTERNATE:}
2923
Se spuntata vengono colorate solo le righe delle tabelle con un valore > 0, altrimenti le righe
3024
vengono colorate in maniera alternata.
@@ -65,4 +59,16 @@ \chapter{Impostazioni}
6559
quando ritorna la connessione. Con la seconda
6660
modalità questo non accade perche la socket viene riaperta per ogni lettura
6761
e chiusa subito dopo per cui a livello pratico questa modalità può tornare molto utile.
62+
\end{itemize}
63+
64+
Preview import settings:
65+
\\\\
66+
Le impostazioni seguenti permettono di impostare i valori di default
67+
della finestra di import dei registri.
68+
69+
\begin{itemize}
70+
\item \textbf{WRITE MULTIPLE REGISTERS (FC15 / FC16):} accorpa registri consecutivi in un unico comando ove possibile.
71+
\item \textbf{CLOSE WINDOW AFTER WRITE:} chiude la finestra automaticamente al termine delle scritture.
72+
\item \textbf{ABORT WRITE ON ERROR:} interrompe le scritture in caso di errore (altrimenti ignora l'errore e prosegue con le successive).
73+
\item \textbf{NR. OF REGISTERS MULTIPLE WRITE:} numero massimo di registri inviati in un singolo comando FC15 / FC16.
6874
\end{itemize}

ModBus_Client/Doc/IT/05_templates.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ \section{Definizione gruppi}
6666

6767
Nella tab "Notes" della finestra template è possibile definire i gruppi di risorse
6868
da richiamare poi nella finestra principale. Non è necessario inserire i gruppi in ordine.
69+
La stessa tab mostra anche un riepilogo sul numero di registri e gruppi inseriti nel profilo.
6970

7071
\begin{figure}[H]
7172
\centering

0 commit comments

Comments
 (0)