Forum Home › Forums › Communicating with Devices › Unable to communicate with Device 1 because connection is not established
- This topic has 16 replies, 3 voices, and was last updated 1 year, 10 months ago by
Mikhail.
-
AuthorPosts
-
October 29, 2023 at 7:35 pm #13565
yassor
ParticipantHi, i’m trying to connect the Conext Combox of Schneider electric to the rapid scada for better control, it’s a powerful communication and monitoring device for installers and operators of Conext solar systems. But i’m facing an error like : Unable to communicate with Device 1 “Conext Combox” because connection is not established
the device is in the LAN (wireless connection with a router) but will be upgrade to wan connection after trough a VPN
Here is what i did in my line communicator :
Tcpclient
Host =
TcpPort = 502
ReconnectAfter = 5
StayConnected = True
Behavior = Master
ConnMode = IndividualRequest sequences : address 201
Template : DevTemplate>
<Settings>
<ZeroAddr>false</ZeroAddr>
<DecAddr>true</DecAddr>
<DefByteOrder2/>
<DefByteOrder4/>
<DefByteOrder8/>
</Settings>
<ElemGroups>
<ElemGroup active=”true” tableType=”HoldingRegisters” address=”0″ name=”Group”>
<Elem name=”Elem 1″ type=”ushort” byteOrder=””/>
</ElemGroup>
</ElemGroups>
<Cmds/>
</DevTemplate>PS: I don’t have any knowledge about creating the templete
Line 1 “Conext Combox”
———————-
State : running
Action : 29/10/2023 22:34:31 Sending data to SCADA-ServerConnection Channel
——————
Type: TcpClientCustom Parameters
—————–
TransMode = TCPCommon Properties
—————–
Modbus.Templates = Dictionary of 1 templatesActive Devices
————–
1. Device 1 “Conext Combox” : errorOctober 30, 2023 at 8:52 am #13566Mikhail
ModeratorHi,
May be the controller’s IP address is not specified in the device settings. Please follow this article.October 31, 2023 at 12:02 pm #13568yassor
Participantis my device template okay ?
October 31, 2023 at 12:39 pm #13569Mikhail
ModeratorDevice template is not the cause of that error. You should check the device settings.
October 31, 2023 at 1:01 pm #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 9:35 pm #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
November 1, 2023 at 9:50 am #13575Mikhail
ModeratorHi,
Access to the files is denied. Could you share the files?November 1, 2023 at 12:22 pm #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 …
November 2, 2023 at 8:51 am #13577Mikhail
ModeratorHi,
Modbus register addresses and data types should be specified in the device documentation, or declared by a PLC developer. The Modbus protocol does not support providing the list of registers from a device.November 2, 2023 at 10:55 pm #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 3, 2023 at 10:43 am #13584Mikhail
ModeratorThere are Modbus scanner apps. They can read available integer registers, but do not provide info what a register means. And probably they are not efficient with floating point numbers.
November 8, 2023 at 7:36 pm #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 9, 2023 at 8:28 am #13603Mikhail
ModeratorHi,
Are all MPPTs connected to the single Modbus host and each MPPT uses different register addresses?
November 9, 2023 at 11:16 am #13606yassor
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 10, 2023 at 8:57 am #13607Mikhail
ModeratorOK.
Modbus address (unit ID) is specified in the device settings of Rapid SCADA. Modbus template would be the same. -
AuthorPosts
- You must be logged in to reply to this topic.