Iris _

Pixsys Forum

everybody's effort for the same goal

convert code 1000 modbus

Post Reply
johnsly12
Posts: 4
Joined: 10/10/2024, 18:02

convert code 1000 modbus

Post by johnsly12 »

Hello
I have an ATR144 system.
when I send the code 1000
I receive the data but how do I convert the 4 data into decimal digits?
Pixsys tecnico 6
Moderatore
Posts: 1201
Joined: 12/09/2016, 14:49

Re: convert code 1000 modbus

Post by Pixsys tecnico 6 »

Hi,
Could you explain your application?
Is the ATR144 set up as a Modbus master or slave?
Thank you.

Best regards
johnsly12
Posts: 4
Joined: 10/10/2024, 18:02

Re: convert code 1000 modbus

Post by johnsly12 »

Hello

I have to develop a program (delphi) to read the temperature value of an ATR144
the order is made via the ATR144's RS485 link.

in my code I send the instruction 1000

I receive all the data, everything is ok but I can't interpret the 4 data received to calculate the value with tenths.

EX. 1,124 ,112 ,32.

Thank you for your reponse
Pixsys tecnico 6
Moderatore
Posts: 1201
Joined: 12/09/2016, 14:49

Re: convert code 1000 modbus

Post by Pixsys tecnico 6 »

Hi,
The ATR144 provides an integer value (-32768/32767), so your program will have to handle the decimal point.
If in the ATR144's display you read a value of “1,351” (3 decimal points) in Modbus address “1000” you will read it integer, then “1351” (without decimal points), so it will be your program that will have to handle the decimal points again.

best regards
johnsly12
Posts: 4
Joined: 10/10/2024, 18:02

Re: convert code 1000 modbus

Post by johnsly12 »

Thank you for quick answer, but I know I have to correct the comma my problem is how to interpret the 4 data.

Example data received:

01-124-112-32

How do you put it in numbers?
johnsly12
Posts: 4
Joined: 10/10/2024, 18:02

Re: convert code 1000 modbus

Post by johnsly12 »

All it's ok... thank you for your help.-)
miganpoll
Posts: 2
Joined: 03/07/2024, 9:18

Re: convert code 1000 modbus

Post by miganpoll »

johnsly12 wrote: 11/10/2024, 16:35 All it's ok...escape road thank you for your help.-)
Can I sent PM to you? I have a bit problem in the similar case.
Pixsys tecnico 1
Moderatore
Posts: 1702
Joined: 29/10/2010, 10:09
Contact:

Re: convert code 1000 modbus

Post by Pixsys tecnico 1 »

If you need a deep support, please write us to support@pixsys.net
Post Reply