Skip to content

Can't connect with mosquitto (CPU313C and CP343-1 Lean) #8

@GerritMeu

Description

@GerritMeu

Hi, I'm using the hardware that has been used in the test of the maker.

Unfortunately, it does not connect. What can I do possibly wrong?

The IP-Address of the internal adapter has to be configured within the hardware configuration tool (HW Config), click on the PN-IO object
IP address is 192.168.0.1 of the CP module with subnet 255.255.255.0
The connection must be configured in Simatic Manager "Connections"
Has been made, see attachment
you must set the MQTT Functionblock parameter connectionID to the connection ID configured in Simatic Manager "Connections"
What is the connection ID? I used now the backplane connection, see attachment
you must set the MQTT Functionblock parameter cpLADDR to the address of the CP module. Example for a MQTT FB call in OB1 configured for external Ethernet (CP)usage: MQTT.DB71(net_config := DB_NET_CONFIG, connectionID := 1, cpLADDR := W#16#100);
I compiled the example and changed connectionID to 3 (because it is the backplane connection MPI address, is that correct?). I kept cpLADDR the same, because start address is 256 and that 16#100

Did I do something wrong?

Connections
StartAddress
MPIaddressAsConnectionID

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions