Use the PLC-Status Topic to Verify Connection Status
4 min
Notes:
- When publishing structured data such as JSON, you must convert to a byte array (string) first. To do this in a flow, you can use the json node.
The PLC-status topic is used to verify the connection of DeviceHub devices.
Video
User Scenario
You'd like to verify the connection status of a PLC to Litmus Edge from a remote location.
Set up and Use the PLC-Status Topic
To set up and use the PLC-status topic:
- Follow the steps to Connect a Device. For this user scenario, a Simulator Generator device is used.
- Navigate to DeviceHub.
- Navigate to Flows Manager.
- Double-click the DataHub Subscribe node. The Edit DataHub Subscribe node dialog box appears.
- In the Topic field, paste the PLC status topic you copied in step 3.
- If needed, configure the Datahub Subscribe connection. See the Step 3: Configure Connector Nodes section in Create a Flow to learn more.
- Click Done, and then click Deploy.
The rest of the payload displays the following information from the device:
- Data type: The data type used to verify the PLC status.
- Value: The bit value that displays the status of the device. The value 0 means the device is on/connected.
- Device Name: The device name you configured in Litmus Edge.
- Timestamp: Date and time data for the PLC status message.
- Device ID: The device ID for the DeviceHub device generated in Litmus Edge.
- Description: The default description for the PLC status topic (Poll Register).





