Unable to communicate with Device 1 because connection is not established

Forum Home Forums Communicating with Devices Unable to communicate with Device 1 because connection is not established

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #13565
    yassor
    Participant

    Hi, 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 = Individual

    Request 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-Server

    Connection Channel
    ——————
    Type: TcpClient

    Custom Parameters
    —————–
    TransMode = TCP

    Common Properties
    —————–
    Modbus.Templates = Dictionary of 1 templates

    Active Devices
    ————–
    1. Device 1 “Conext Combox” : error

    #13566
    Mikhail
    Moderator

    Hi,
    May be the controller’s IP address is not specified in the device settings. Please follow this article.

    #13568
    yassor
    Participant

    is my device template okay ?

    #13569
    Mikhail
    Moderator

    Device template is not the cause of that error. You should check the device settings.

    #13571
    yassor
    Participant

    Hi 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, connected

    Shared Data (1)
    —————
    Modbus.Templates = Dictionary of 1 templates

    Devices (1)
    ———–
    [1] Test device : Normal

    Line Log :
    2023-10-31 15:52:50 Session with the device [1] Test device
    No elements to request

    2023-10-31 15:52:51 Session with the device [1] Test device
    No elements to request

    2023-10-31 15:52:51 Session with the device [1] Test device
    No elements to request

    and 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>

    • This reply was modified 1 year, 11 months ago by yassor.
    • This reply was modified 1 year, 11 months ago by yassor.
    #13574
    yassor
    Participant

    hi, 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_link

    And also a xml code that i used to do the request : https://drive.google.com/file/d/1_wLKMYatgFaSsmYLhoo6L8jCY2aKVObD/view?usp=drive_link

    #13575
    Mikhail
    Moderator

    Hi,
    Access to the files is denied. Could you share the files?

    #13576
    yassor
    Participant

    Hi 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 …

    #13577
    Mikhail
    Moderator

    Hi,
    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.

    #13578
    yassor
    Participant

    Hi Mikhail,
    I’ll ask the manufacturer if they can provide me that and i’ll give you the result

    thank you for the help !!

    #13584
    Mikhail
    Moderator

    There 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.

    #13601
    yassor
    Participant

    Hi 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

    #13603
    Mikhail
    Moderator

    Hi,

    Are all MPPTs connected to the single Modbus host and each MPPT uses different register addresses?

    #13606
    yassor
    Participant

    All 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

    https://file.io/hAQYuLfaVxv8

    #13607
    Mikhail
    Moderator

    OK.
    Modbus address (unit ID) is specified in the device settings of Rapid SCADA. Modbus template would be the same.

Viewing 15 posts - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.