Forum Replies Created
-
AuthorPosts
-
November 9, 2023 at 11:16 am in reply to: Unable to communicate with Device 1 because connection is not established #13606
yassor
ParticipantAll 8 MPPT are connected to the single modbus host and provide different data.
Each MPPT has different modbus address and ID in the host device. But all of them (8 MPPT) has unique register maps because it’s the same model.The conext has it’s modbus address 502 and lan address 192.168.1.100, and a unique register maps.
Each MPPT has a different modbus address and ID in the Conext device.
All MPPT has the same register maps beacause it’s same model.
Here is a Screenshot of that : https://filetransfer.io/data-package/ayo8WWzO#link
or
November 8, 2023 at 7:36 pm in reply to: Unable to communicate with Device 1 because connection is not established #13601yassor
ParticipantHi Mikhail,
i have the modbus register maps of the Conext device and i select these one for what i want to do, you can see it in hexadecimal or decimal here https://filetransfer.io/data-package/ayo8WWzO#link or here https://file.io/r9t4x6fIFTi9.
But here is my problem, i have like 8 MPPT (solar power controler) plug into the device, each MPPT has a modbus addresse like 10 for MPPT 1, 11 for MPPT2, or 30 for MPPT8, in the device.
And in the register maps of the device (conext), the MPPT register address has like 0x008C or 140 for the PV Power. How do i set the program to know that i want the PV power in the address of 140 of MPPT5 at modbus address of 15 for exemple ?
i’m really sorry for my english ! Feel free to ask if you need to know more about this
November 2, 2023 at 10:55 pm in reply to: Unable to communicate with Device 1 because connection is not established #13578yassor
ParticipantHi Mikhail,
I’ll ask the manufacturer if they can provide me that and i’ll give you the resultthank you for the help !!
November 1, 2023 at 12:22 pm in reply to: Unable to communicate with Device 1 because connection is not established #13576yassor
ParticipantHi Mikhail, i stayed up all the night to find this, and it worked with a litle problem, or big :
<?xml version=”1.0″ encoding=”utf-8″?>
<DeviceTemplate>
<Options>
<ZeroAddr>false</ZeroAddr>
<DecAddr>true</DecAddr>
<DefByteOrder2 />
<DefByteOrder4 />
<DefByteOrder8 />
</Options>
<ElemGroups>
<ElemGroup active=”true” dataBlock=”HoldingRegisters” address=”68″ name=”1″>
<Elem type=”ushort” readOnly=”false” isBitMask=”false” tagCode=”100001″ name=”Output solar power” />
</ElemGroup>
<ElemGroup active=”true” dataBlock=”HoldingRegisters” address=”94″ name=”2″>
<Elem type=”ushort” readOnly=”false” isBitMask=”false” tagCode=”100002″ name=”Output load (Sum XW)” />
</ElemGroup>
<ElemGroup active=”true” dataBlock=”HoldingRegisters” address=”98″ name=”3″>
<Elem type=”ushort” readOnly=”false” isBitMask=”false” tagCode=”100003″ name=”Output load (Sum XW)” />
</ElemGroup>
<ElemGroup active=”true” dataBlock=”HoldingRegisters” address=”344″ name=”4″>
<Elem type=”ushort” readOnly=”false” isBitMask=”false” tagCode=”100004″ name=”Batterie load/power” />
</ElemGroup>
</ElemGroups>
<Cmds />
</DeviceTemplate>is there any way to collecte or see the address of value in modbus device ? like here the Output of solar pannel is on address 344 and it took me many time to get it, and also somme has an incomprehensible value like 15 191. And my bigest problem now is that i don’t know whitch value correspond to voltage or current …
October 31, 2023 at 9:35 pm in reply to: Unable to communicate with Device 1 because connection is not established #13574yassor
Participanthi, i fixed some issue with the tag and create all of theme but some shows a weird value and some doesn’t show any value
there are the screenshot of line log and device :
https://drive.google.com/file/d/1qsKmiltGuPxQnrqmfATcl6txqFWdp6L0/view?usp=drive_link
https://drive.google.com/file/d/1vgftUoH68BDcXAe9OLMOjcMDZPz4WPI6/view?usp=drive_linkAnd also a xml code that i used to do the request : https://drive.google.com/file/d/1_wLKMYatgFaSsmYLhoo6L8jCY2aKVObD/view?usp=drive_link
October 31, 2023 at 1:01 pm in reply to: Unable to communicate with Device 1 because connection is not established #13571yassor
ParticipantHi Mikhail, here is the update that i made (don’t be mad i’m a noob) :
Line state :
[1] Test line
————-
Status : Normal
Communication channel : TCP client, connectedShared Data (1)
—————
Modbus.Templates = Dictionary of 1 templatesDevices (1)
———–
[1] Test device : NormalLine Log :
2023-10-31 15:52:50 Session with the device [1] Test device
No elements to request2023-10-31 15:52:51 Session with the device [1] Test device
No elements to request2023-10-31 15:52:51 Session with the device [1] Test device
No elements to requestand i use this template on LAN (the conext combox is the test device :
<?xml version=”1.0″ encoding=”utf-8″?>
<DeviceTemplate FormatVersion=”5″ Name=”ConextComBox” Descr=”Modbus and HTTP Device Template for Conext ComBox”>
<Connection Required=”true” />
<CommSettings>
<!– Modbus TCP Connection –>
<Connection Kind=”Tcp” Address=”192.168.1.100″ Port=”502″ /><!– HTTP Connection –>
<Connection Kind=”Http” Address=”http://192.168.1.100 ” Port=”80″ />
</CommSettings><!– Define Data Channels for Modbus Communication –>
<DataChannels>
<!– Read Holding Registers Example for Voltage –>
<DataChannel Name=”Voltage” DataType=”Float” Command=”MBReadHoldingRegisters” Address=”1″ Function=”3″ Offset=”100″ Quantity=”1″>
<DeviceChannelID>1</DeviceChannelID>
</DataChannel><!– Read Holding Registers Example for Current –>
<DataChannel Name=”Current” DataType=”Float” Command=”MBReadHoldingRegisters” Address=”1″ Function=”3″ Offset=”200″ Quantity=”1″>
<DeviceChannelID>2</DeviceChannelID>
</DataChannel>
</DataChannels><!– Define Data Channels for HTTP Communication –>
<DataChannels>
<!– HTTP Data Channel Example –>
<DataChannel Name=”Status” DataType=”String” Command=”Http” Address=”/status”>
<DeviceChannelID>3</DeviceChannelID>
</DataChannel>
</DataChannels>
</DeviceTemplate>October 31, 2023 at 12:02 pm in reply to: Unable to communicate with Device 1 because connection is not established #13568yassor
Participantis my device template okay ?
-
AuthorPosts