How to use sparkplug B

Hello, I’m trying to learn MQTT Sparkplug B, so I’m trying to test it out on my personal home project. But I also want to learn how it’s done in the industry. So, I want to control a PLC using sparkplug B, HiveMQ and Ignition Maker Edition.

Simplified case: I want to control temperature using the PLC. The PLC publishes the measured temperature every time the value is changed, that works okay. But I also want the setpoint to be published, but I also want it to be able to change it from Ignition and Node red. How is this done? As I understand, 2-way communication is not possible? How is this done in the industry?

Thanks

1 Like

Hello @Garrian ,

Thank you for the outreach, and welcome to the HiveMQ Community!

It sounds like you are looking to get started working with Sparkplug B and HiveMQ in order to interact with a PLC device.

We would be happy to assist!

In order to provide some further details and suggestions, could I please have you confirm the environment you are currently working with - namely the PLC, the device we are looking to control, and a general summary of the configuration you are looking to implement. This will allow us to review the details of each component in the implementation and provide more accurate suggestions.

I would also like to point you towards our MQTT/Sparkplug Essentials series here, which provides some great introductory information for those new to the protocol!

Best,
Aaron from the HiveMQ Team