Page 2
Contents Introduction 1 General 1.1 RS-232C communications interface 1.2 RS-485 communications interface 1.3 Ethernet 1.4 MODBUS protocol 2 Communications specifications 2.1 Serial communications 2.2 Ethernet communications 3 Confirmation of communications specifications and settings 3.1 Switch settings 3.2 Settings from this unit 4 Connections 4.1 Connection precautions 4.2 Communications cables...
Page 3
CHINO sales agent. (3) CHINO Corporation is not responsible for any results influenced by the operation of this communications interface, irrespective of item (2) above.
Page 4
Most of the RS-232C communications interfaces are being used in PCs and industrial instruments such as the KR2000 series graphic recorder, and do not completely conform to this standard. Signal wire numbers and connectors of the RS-232C communications interface may differ from those specified in the standard.
Page 5
2 Communications specifications 2.1 Serial communications Specifications of the serial communications of this unit are as follows. * mark shows factory default settings. Start-stop synchronization system Half-duplex (polling selecting system) Protocol: MODBUS protocol Transmission mode: RTU mode* or ASCII mode Transmission speed: 19200 bps or 9600 bps* selectable Start bit: 1 bit Data length: 7 bits or 8 bits* (depended on transmission mode)
Page 6
2.2.1 Establishment of TCP connection When the upper communications between a PC (the side which requires data: Client) and this unit (the side of which data is required: Server) is performed, it starts from establishing a TCP connection according to the following procedures first.
Page 7
2.2.3 Disconnection of TCP connection The communication flow at the disconnection of the TCP connection is as follows. 1. The PC transmits the TCP packet with the FIN flag set to this unit. 2. When this unit receives the FIN packet, it transmits the TCP packet the ACK flag set to the PC. 3.
Page 8
3 Confirmation of communications specifications and settings 3.1 Switch settings When the serial communication is used, before installations and connections, select the RS-232C or RS-485 with the selector switch placed the upper part of this unit. Selector switch Rear side 232C Upper side of this unit...
Page 9
3.2.2 Settings for upper communications Push [MENU] key, select [System settings] from the setting menu displayed, and then press [ENTER] key. From the menu displayed here, select [Upper communications] and push [ENTER] key to display the setting screen shown below. Set each item if desired. Port number: Specify the port number used in the upper communications* via Ethernet.
Page 10
4.1.2 Total extension of RS-485 communications cable is up to 1.2km. The wiring distance between each instrument is arbitrary, but the total extension length of cable is within 1.2km. (Line converter the termination unit of KR2000 series graphic recorders) Line converter KR2000 Total extension of cable: Within 1.2km...
Page 11
KR2000 series graphic recorder connected at the final end. (For details, see Section 4.4) [A general metal film resistor can be used. The resistor (sold separately) is available at CHINO.] However, there are also environments where a communication error cannot take place easily without the termination resistor attached 4.1.6 Number of this unit connectable...
Page 12
Use communications dedicated cables. Communications dedicated cables (sold separately) are available at CHINO. 4.2.1 Communications cables for RS-232C (1) Connections between a PC (9 pins) and the KR2000 series recorder, and between a PC (9 pins) and a line converter Cable 9-pin connector...
Page 13
4.2.2 Communications cables for RS-485 Connections between a line converter and the KR2000 series recorder, and between the KR2000 recorder and the KR2000 recorder Cable Crimp type ring terminals RS-485 with crimp type ring terminals KR2000 Line converter: RDA RDB SG...
Page 14
4.4 RS-485 connections This paragraph describes the connections of the RS-485 communications interface to a PC via the line converter (Model SC8-10: sold separately). Since the line converter and the PC use three control signals of Send, Receive and Signal ground only, the wiring processing inside the connector is required in the same way as in RS-232C connections.
Page 15
5 MODBUS protocol Precautions and basic procedure of communications Precautions 1. As the control signal wire is not used, pay attention to retransmit a command. The serial interface of this instrument communicates without using control wire. Pay attention to retransmit a command as reception defects may occur depending on the status of this instrument.
Page 16
5.1 Transmission mode of message There are 2 types of the RTU (Remote Terminal Unit) mode and the ASCII mode. (Table 1. Comparison of RTU mode and ASCII mode) Item RTU mode ASCII mode Transmission code Binary ASCII Vertical direction Parity Error detection (Error check)
Page 17
5.2 Data time interval RTU mode: Less than 28-bit hours (2.8msec at 9600bps, 1.4msec at19200bps) ASCII mode: Less than 1 second When a message is sent, be careful that the time interval of data configuring one message does not exceed the time shown above.
Page 18
1. Digital settings value Parameters to change functions including record ON/OFF, marker text record etc. 2. Digital input data Data of event activation status etc. Various setting information. 3. Analog settings value Numeric values are in the range of 16 bits (-32763 to 32767). 4.
Page 19
(Table 4. Reference numbers) Reference Corresponding Reference Data type Parameter number function code table Key lock 01 (READ) Digital setting value Record ON/OFF 1 ~ 20 05 (WRITE) Para. 5.7.1 Marker text writing Digital input data Event status 10101 ~ 10800 02 (READ) Para.
Page 20
5.3.5 Error check The error check of transmission frame differs depending on the mode. RTU mode: CRC-16 ASCII mode: LRC 5.3.5.1 Calculation of CRC-16 The CRC method divides the information to be sent by a generating polynomial and transmits it by attaching the calculated remainder to its end.
Page 21
Reference: CRC-16 calculation program (C language) /***** CRC-16 calculation program *****/ #include <stdio.h> #include <conio.h> void main(void){ /*** Internal variable declaration ***/ unsigned iLoopCnt; /* Loop counter unsigned short usData; /* Input data unsigned short usCrcData; /* CRC-16 data unsigned short usErrChkData;...
Page 22
5.3.5.2 LRC calculation method The data from a slave address up to the end of the data are calculated by the following procedure. 1) A message is created in the RTU mode. 2) The data from the start (slave address) to the end are added. →X 3) The complement (Bit inversion) of X is taken.
Page 23
5.4 Message creation A message is consisted of 1) Slave address, 2) Function code, 3) Data part and 4) Error check code. (Refer to Para. 5.3) The number of data that can be read once is within the following range. Transmission mode Number of data ASCII...
Page 24
5.5 Function Code The response for each function is given below. (Refer to <Table 2 Function code table> in Para. 5.3.2) Note) Refer to 5.6 for responses for abnormality. 5.5.1 Reading of digital setting values (Reading of coil status) [Function code:01 (01H)] “Digital (ON/OFF) setting values with the continuous numbers”...
Page 25
<RTU mode> Master→Instrument Instrument→Master (Normal) Slave address Slave address First 8 data Function code Function code (05H) Start No. (H) Data pieces 0 0 0 0 0 1 0 1 End No. (L) First 8 data Reference number 10112 10109 Number of data (H) 00H CRC (L) Number of data (L) 04H...
Page 26
5.5.4 Reading of analog input data (Reading of input register contents) [Function code: 04 (034)] “Analog input data (2 bytes: 16 bits) with the continuous numbers” are read for the number of data specified from the start number specified. The data is arranged by splitting into higher 8 bits and lower 8 bits in numerical order and configures a data of the response message.
Page 27
5.5.6 Writing of analog setting values (Writing of single maintenance resister) [Function code: 06 (06H)] The analog setting value specified is put into the value specified. Example) Setting of the sensor correction value of Channel 1 of the slave 2 to 20 (Setting of the analog setting value reference number 40111 of the slave 2 to “20”.) <RTU mode>...
Page 28
5.5.8 Writing multiple analog setting values (Writing to multiple maintenance registers) [Function code: 16 (10H)] The specified number of the analog setting values from the start number specified is put into the values specified. The data is arranged and sent by splitting into higher 8 bits and lower 8 bits in numerical order. Example) Setting of the range high/low limit values and the decimal point of Channel 1 of the slave 2 to 0.0 ~ 100.0 (Set ting of 3 analog setting value reference numbers from 40104 to 40106 of the slave 2)
Page 29
5.6 Process during abnormality The followings are responses when there is an error in the message content from the master. 5.6.1 No response In the following cases, the message is ignored and no response is performed. 1) When a transmission error (overrun, framing, parity, CRC, or LRC) is detected in the message 2) When the slave address in the message is not ones own address 3) When the data interval of the message is long RTU mode...
Page 30
The error codes are as follows. Error code Content Defect of a function code When the function code not defined is received Defect of a Relative number (Reference number) When the received starting number or the received setting value number are other than defined Defect of the number of data In case of any of the followings 1) When the received function code and the number of data do not match...
Page 31
5.7 Reference table 5.7.1 Digital setting values R/W … R: READ, W: WRITE Reference Applied function Content Detail number code 0 (0000h) = Keylock disabled 1 (FF00h) = Keylock enabled Keylock The figures shown in parentheses are for the function code 05. Error code: 01H, 02H, 03H, 11H, 12H 0 (0000h) = Record OFF 1 (FF00h) = Record ON...
Page 32
5.7.2 Digital input data Reference Applied function Content Detail number code Status expression in 2 bits 10101 00: Measured data CH1 status 1 10102 01: Calculated data Error code: 01H, 02H, 03H Status expression in 4 bits 0000: Normal data 10105 0001: +over range 10106...
Page 33
Reference Applied function Content Detail number code 10197 ~ From CH7 event level 1 to CH7 event Same as CH1 10208 level 4 activated 10213 ~ From CH8 event level 1 to CH8 event Same as CH1 10224 level 4 activated 10229 ~ From CH9 event level 1 to CH9 event Same as CH1...
Page 34
Reference Applied function Content Detail number code 10565 ~ From CH30 event level 1 to CH30 event Same as CH1 10576 level 4 activated 10581 ~ From CH31 event level 1 to CH31 event Same as CH1 10592 level 4 activated 10597 ~ From CH32 event level 1 to CH32 event Same as CH1...
Page 35
5.7.3 Analog input data 1) Reading of instrument specifications R/W … R: READ, W: WRITE Applied function Reference Content Detail code number 30001 Instrument name character 1, 2 ASCII ”KR” 30002 Instrument name character 3, 4 ASCII “21” ASCII “60”: 6 points, “20”: 12 30003 Instrument name character 5, 6 points...
Page 36
2) Reading of measured data R/W … R: READ, W: WRITE Reference Applied function Content Detail number code DATA: -30000 ~ 30000 32767: High limit over flow -32767: Low limit over flow 32765: RJ error 30101 CH1 Measured data 32766: Burnout -32765: Invalid data 32764: Calculation error Error code: 01H, 02H, 03H, 12H...
Page 37
Reference Applied function Content Detail number code 30138 CH19 decimal point/status Same as CH1 30139 CH20 measured data Same as CH1 30140 CH20 decimal point/status Same as CH1 30141 CH21 measured data Same as CH1 CH21 decimal point/status Same as CH1 30142 30143 CH22 measured data...
Page 38
Reference Applied function Content Detail number code CH42 measured data Same as CH1 30183 CH42 decimal point/status Same as CH1 30184 30185 CH43 measured data Same as CH1 CH43 decimal point/status Same as CH1 30186 30187 CH44 measured data Same as CH1 30188 CH44 decimal point/status Same as CH1...
Page 39
5.7.4 Analog setting values 1) Common parameters (Date/time, upper communications, etc.) Reference Applied function Content Detail number code Year, ASCII 2 digits 40001 Date/time setting 1, 2 00: Year 2000 ~ 99: Year 2099 Error code: 01H, 02H, 03H, 11H, 12H Month, ASCII 2 digits 40002 Date/time setting 3, 4...
Page 41
2) Setting parameters for each channel (Note) Writing of multiple setting values across channels becomes an error. (Error code 12H) R/W … R: READ, W: WRITE Reference Applied function Content Detail number code ASCII code 2 digits (A space code can be used in the first digit.) CH1 ~ CH12: 01(13.80mV) ~ 80(Pt-Co) 40102...
Page 42
Reference Applied function Content Detail number code ASCII, Shift JIS 2 digit CH1 unit 3, 4 40120 Error code: 01H, 02H, 03H, 09H, 11H, 12H ASCII, Shift JIS 2 digit CH1 unit 5, 6 40121 Error code: 01H, 02H, 03H, 09H, 11H, 12H ASCII 1 digit, Low 1 byte - 00H fixed 40122 CH1 unit 7...
Page 43
Reference Applied function Content Detail number code ASCII 2 digits Reference channel at difference alarm 40137 CH1 reference channel 1 No. 01 ~ 44 Error code: 01H, 02H, 03H, 09H, 11H, 12H 0 ~ 30000 * The scale decimal point is used for the 40139 CH1 dead band 1 decimal place.
Page 44
Reference Applied function Content Detail number code ASCII2 桁 Reference channel at difference alarm 40153 CH1 reference channel 3 No. 01 ~ 44 Error code: 01H, 02H, 03H, 09H, 11H, 12H 0 ~ 30000 * The scale decimal point is used for the 40155 CH1 dead band 3 decimal place.
Page 45
Reference Applied function Content Detail number code 0 ~ 3, At parallel scale 0 ~ 7 (0 ~ 3: First CH1 range position 40171 zone, 4 ~ 7: Second zone) (Area belonged) Error code: 01H, 02H, 03H, 09H, 11H, 12H 0: Not used, 1: Used 40176 Calculation ON/OFF...
Page 54
Reference Applied function Content Detail number code 45153 ~ E-mail transfer Same as E-mail transfer condition 1 (45141 ~ 45156 condition 4 45144) 45157 ~ E-mail transfer Same as E-mail transfer condition 1 (45141 ~ 45160 condition 5 45144) 45161 ~ E-mail transfer Same as E-mail transfer condition 1 (45141 ~ 45164...
Page 55
Reference Applied function Content Detail number code E-mail transfer ASCII 2 digits 45192 address 1 Error code: 01H, 02H, 03H, 09H, 11H, 12H 23, 24 E-mail transfer ASCII 2 digits 45193 address 1 Error code: 01H, 02H, 03H, 09H, 11H, 12H 25, 26 E-mail transfer ASCII 2 digits...
Page 56
Reference Applied function Content Detail number code Bit correspondence E-mail attached data Bit 0: Address 1 ~ Bit 7: Address 8 45314 0: Not attached, 1: Attached Error code: 01H, 02H, 03H, 09H, 11H, 12H Bit correspondence E-mail attached data Bit 0: Address 1 ~ Bit 7: Address 8 45315 0: Not attached, 1: Attached...
Page 57
Reference Applied function Content Detail number code Bit correspondence E-mail attached data Bit 0: Address 1 ~ Bit 7: Address 8 45326 CH16 0: Not attached, 1: Attached Error code: 01H, 02H, 03H, 09H, 11H, 12H Bit correspondence E-mail attached data Bit 0: Address 1 ~ Bit 7: Address 8 45327 CH17...
Page 58
Reference Applied function Content Detail number code Bit correspondence E-mail attached data Bit 0: Address 1 ~ Bit 7: Address 8 45338 CH28 0: Not attached, 1: Attached Error code: 01H, 02H, 03H, 09H, 11H, 12H Bit correspondence E-mail attached data Bit 0: Address 1 ~ Bit 7: Address 8 45339 CH29...
Page 59
Reference Applied function Content Detail number code Bit correspondence E-mail attached data Bit 0: Address 1 ~ Bit 7: Address 8 45350 CH40 0: Not attached, 1: Attached Error code: 01H, 02H, 03H, 09H, 11H, 12H Bit correspondence E-mail attached data Bit 0: Address 1 ~ Bit 7: Address 8 45351 CH41...
Page 65
4) Group parameter Reference Applied function Content Detail number code Group 1 ASCII, Shift JIS 2 digits 46001 Display group Error code: 01H, 02H, 03H, 09H, 11H, 12H name 1, 2 Group 1 ASCII, Shift JIS 2 digits 46002 Display group Error code: 01H, 02H, 03H, 09H, 11H, 12H name 3, 4 Group 1...
Page 66
Reference Applied function Content Detail number code Group 1 Bit 0 ~ 7 Display channel allocation: 1 ~ 44 Display channel 0: Not set 46015 allocaton/Display_ Bit 8 ~ 9 Trend line diameter 0: 1, 1: 3, 2: 5 Nondisplay/Trend Bit 12 Display_Nondiaplay 0: Nondisplay, 1: Display line diameter 5 Error code: 01H, 02H, 03H, 09H, 11H, 12H...
Page 67
Reference Applied function Content Detail number code Group 1 Bit 0 ~ 7 Display channel allocation: 1 ~ 44 Display channel 0: Not set 46024 allocaton/Display_ Bit 8 ~ 9 Trend line diameter 0: 1, 1: 3, 2: 5 Nondisplay/Trend Bit 12 Display_Nondiaplay 0: Nondisplay, 1: Display line diameter 14 Error code: 01H, 02H, 03H, 09H, 11H, 12H...
Page 68
Reference Applied function Content Detail number code Group 1 Bit 0 ~ 7 Display channel allocation: 1 ~ 44 Display channel 0: Not set 46033 allocaton/Display_ Bit 8 ~ 9 Trend line diameter 0: 1, 1: 3, 2: 5 Nondisplay/Trend Bit 12 Display_Nondiaplay 0: Nondisplay, 1: Display line diameter 23 Error code: 01H, 02H, 03H, 09H, 11H, 12H...
Page 69
Reference Applied function Content Detail number code Group 1 Bit 0 ~ 7 Display channel allocation: 1 ~ 44 Display channel 0: Not set 46042 allocaton/Display_ Bit 8 ~ 9 Trend line diameter 0: 1, 1: 3, 2: 5 Nondisplay/Trend Bit 12 Display_Nondiaplay 0: Nondisplay, 1: Display line diameter 32 Error code: 01H, 02H, 03H, 09H, 11H, 12H...
Page 70
Reference Applied function Content Detail number code Group 1 Bit 0 ~ 7 Display channel allocation: 1 ~ 44 Display channel 0: Not set 46051 allocaton/Display_ Bit 8 ~ 9 Trend line diameter 0: 1, 1: 3, 2: 5 Nondisplay/Trend Bit 12 Display_Nondiaplay 0: Nondisplay, 1: Display line diameter 41 Error code: 01H, 02H, 03H, 09H, 11H, 12H...
Page 71
Reference Applied function Content Detail number code Group 1 1 ~ 99 0: None 46070 Trip line position 4 Error code: 01H, 02H, 03H, 09H, 11H, 12H Group 1 1~ 12 46071 Trip line color 4 Error code: 01H, 02H, 03H, 09H, 11H, 12H Group 1 0: 1, 1: 3, 2: 5 46072...
Page 72
5) Common parameter (screen, schedule, etc. Reference Applied function Content Detail number code 0: Japanese, 1: English 47110 Language Error code: 01H, 02H, 03H, 09H, 11H, 12H 0 ~ 60 (min.) 47111 Screen saver Error code: 01H, 02H, 03H, 09H, 11H, 12H Year/month/day 0: y/m/d, 1: m/d/y, 2: d/m/y 47112...
Page 73
Reference Applied function Content Detail number code ASCII 2 digits (A space code can be used in the Starting 47158 first digit.) 01 ~ 12 schedule month Error code: 01H, 02H, 03H, 09H, 11H, 12H ASCII 2 digits (A space code can be used in the Starting 47159 first digit.) 01 ~ 31...
Page 76
7) Marker text Reference Applied function Content Detail number code Marker text/ 0 ~ 5, 00H: Group designation in displaying 48001 Designation of group Error code: 01H, 02H, 03H, 09H, 11H, 12H number for writing Marker text/ 0 ~10, 00H: Designation of text performed 48002 Designation of last time...
Page 77
Reference Applied function Content Detail number code ASCII, Shift JIS 2 digits 48016 Marker text 1 27, 28 Error code: 01H, 02H, 03H, 09H, 11H, 12H ASCII, Shift JIS 2 digits 48017 Marker text 1 29, 30 Error code: 01H, 02H, 03H, 09H, 11H, 12H 48018 ~ Marker text 2 Same as Marker text 1 (48003 ~ 48017)
Page 78
Reference Applied function Content Detail number code 48213 ~ Marker text 15 Same as Marker text 1 (48003 ~ 48017) 48227 48228 ~ Marker text 16 Same as Marker text 1 (48003 ~ 48017) 48242 48243 ~ Marker text 17 Same as Marker text 1 (48003 ~ 48017) 48257 48258 ~...
Page 79
Reference Applied function Content Detail number code 48438 ~ Marker text 30 Same as Marker text 1 (48003 ~ 48017) 48452 48453 ~ Marker text 31 Same as Marker text 1 (48003 ~ 48017) 48467 48468 ~ Marker text 32 Same as Marker text 1 (48003 ~ 48017) 48482 48483 ~...
Page 80
Reference Applied function Content Detail number code 48663 ~ Marker text 45 Same as Marker text 1 (48003 ~ 48017) 48677 48678 ~ Marker text 46 Same as Marker text 1 (48003 ~ 48017) 48692 48693 ~ Marker text 47 Same as Marker text 1 (48003 ~ 48017) 48707 48708 ~...
Page 81
5.8 Range number table Range Decimal Input type Measurement range number place -13.80 - 13.80 -27.60 27.60 - -69.00 - 69.00 -200.0 200.0 - -500.0 500.0 - DC voltage -2.000 2.000 - -5.000 - 5.000 -10.00 10.00 - -20.00 20.00 -...
Page 82
한국 CHINO 주식회사 (판 매 점 ) 〶 445-813 경기 도 화 성시 동탄 면 오 산리 296-1 TEL : (031)379-3700(대) A/S : (031)379-3769 FAX : (031)379-3777 홈 페 이 지 : http://www.chinokorea.com e-Mail : webmaster@chinokorea.com...
Need help?
Do you have a question about the KR2000 Series and is the answer not in the manual?
Questions and answers