Jump to content

MQTT - Negative numbers


Richardc

Recommended Posts

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.