Posts: 3612
Threads: 20
Joined: Aug 2017
Reputation:
151
Try this:
Code:
{
"bus_datatype": "int64",
"address": 20480,
"type": "register",
"units": "kWh",
"value_multiplier": 0.01,
"name": "Active import",
"datatype": "uint64"
},
Try using profile generator if this is simpler.
https://forum.logicmachine.net/showthrea...8#pid19678
------------------------------
Ctrl+F5
Posts: 4
Threads: 0
Joined: Jan 2022
Reputation:
0
Attached Files
Thumbnail(s)
Posts: 3612
Threads: 20
Joined: Aug 2017
Reputation:
151
What are the RTU settings?
------------------------------
Ctrl+F5
Posts: 156
Threads: 18
Joined: Apr 2017
Reputation:
2
(02.10.2022, 10:48) tthamm Wrote: (24.01.2022, 07:14) admin Wrote: LM does not have D0/D1 markings, but A/B/GND. A is positive, B is negative. Try swapping A/B lines and also check that the serial port settings match.
now the communikation works!
I´ve found the manufactur manual with chapter 9 (Communication with Modbus) inside.
Here are the fields: Quantity, Details, Start reg (hex), Size, Res., Unit, Data type,
for Example:
Quantity: Active import, Details: Tariff 1, Start reg (hex): 5170, Size: 4, Res.: 0,01, Unit: kWh, Data type: Unsigned
When i try reading Active import with these settings:
- Function: Holding register (#3)
- Address: 20480
- Data type: uint64
- Read swap: Word
the Answer is 94425 (i think its 944,25 kWh), that is correct.
but how i have to "translate" for the Logicmachine? I know, that i have to calculate hex into dec (like 5000 in hex is 20480 in dec). In the Modbus Profile Generater are Fields like bus_datatype, datatype, value_custom, read_swap...
Can you give me an example? Thankx
I have the ABB B21 and have the next script what is working, maybe this can help you?
Code:
{
"product_code": "ABB_B21",
"mapping": [
{
"bus_datatype": 14,
"address": 20480,
"value_multiplier": 0.01,
"type": "register",
"units": " kWh",
"name": "Active import",
"datatype": "int64"
},
{
"bus_datatype": 14,
"address": 20484,
"value_multiplier": 0.01,
"type": "register",
"units": " kWh",
"name": "Active export",
"datatype": "int64"
},
{
"bus_datatype": 14,
"address": 20488,
"value_multiplier": 0.01,
"type": "register",
"units": "kWh",
"name": "Active Net",
"datatype": "int64"
},
{
"bus_datatype": 14,
"address": 20489,
"value_multiplier": 0.01,
"type": "register",
"units": "Kvarh",
"name": "Reactive Import",
"datatype": "int64"
},
{
"bus_datatype": 14,
"address": 20496,
"value_multiplier": 0.01,
"type": "register",
"units": "Kvarh",
"name": "Reactive Export",
"datatype": "int64"
},
{
"bus_datatype": 14,
"address": 20500,
"value_multiplier": 0.01,
"type": "register",
"units": "Kvarh",
"name": "Reactive Net",
"datatype": "int64"
},
{
"bus_datatype": 14,
"address": 20504,
"value_multiplier": 0.01,
"type": "register",
"units": "Kvarh",
"name": "Apparent Import",
"datatype": "int64"
},
{
"bus_datatype": 14,
"address": 20505,
"value_multiplier": 0.01,
"type": "register",
"units": "Kvarh",
"name": "Apparent Export",
"datatype": "int64"
},
{
"bus_datatype": 14,
"address": 20512,
"value_multiplier": 0.01,
"type": "register",
"units": "Kvarh",
"name": "Apparent Net",
"datatype": "int64"
},
{
"bus_datatype": 14,
"address": 20516,
"value_multiplier": 0.001,
"type": "register",
"units": "kg",
"name": "Active Import CO2",
"datatype": "int64"
},
{
"bus_datatype": 14,
"address": 20532,
"value_multiplier": 0.001,
"type": "register",
"units": "currency",
"name": "Active Import Currency",
"datatype": "int64"
},
{
"bus_datatype": 14,
"address": 23296,
"value_multiplier": 0.1,
"type": "register",
"units": "currency",
"name": "Volatage",
"datatype": "int64"
},
{
"bus_datatype": 14,
"address": 23316,
"value_multiplier": 0.01,
"type": "register",
"units": " W",
"name": "Active power",
"datatype": "int64"
},
{
"bus_datatype": 14,
"address": 23296,
"value_multiplier": 0.1,
"type": "register",
"units": " V",
"name": "Voltage L1-N",
"datatype": "int32"
},
{
"bus_datatype": 14,
"address": 23308,
"value_multiplier": 0.01,
"type": "register",
"units": " A",
"name": "Current Ampere L1",
"datatype": "int32"
},
{
"bus_datatype": 14,
"address": 23316,
"value_multiplier": 0.01,
"type": "register",
"units": " W",
"name": "Active Total Power",
"datatype": "int32"
},
{
"bus_datatype": 14,
"address": 23340,
"value_multiplier": 0.01,
"type": "register",
"units": " Hz",
"name": "Frequency",
"datatype": "uint16"
},
{
"bus_datatype": 10,
"address": 35328,
"value_multiplier": 0,
"type": "register",
"units": " time",
"name": "date / time",
"datatype": "int64"
}
],
"manufacturer": "ABB",
"name": "B21",
"product_range": "PM",
"description": "Power Meter P21 1 fase",
"read_delay": 1
}
The last read_delay is because is had 2 devices and the next device i activate didn't work
link to post from Admin
Posts: 3
Threads: 1
Joined: Apr 2017
Reputation:
0
(04.11.2020, 20:56) stemic01 Wrote: FYI: I've just implemented and written a modbus JSON profile for the FLEXIT NORDIC S4 ventilation system. Now I can retrieve vital information and change certain parameters. PM if you are in need of this for your flexit. (PS! The CI66 JSON did not work for me).
Hello, I have also tried the CI66 JSON with no success. Are you interested in sharing your file that would be great
My unit is a Flexit Uni 4
Regards
Posts: 37
Threads: 3
Joined: May 2018
Reputation:
0
Hallo,
I created this modbus profile, but if I try to import it in LM, it show me "invalid profile":
{
"manufacturer": "Rehom",
"description": "Unità Master",
"product_code": "REH11001",
"mapping":
[
{
"name": "richiesta_lettura_dati",
"bus_datatype": 7,
"type": "register",
"address": 6,
"writable": "true"
},
{
"name": "richiesta_lettura_contatore",
"bus_datatype": 7,
"type": "register",
"address": 7,
"writable": "true"
},
{
"name": "consumo_calorie",
"bus_datatype": 14,
"units": "kWh",
"type": "register",
"address": 3015,
"value_multiplier": 1
},
{
"name": "consumo_frigorie",
"bus_datatype": 14,
"units": "kWh",
"type": "register",
"address": 3017
"value_multiplier": 1
}
]
}
Can someone help me please
Best regards
Fabio Rusconi
Posts: 216
Threads: 48
Joined: Dec 2019
Reputation:
1
(27.12.2022, 14:48) fabiorusco Wrote: Hallo,
I created this modbus profile, but if I try to import it in LM, it show me "invalid profile":
{
"manufacturer": "Rehom",
"description": "Unità Master",
"product_code": "REH11001",
"mapping":
[
{
"name": "richiesta_lettura_dati",
"bus_datatype": 7,
"type": "register",
"address": 6,
"writable": "true"
},
{
"name": "richiesta_lettura_contatore",
"bus_datatype": 7,
"type": "register",
"address": 7,
"writable": "true"
},
{
"name": "consumo_calorie",
"bus_datatype": 14,
"units": "kWh",
"type": "register",
"address": 3015,
"value_multiplier": 1
},
{
"name": "consumo_frigorie",
"bus_datatype": 14,
"units": "kWh",
"type": "register",
"address": 3017
"value_multiplier": 1
}
]
}
Can someone help me please
Best regards
Fabio Rusconi
Hi Fabio,
After "address":3017 there's no the ,
BR Cristian
Posts: 37
Threads: 3
Joined: May 2018
Reputation:
0
(28.12.2022, 05:47) CristianAgata Wrote: (27.12.2022, 14:48) Thank you,Fabiofabiorusco Wrote: Hallo,
I created this modbus profile, but if I try to import it in LM, it show me "invalid profile":
{
"manufacturer": "Rehom",
"description": "Unità Master",
"product_code": "REH11001",
"mapping":
[
{
"name": "richiesta_lettura_dati",
"bus_datatype": 7,
"type": "register",
"address": 6,
"writable": "true"
},
{
"name": "richiesta_lettura_contatore",
"bus_datatype": 7,
"type": "register",
"address": 7,
"writable": "true"
},
{
"name": "consumo_calorie",
"bus_datatype": 14,
"units": "kWh",
"type": "register",
"address": 3015,
"value_multiplier": 1
},
{
"name": "consumo_frigorie",
"bus_datatype": 14,
"units": "kWh",
"type": "register",
"address": 3017
"value_multiplier": 1
}
]
}
Can someone help me please
Best regards
Fabio Rusconi
Hi Fabio,
After "address":3017 there's no the ,
BR Cristian
Posts: 6477
Threads: 35
Joined: Jun 2015
Reputation:
360
Profile is missing datatype fields, most likely kWh readings will be incorrect. Can you provide documentation for this device?
Posts: 37
Threads: 3
Joined: May 2018
Reputation:
0
28.12.2022, 08:32
(This post was last modified: 28.12.2022, 08:33 by fabiorusco .)
(28.12.2022, 07:30) admin Wrote: Profile is missing datatype fields, most likely kWh readings will be incorrect. Can you provide documentation for this device?
Hello,
I inserted them like uint32.
Thank you
Posts: 1
Threads: 0
Joined: Mar 2023
Reputation:
2
Hi all!
I made and checked the profile for the Haier YCJ-A002 module (for connecting Haier air conditioners via Modbus).
For writing, I used the site
https://jsoneditoronline.org/
And modbus profile generator
https://forum.logicmachine.net/showthrea...8#pid19678
Attached Files
Posts: 92
Threads: 18
Joined: Apr 2018
Reputation:
2
Dears,
attached the Modbus RTU direct connection profile of LG AWHP to logic machine incl all custom values.
Attached Files
Posts: 27
Threads: 6
Joined: Jan 2016
Reputation:
2
08.04.2023, 18:04
(This post was last modified: 09.04.2023, 10:05 by merel .)
Hello everbody,
attached the Modbus RTU direct connection profile of LG PMBUSB00A LG Modbus Gateway to logic machine incl all custom values..
Attached Files