background image

Address

3X

(F04)

Address

4X

(F03)

Number of

measuring

channel

Data address

for measuring

channel

Data description

Attribute

Value

30656

40656

63

655

serial number SN-C63-B0-B1  

R

16-bit register

7.2. FRAME STRUCTURE OF MODBUS-RTU PROTOCOL

Device address (1-byte)

Function (1-byte) Data (n-bytes)

CRC-16Lo (1-byte)

CRC-16Hi (1-byte)

7.3. USED FUNCTIONS OF MODBUS-RTU PROTOCOL

Function code

Description

03 (0x03)

Readout of measurement value and measuring channel condition

04 (0x04)

Readout of measurement value and measuring channel condition

7.3.1. READOUT OF THE VALUES FROM THE MEASUREMENT CHANNELS

7.3.1.1. FUNCTION 0x03 / 0x04 – READOUT OF TEMPERATURE FROM  MEASURING 
CHANNEL [4X / 3X-REFERENCES]

Function 0x03 / 0x04 are used for readout of the value from measuring channel (sensor).

The mesurement value from measuring channel (sensor) is presented by a 16-bit register.

The registers with measuring value are in the format of 16-bit signed integer (C/C++ type short int).

The real value of temperature in °C (-55 – +125 [°C]) obtained from the read register according to below algorithm by use appropriate
factor value 

DW=100

 (table below):

Measured/ adjusted Value

Unit of

measurement

DW factor

value

Measured/ adjusted Value

Unit of

measurement

DW factor

value

Temperature

°C

100

PT1000 sensor's temperature

°C PT1000

10

Relative humidity

%RH

10

0-10VDC transducer

V U10

100

Lighting (natural or unnatural)

%Lux

10

0-20mADC transducer

mA A20

100

Sunlight

%SLux

10

Circuit  DS2401 serial number S/N

non

Temperature adjuster

(TA)°C

10

Percentage adjuster

(PA)%

10

Atmospheric pressure

hPa

10

CO2 concentration (in preparation)

CO2 ppm

1

PT100 sensor's temperature

°C PT100

10

PT500 sensor's temperature

°C PT500

10

Algorithm 1.  

Readout register is saved to regular type variable (float) and then divide it by the factor  

DW

// Fragment of code in C language (VS6.0) presenting above algorithm

short int siMeasurementReg;

float       fMeasurmentValue

......

fMeasurmentValue = (float)siMeasurementRegister;
fMeasurmentValue = fMeasurmentValue / 

DW

;

Algorithm 2. 

Readout register is saved to  regular type variable 16-bit (short int) and then divide by the factor  

DW

, received change

of the dividing it is a number of the hundredth parts of the measurement value.

// Fragment of code in C language (VS6.0) presenting above algorithm

short int siMeasurementReg;

div_t     div_MeasurmentValue;  

......
div_MeasurmentValue = div((int)siMeasurementRegister, 

DW

)

printf( "Total measurement value =  %d\n, hundredth parts of the measurement value = %d\n", 

div_MeasurmentValue.quot, div_MeasurmentValue.rem );

Query

Byte no

Designation

Size

Value [hex]

00

Module address

1 byte

01 [ 01 to F7]

01

Function code

1 byte

03 / 04

02

Registry address Hi

1 byte

00

03

Registry address Lo

1 byte

00

22

ADA-401WP

Summary of Contents for ADA-401WP

Page 1: ...User manual ADA 401WP 1 WIRE to MODBUS RTU Measuring Module 1 io_ada 401wp_v 1 24_en ADA 401WP Copyright 2001 2017 CEL MAR sp j...

Page 2: ...1 SENSOR DISPLACEMENT 13 5 3 2 2 SENSORS EXCHANGE 13 5 3 2 3 CHANGING TEMPERATURE SENSORS ORDER BY THE USE OF AAS PROCEDURE 13 5 3 3 SENSORS REMOVING 14 5 3 4 MEASUREMENT CHANNEL PARAMETERS CONFIGURAT...

Page 3: ...MEASURING CHANNEL 4X 3X REFERENCES 24 7 3 1 8 FUNCTION 0x03 0x04 READOUT OF CO2 CONCENTRATION MEASURING CHANNEL 4X 3X REFERENCES 24 7 3 1 9 FUNCTION 0x03 0x04 READOUT OF TEMPERATURE VALUE OF SENSOR PT...

Page 4: ...ly of the device if it is enabled This may result to short circuit and damage the device The device can not be used for applications that determine human life and health eg Medical 1 3 CE LABEL The CE...

Page 5: ...485 line is made on the basis of 600W protectors diodes and fuses To RS485 Bus can be connected 32 devices ADA 401WP Additional converter like ADA I1040 RS232 to RS485 or ADA I9140 USB to RS485 enabl...

Page 6: ...erter from power circuit device that generates large impulse interference such as transmitters contactors 3 1 ASSEMBLING ADA 401WP enclosure is adapted to assembly on TS 35 DIN35 rail To install shoul...

Page 7: ...Bd Should be used Line Termination resistor if the distance is over 1000m 9600Bd or 700m 19200Bd transmission Example connection of Rt connected to screw terminal block of RS485 422 interface are show...

Page 8: ...500 However when building the network remember that each sensor is a shortening of 0 5 meters and 100 meters of cable causes additional capacity load data line 5nF increasing signal distortion The rea...

Page 9: ...ecking RS485 interface Diagnosis 1 WIRE interface Diagnostic System Diagnostic Measurement channels Diagnostic 5 CONFIGURATION Configuration of ADA 401WP module should be made by the use of ADAUtil so...

Page 10: ...disable disable manufacturer setting Errors that are signalled by short sound errors of sensors searching errors of reading temperature from sensors errors in RS485 communication errors of CRC sensor...

Page 11: ...ingle reading sensors and Enable write TL and TH registers for DS18xxx are available from 2 005 firmware version and 1 7 1 0 version of ADAUtil 5 2 5 AUTOMATIC ASSIGN SENSORS TO MEASUREMENT CHANNELS A...

Page 12: ...the table below Table indications of sensors Sensor Unit of measurement Sensor Unit of measurement Temperature C voltage converter 0 10V DC V U10 Relative humidity RH current converter 0 2mA DC mA A2...

Page 13: ...iguration to module memory by pressing button Save Configuration to Module To the module memory will be saved only configuration of measuring channels which fields were marked in ping 5 3 2 3 CHANGING...

Page 14: ...hPa to 12 70hPa for digital atmospheric pressure sensors DES 216 AP DES 300 AP etc Enable activation this field will cues actualisation of measurement and status for channel deactivation will cues blo...

Page 15: ...in loaded file can be changed the module software Process of software update is visualized by ADAUtil in use of Progress Window and after proper update confirmed by correct message Fig 11 Choice of s...

Page 16: ...mode value visualization of temperature measurement with the 0 5 C accuracy transmission errors on the 1 WIRE bus restore factory default and reset register Set the SW1 microswitch as in the table bel...

Page 17: ...ter counter of Button the number of RST Reset button Register counter of Brown On specifies the number of the operating voltage drops below allowable voltage level After that can be set the switch sec...

Page 18: ...ble below SW1 1 SW1 2 OFF OFF Yellow LED will be OFF 6 3 DIAGNOSTIC OF MODBUS PROTOCOL After finishing diagnostic of measurement channels of each ADA 401WP module in installation can be started diagno...

Page 19: ...ters of channels 6 3 1 CONFIGURATION OF MODBUS RTU COMMUNICATION MODBUS Monitoring window has options for configuration of MODBUS RTU communication Module Address 1 247 enter the address of ADA 401WP...

Page 20: ...sation of measurement and status for channel deactivation will cues block actualisation Assigned activation this field will cues adding a sensor to the Channel Deactivation will cues that in case of n...

Page 21: ...condition R 16 bit register 30202 40202 1 201 Channel condition R 16 bit register 30203 40203 2 202 Channel condition R 16 bit register 30204 40204 3 203 Channel condition R 16 bit register 30204 4020...

Page 22: ...re C 100 PT1000 sensor s temperature C PT1000 10 Relative humidity RH 10 0 10VDC transducer V U10 100 Lighting natural or unnatural Lux 10 0 20mADC transducer mA A20 100 Sunlight SLux 10 Circuit DS240...

Page 23: ...during inquiry converting 03 CRC Lo 1 byte 04 CRC Hi 1 byte 7 3 1 2 FUNCTION 0x03 0x04 READOUT OF RELATIVE HUMIDITY FROM MEASURING CHANNEL 4X 3X REFERENCES Function 0x03 0x04 are used for readout of...

Page 24: ...CTION 0x03 0x04 READOUT OF CO2 CONCENTRATION MEASURING CHANNEL 4X 3X REFERENCES Function 0x03 0x04 are used for readout of the value from measuring channel sensor The value from measuring channel sens...

Page 25: ...erial number 40 0 402 Byte 4 of serial number 01 Bajt 5 of serial number 00 0 403 Byte 6 of serial number 00 Bajt 7 of serial number 23 Query of circuit serial number from channel nr 0 Byte no Designa...

Page 26: ...status Byte Hi from ver 1 008 firmware 0 Sensor in processing 0 No 1 Yes 0 Short circuit on the 1 Wire bus 0 No 1 Yes 1 Sensor detected 0 No 1 Yes 1 DS18xx circuit present on 1 WIRE bus 0 0 No 1 Yes 2...

Page 27: ...1 byte 83 84 02 Error code 1 byte 01 unknown function 02 unknown data address 03 unknown data value 04 unknown error while inquiry converting 03 CRC Lo 1 byte 04 CRC Hi 1 byte 8 SPECIFICATION TECHNICA...

Page 28: ...ng Degree of casing protection IP40 Degree of terminal protection IP20 Weight 0 10 kg According to standard DIN EN50022 DIN EN43880 Location during work Free Mounting method On the rail compliant with...

Reviews: