Jump to content

MQTT - Negative numbers


Recommended Posts

I'm new to UniLogic however seems to be very good software. 

I'm in the middle of a project where we are using UniLogic & MQTT to manage a heating/cooling system. So far i have been able to send and receive messages perfectly however I'm having some difficulty in sending a negative number from MQTT broker to  PLC ( MQTT client).
When it receives the message it sets the value to 0. I'm able to set the number box to a negative though the "Pop up" number pad on the touch screen. 

Does any one have any ideas on where i may be going wrong. 

Link to comment
Share on other sites

Hi NoamM, 

Thanks for the response. I am unable to create a new project as it needs all the MQTT bits creating also. However i have solved my Issue. For some reason if i use a INT16 type number field it works fine however if i try to use a INT32 number field it doesn't so i have just changed it to INT16 as that covers our requirement.  

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...