background image

INST No. INE-479-P0

 

Software version 1.0  

 

-7- 

 

4.4 Data department 

4.4.1 Data configuration 

The configuration of the data differs by the function code. 
The demanded data from the master is configured of the code number (Relative number that 
calculates it from [4.4.2 Reference No.]) and data number etc. to the reading and writing of the 
object data. The answer from the slave is configured of the demanded data etc. 
The basis data of MODBUS is all the integers of 16 bits and the existence or nonexistence of the 
mark is prescribed at each data. 
 

4.4.2 Reference No. 

"The reference number" of the list shown below is assigned to the data inside IRMA series infrared 
multiple-constituents analyzer detector unit Model for IRMA

This number is required to the reading and writing of data.

 

It is classified like the list shown below by the kind of data.

 

The number appointment in the message is "Relative number" that corresponds to each reference 
number.

 

 

Kind of data 

Reference number

Relative number 

Digital setting value 

1 to 10000 

Reference number: 1 

Digital input data 

10001 to 20000 

Reference number: 10001 

Analog input data   

30001 to 40000 

Reference number: 30001 

Analog setting value 

40001 to 50000 

Reference number: 40001 

 
 
 
 

4.5 Error check 

The error check of the communication frame uses CRC-16. 

 

4.5.1 Calculation of CRC-16 

The communication method of the CRC system divides the information that should be sent with the 
generation polynomial expression and add the remainder behind information. 
The generation polynomial expression is as follows. 

 

Calculate the data from the slave address to last data with the following procedure.

 

1) Initialize the data of CRC-16 (It makes X): (=FFFFH) 
2) Exclusive OR of data 1 and X: (E

X

-OR) 

 X   

3) Shift X to the right 1 bit 

 X 

   

 

4) If a carry comes out, take A001H and Ex-OR. Move to 5) if a carry does not come out. 
5) Repeat the above 3) to 4) until it shifts 8 times. 
6) Next data and X of Ex-OR 

 X 

7) With from 3) to 5) same. 
8) Repeats it to the last data. 
9) The message is made in order to the upper class from the subordinate class of calculated 16 bits 

data (X). 

 
 
 

The relative number of the measured value (temperature data) of "reference number

30011" becomes "10".

 

4. MODBUS protocol-Message 

The data of an error check becomes            , because CRC-16 becomes
1241H in the case that data is            .

 

02H 07H

41H 12H

R e m a r k s

1 + X

2

+ X

15

+ X

16

R e m a r k s

Содержание IRGMEG2 Series

Страница 1: ...EG2 series For Infrared multiple constituents analyzer Operator interface display unit Model IRGMEG2S MODBUS Protocol Communications Store this manual in a readily accessible location for future reference This manual should be provided to the end user ...

Страница 2: ...ion code of an analogue setting value 12 5 3 1 Reading of an analogue setting value 12 5 3 2 Writing of an analogue setting value 12 5 3 3 Writing of a plural analogue setting value 13 5 3 4 Reference table of an analogue setting value 13 5 4 Function code of a digital setting value 16 5 4 1 Reading of a digital setting value 16 5 4 2 Writing of a digital setting value 17 5 4 3 Writing of a plural...

Страница 3: ... Mirror type 51 Multi constituents NIR 52 Multi constituents Thin film Infrared 6000 series Multiple constituents meter Fiber type 61 Multi constituents 7000 series Thickness coating thickness meter Mirror type 71 Thickness coating thickness 72 Thin film coating thickness 8000 series Thickness coating thickness meter Fiber type 81 Thickness coating thickness Number of wavelength and Number of cons...

Страница 4: ...ations Blank Standard V Complying with CE Item Specifications Communication method Half duplex communication system Communication protocol MODBUS protocol RTU mode Communication speed 19200 9600 bps switching Start bit length 1 bit Data bit length 8 bits Parity bit Even odd none switching Stop bit length 1 bit 2 bits switching Transmission code Binary Error check CRC 16 Data transmission procedure...

Страница 5: ...cables suiting to the applicable outer diameter of the cable gland otherwise waterproofing of the detector unit may deteriorate Tighten the cable glands with the nuts and fix the terminal board cover securely after wiring 3 Connections Remarks Reference Caution P P OUT OUT SA SB SG DI COM D OCOM IN IN 24VDC 4 20mADC RS 485 DIGITALIN DIGITALOUT 4 20mADC P P OUT OUT SA SB SG DI C O M D O COMIN IN 24...

Страница 6: ...series exclusive use cable Detector IRMA series side Communication interface converter K3SC 10 side Personal computer side Terminal Name Terminal No Terminal Name Terminal No Terminal Name Terminal No SA 6 SD 5 SD 2 SB 7 RD 6 RD 3 SG 8 SG 3 SG 5 SDB 12 SDA 9 SG 7 3 2 2 In case of using a cable that customer made with a self Detector IRMA series side Communication interface converter K3SC 10 side P...

Страница 7: ... unit RS 422A Terminal board on the rear panel of this unit RS 485 High order side terminals High order side terminals High order side terminals 20 22 19 21 23 SD RD SG RD SD SG 19 20 21 22 23 SDA RDA SG SG SDB RDB RDA RDB SDA SDB 20 21 22 19 23 SA SB SG RA RB SG IRGMEG2 IRGMEG2 V complying with CE Comm output Comm output AL2 low alarm output AL1 high alarm output Self diagnosed abnormal Alarm out...

Страница 8: ... detector calibration curve 3 Digital setting value Smoothing Real switching Preset output ON OFF etc List of function code Code Function Unit Reference chapter 04 Reading of an analogue input data 16 bits 5 2 1 03 Reading of an analogue setting value 16 bits 5 3 1 06 Writing of an analogue setting value 16 bits 5 3 2 16 Writing of a plural analogue setting value 5 3 3 01 Reading of a digital sett...

Страница 9: ...1 to 20000 Reference number 10001 Analog input data 30001 to 40000 Reference number 30001 Analog setting value 40001 to 50000 Reference number 40001 4 5 Error check The error check of the communication frame uses CRC 16 4 5 1 Calculation of CRC 16 The communication method of the CRC system divides the information that should be sent with the generation polynomial expression and add the remainder b...

Страница 10: ...4 04H Continuously analogue input data 2 bytes 16 bits is read out only the designated number from the designated No The data of the answer message is configured with arranged at the order of the number that was divided to an upper class 8 bits and subordinate class 8 bits Refer to 6 2 Answer at the time of abnormality about the answer at the time of abnormality The example of an answer is similar...

Страница 11: ... moisture type 2000 series Moisture meter Fiber type 21 General purpose type 22 High moisture type 5000 series Multiple constituents meter Mirror type 51 Multi constituents NIR 52 Multi constituents Thin film Infrared 6000 series Multiple constituents meter Fiber type 61 Multi constituents 7000 series Thickness coating thickness meter Mirror type 71 Thickness coating thickness 72 Thin film coating...

Страница 12: ... 3 F Subordinate class 16 bits 30021 Upper class 16 bits 30022 Measured value Calculation mode 3 X Absorbance of Calculation mode 3 F Subordinate class 16 bits 30023 Upper class 16 bits 30024 Measured value Constituent 4 Constituent value Measured value of Constituent 4 F Subordinate class 16 bits 30025 Upper class 16 bits 30026 Measured value Calculation mode4 X Absorbance of Calculation mode 4 F...

Страница 13: ... F Subordinate class 16 bits 30055 Upper class 16 bits 30056 Wavelength 3 data F Subordinate class 16 bits 30057 Upper class 16 bits 30058 Wavelength 4 data F Subordinate class 16 bits 30059 Upper class 16 bits 30060 Wavelength 5 data F Subordinate class 16 bits 30061 Upper class 16 bits 30062 Wavelength 6 data F Subordinate class 16 bits 30063 Upper class 16 bits 30064 Wavelength 7 data F Subordi...

Страница 14: ...ta L L 3 66H CRC H 4 CFH CRC L 4 C4H CRC H 4 33H 1 Start No Relative No is Reference No 40001 2 The data number is the byte number of data It is not the demand number 3 The reading order is an upper class H 8 bits the subordinate class L 8 bits 4 The reading order is the subordinate class L 8 bits an upper class H 8 bits a0 123 45 Example of Floating point 42F6E666 Same answer as a command message...

Страница 15: ...009 Constituent 3 Time constant 0 0 to 99 9 0 to 999 0 2 2 I 10 times value sending receiving 40010 Calibration curve No 1 to99 1 000 I 40011 Decimal place displaying 0 to 4 1 I 40012 Constituent 4 Time constant 0 0 to 99 9 0 to 999 0 2 2 I 10 times value sending receiving 40014 Constituent No displaying 0 to 4 1 I 40015 Analog output Contact output High Low alarm Constituent No 1 to 4 1 I Example...

Страница 16: ...bration curve coefficient a6 0 to 99999 0 0000 F Subordinate class 16 bits 40036 Upper class 16 bits 40037 Calibration curve coefficient a7 0 to 99999 0 0000 F Subordinate class 16 bits 40038 Upper class 16 bits 40039 Calibration curve coefficient a8 0 to 99999 0 0000 F Subordinate class 16 bits 40040 Upper class 16 bits 40041 Calibration curve coefficient a9 0 to 99999 0 0000 F Subordinate class ...

Страница 17: ... class 16 bits High limit 44290 to 44298 Setting data for the calibration curve output limit values of Ch 2 to Setting data for the calibration curve output limit values of Ch n Head number n 1 9 44281 45163 to 45171 Setting data for the calibration curve output limit values of Ch 99 45181 Sample temperature correction Enable Disable 0 1 0 I 0 OFF 1 ON 45182 Upper class 16 bits 45183 Sample temper...

Страница 18: ...ltiples an unnecessary bit becomes 0 Example Program the digital setting value reference number 1 of slave 1 to ON RTU mode Master Device Device Master Upper class as personal IRMA series Slave address 01H Slave address 01H Function code 01H Function code 01H Start No H 1 00H Data number 01H Start No L 1 00H First 8 data 01H The number H 00H CRC L 90H The number L 01H CRC H 48H CRC L FDH CRC H CAH...

Страница 19: ...lue No H 1 00H Setting value No H 1 00H Setting value No L 1 00H Setting value No L 2 00H Setting condition H FFH Setting condition H 2 FFH Setting condition L 00H Setting condition L 2 00H CRC L 8CH CRC L 3 8CH CRC H 3AH CRC H 3 3AH 1 Setting value No Relative No is Reference No 1 2 The writing order is an upper class H 8 bits the subordinate class L 8 bits 3 The writing order is the subordinate ...

Страница 20: ...k between the master and slave Loop back test Function code 08 08H Check the communication between the master and slave Answer for according to the diagnosis code that was designated This device does the return check that transmits reception data as it is and the diagnosis code is 0000H fixation 5 MODBUS protocol Function code Example Carrying out the loop back test to slave 1 RTU mode Master Devi...

Страница 21: ...eived parameter is exceeding 64 bytes Communication speed Time interval of data 9600bps 10 m sec 19200bps 5 m sec Program the time interval of the data configures 1 message within the time of the table shown below In the case that the slave address is 0 at the writing function the implementation of the message is carried out if there is not an error in the message However it answers none Also it b...

Страница 22: ...ode Contents of error Cause of an error 01H Function code defective In case of receiving the no prescribed function code 02H Relative No Reference No defective In case of receiving the no prescribed start No or setting value No 03H The data number defective In case the number of the transmitting data that answers to the received message is exceeding the number that prescribed 11H Out of the settin...

Страница 23: ...e 81 3 3956 2171 Facsimile 81 3 3956 0915 Web site http www chino co jp INE 479 P0 Jan 06 IRMA IRGMEG2 series For infrared multiple constituents analyzer operator interface display unit Model for IRGMEG2S MODBUS Protocol Communications Printed in Japan ...

Отзывы: