Chino KR2S User manual

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
Graphic Recorder
KR2S
【Communication Interface】
Instruction Manual
Thank you for purchasing the KR2S series graphic recorder.
Before using your new recorder, please be sure to read this instruction manual that will advise you on
how to use the instrument correctly and safely and how to prevent problems.
-Request to instrumentation engineers, constructors, and sale agents -
Make sure to deliver thisinstruction manual to the operator of this instrument.
-Request to the operator of this instrument -
This instruction manual is necessary for maintenance, too. Keep this manual with care
until the instrument is discarded.

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-1-
Introduction
This manual describes the specifications and operation of three communications interfaces (RS-485 and
Ethernet) of the KR2S series graphic recorders.
The individual part for each communication is explained separately in [In case of RS-485] and [in case of
Ethernet], and the common part is explained all together. Please read the required part carefully. Be sure
to confirm the model code of the communications interface of this unit you purchased.
KR2S□□‐□□□
Communication interface (option)
N: None
E: Ethernet
R: Low/high order communications (RS-485)
G: Ethernet + low/high order communications (RS-485)
Other manuals to be consulted
This manual is for the communications interface only. For the installations of this instrument, please
refer to the following separate manuals:
1) KR2S General Manual (Manual No. INE-861□)
2) KR2S [Wiring/Installation] Instruction Manual (Manual No. INE-862□)
3) SC8-10 Line Converter (Manual No. INE-39)
* For the personal computer (PC) you use, refer to the manual attached to the PC.
Caution display
The cautions to be observed for preventing the damage of this instrument and unexpected accidents
are sorted by the following symbols according to their importance degrees for enabling operators to
use this instrument safely.
Caution
The nonobservance of information under this symbol may result in a
hazardous situation or a light injury to the user or in physical damage to the
property.
Remarks
This symbol shows a caution when the instrument dose not function as specified or
when such a possibility exists.
Important notes for users
1. No part of this manual can be reproduced or copied in any form without permission.
2. The contents of this manual may be altered without prior notice.
3. This manual has been documented by making assurance doubly sure.
However, if any question arises or if any error, an omission, or other deficiencies are found,
please contact your nearest CHINO’s sales office.
4. CHINO is not responsible for any operation results of this software.
!

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-2-
Table of Conte
Introduction.............................................................................................................................................................1
Table of Conte........................................................................................................................................................2
1For safe use ................................................................................................................ 4
1-1 Preconditions for use....................................................................................................................................4
1-2 Labels on this instrument..............................................................................................................................4
1-3 Symbols in this manual.................................................................................................................................4
2General ........................................................................................................................ 5
2-1 RS-485 communications interface................................................................................................................5
2-2 Ethernet........................................................................................................................................................5
3Communication protocol............................................................................................. 6
3-1 MODBUS protocol........................................................................................................................................6
4Communications specifications.................................................................................. 7
4-1 Serial communications..................................................................................................................................7
4-2 Ethernet communications.............................................................................................................................7
4-2-1 Establishment of TCP connection ......................................................................................................................... 8
4-2-2 Data transmission and reception through TCP...................................................................................................... 9
4-2-3 Disconnection of TCP connection ....................................................................................................................... 10
4-2-4 Functions at communications failure................................................................................................................... 10
5Confirmation of communications specifications and settings............................... 11
5-1 Confirmation of communications specifications.......................................................................................... 11
5-2 Settings from this unit................................................................................................................................. 11
5-2-1 Settings for Ethernet.............................................................................................................................................11
5-2-2 Settings for High order communications.......................................................................................................... 12
6Connections............................................................................................................... 13
6-1 Connection precautions..............................................................................................................................13
6-1-1 Communications Terminals................................................................................................................................. 13
6-1-2 Total extension of RS-485 communications cable is up to 1.2km........................................................................ 13
6-1-3 Take measures against noise.............................................................................................................................. 13
6-1-4 Crimp type terminals........................................................................................................................................... 14
6-1-5 Attach a termination resistor................................................................................................................................ 14
6-1-6 Number of this unit connectable.......................................................................................................................... 14
6-2 Communications cables .............................................................................................................................15
6-2-1 Communications cables for RS-485.................................................................................................................... 15
6-2-2 Communications cables for Ethernet................................................................................................................... 16
6-3 Communication Line Wiring........................................................................................................................17
6-3-1 Connections of High order communication RS-485............................................................................................. 17
6-3-2 Connections of loworder communication RS-485............................................................................................... 18
6-3-3 Ethernet wiring.................................................................................................................................................... 19
7MODBUS protocol...................................................................................................... 20
7-1 Transmission mode of message.................................................................................................................21
7-1-1 Transmission data............................................................................................................................................... 21
7-1-2 Message frame configuration............................................................................................................................ 21
7-2 Data time interval........................................................................................................................................22
7-3 Message configuration................................................................................................................................22
7-3-1 Slave address..................................................................................................................................................... 22
7-3-2 Function code..................................................................................................................................................... 22
7-3-3 Data part............................................................................................................................................................. 23
7-3-4 Reference number.............................................................................................................................................. 24
7-3-5 Error check.......................................................................................................................................................... 26
7-3-6 Precautions at the time of data processing.......................................................................................................... 28
7-4 Message creation.......................................................................................................................................29
7-4-1 RTU mode message........................................................................................................................................... 29
7-4-2 ASCII mode message......................................................................................................................................... 30
7-5 Function Code............................................................................................................................................31
7-5-1 Reading of digital setting values (Reading of coil status)..................................................................................... 31

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-3-
7-5-2 Reading of digital input data (Reading of input relay status)................................................................................ 32
7-5-3 Reading of analogsetting values (Reading of maintenance register contents).................................................... 33
7-5-4 Reading of analog input data (Reading of input register contents)....................................................................... 33
7-5-5 Writing of digital setting values (Changing of single coil status)........................................................................... 34
7-5-6 Writing of analog setting values (Writing of single maintenance resister)............................................................. 35
7-5-7 Loop back test..................................................................................................................................................... 36
7-5-8 Writing multiple analog setting values (Writing tomultiple maintenance registers)............................................... 37
7-6 Process during abnormality........................................................................................................................38
7-6-1 No response ....................................................................................................................................................... 38
7-6-2 Error message response..................................................................................................................................... 38
8Reference table ......................................................................................................... 40
8-1 Digital setting values...................................................................................................................................40
8-2 Digital input data.........................................................................................................................................41
8-3 Analog input data........................................................................................................................................44
8-3-1 Reading of instrument specifications................................................................................................................... 44
8-3-2 Reading of measured data.................................................................................................................................. 45
8-4 Analog setting values..................................................................................................................................48
8-4-1 Commonparameters (Date/time, High order communications, etc.)................................................................... 48
8-4-2 Setting parameters for each channel................................................................................................................... 51
8-4-3 Communications parameter................................................................................................................................ 61
8-4-4 Low order communications parameter................................................................................................................ 81
8-4-5 Group parameter................................................................................................................................................. 85
8-4-6 Common parameter (screen, schedule, etc.) ...................................................................................................... 95
8-4-7 File-related-parameter......................................................................................................................................... 99
8-4-8 Marker text........................................................................................................................................................ 101
8-4-9 Low order communication setting (PLC relation)................................................................................................111
8-4-10 Web server setting..........................................................................................................................................113
9Setting/displaying on Web screen (Option)............................................................. 115
9-1 Display and settings using the Web screen.............................................................................................. 115
9-1-1 Top page............................................................................................................................................................115
9-1-2 Recorder display................................................................................................................................................116
9-1-3 Data display.......................................................................................................................................................116
9-1-4 Input settings......................................................................................................................................................117
9-1-5 Alarm settings....................................................................................................................................................118
9-1-6 Calculation settings............................................................................................................................................119
9-1-7 Group settings................................................................................................................................................... 120
9-1-8 Marker text settings........................................................................................................................................... 121

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-4-
1For safe use
This section “For safe use” has been compiled to promote the correct use of the instrument in order to
prevent human injury or damage to property before they occur. If this instrument is used other than
description of this document, protection provided by the instrument may be vitiated. Please read the
following information carefully and be sure to observe the warnings and cautions in it.
1-1 Preconditions for use
This instrument is a component type general product to be mounted on an indoor instrumentation
panel. Do not use this instrument in different situations.
Before using this instrument, ensure the system safety by taking appropriate measures such as
fail-safe designing and periodic maintenance for the equipment to which this instrument is installed.
Connection, adjustment or operation of this instrument should be performed by a professional
engineer with knowledge of instrumentation.
Also, a person who handles this instrument should read this instruction manual to fully understand
the cautions and basic operations.
1-2 Labels on this instrument
The following labels are used for safe use.
Label
Name
Meaning
Alert symbol mark
Indicates the location which should refer to the manual
in order to prevent an electric shock and injury.
Protective conductor terminal
Aterminal is provided for connection to the protective
conductor of the power supply facility for the prevention
of an electric shock.
1-3 Symbols in this manual
The cautions to be observed for preventing the damage of this instrument and unexpected accidents
are sorted by the following symbols according to their importance degrees for enabling operators to
use this instrument safely.
Warning
The nonobservance of information under this symbol may result in hazardous,
critical or serious injury to the user.
Caution
The nonobservance of information under this symbol may result in a
hazardous situation or a light injury to the user or in physical damage to the
property.
Remarks
This symbol shows a caution when the instrument dose not function as specified or
when such a possibility exists.
Reference
This reference servers as a supplement for handling and operation, and it maybe
convenient for the user.
!
!

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-5-
2General
The communications interfaces available in this unit are Ethernet as standard and the serial
communications RS-485, as an option. Via these communications, a PC can receive measured data and set
various parameters.
2-1 RS-485 communications interface
The RS-485 communications interface can communicate with multiple KR2S series graphic recorders
(RS-485 up to 31 sets) in parallel by signals conforming to the RS-485.
There are few PCs having the RS-485 communications interface. However, since these communications
interfaces are characterized with serial communications, it is easily connectable to a PC having the
RS-232C communications interface by using an RS-232C /RS-485 signal-converting unit. A line
converter (Model SC8-10) is available for RS-232C/RS-485 signal conversion from CHINO.
2-2 Ethernet
Ethernet is the communications standard specified in IEEE802.3 and is the most widely installed
small-sized LAN technology. The KR2S series graphic recorder is connected to a LAN established by the
Ethernet and performs reception of measured data, setting of various parameters, etc.
For the specifications of this unit, connections for the Ethernet, etc., refer to the general manual for this
unit.

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-6-
3Communication protocol
3-1 MODBUS protocol
The KR2S series graphic recorder employs MODBUS protocol as the communications protocol.
The MODBUS protocol has RTU mode and ASCII mode that can be selected by keys on the front of this
unit or the communications.
By using the MODBUS protocol, operation of measurement, setting, etc. to instruments can be
performed.
Ethernet interface performs by implementing the MODBUS protocol on TCP protocol packet.
* MODBUS is a registered trademark of Schneider Automation Inc.

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-7-
4Communications specifications
4-1 Serial communications
Specifications of the serial communications of this unit are as follows. * mark shows factory default
settings.
Communication system
Half-duplexStart-stop synchronization (polling selecting system)
Protocol
MODBUS protocol
Transmission mode
RTU mode*/ASCII mode
Transmission speed
9600 */19200 bps selectable
Start bit
1 bit
Data length
7 bits/8 bits*(depended on transmission mode)
Parity bit
Non* (none)/Even/Odd(depended on transmission mode)
Stop bit
1 bit*/2 bits(depended on transmission mode)
Transmission code
Binary*( RTU mode)/ASCII(ASCII mode)
(depended on transmission mode)
Error check
CRC-16*/LRC (depended on transmission mode)
Data transmission procedure
No procedure
Signals used
Transmission/reception of dataonly (Control signal notused)
Other
External units precedence communications system
4-2 Ethernet communications
Specifications of the Ethernet communications of this unit are as follows.
Media
Ethernet (10BASE-T/100BASE-TX)
Communications mode
Full-duplex/Half-duplex
Communications speed
10Mbps (10BASE-T)/100Mbps (100BASE-TX)
However, as the communications speed and the communications
mode are automatically recognized, fixed settings are disabled.
Protocol
MODBUS (RTU) protocol on TCP/IP
Number of simultaneous
connection
1 (for high order communications using the MODBUS protocol only)
This unit provides functions of Web, FTP, etc., but this manual describes data communications using
MODBUS communications only.
The relation of the MODBUS communications and TCP/IP layers are shown in the table below.
TCP/IP Model Layers
Main protocols used in
Ethernet communications
Application layer
MODBUS
Transport layer
TCP
Internet layer
IP, ARP
Physical layer/Data link layer
Hardware (Ethernet)
For details of the MODBUS protocol, refer to 7 MODBUS protocol.

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-8-
4-2-1
Establishment of TCP connection
When the high order 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.
1. The PC transmits the TCP packet with the SYN flag set to this unit.
2. When this unit receives the SYN packet, it transmits the TCP packet the SYN+ACK flags set to
the PC.
3. When the PC receives the SYN+ACK packet, it transmits the TCP packet with the ACK flag set
to this unit.
U
R
G
0
A
C
K
P
S
H
R
S
T
S
Y
N
F
I
N
0
0
0
1
0
PC
(Client)
This unit
(Server)
1. SYN
2. SYN+ACK
3. ACK
U
R
G
0
A
C
K
P
S
H
R
S
T
S
Y
N
F
I
N
1
0
0
1
0
U
R
G
0
A
C
K
P
S
H
R
S
T
S
Y
N
F
I
N
1
0
0
0
0

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-9-
4-2-2
Data transmission and reception through TCP
When the connection is established, transmission and reception of various data through the MODBUS
(RTU) protocol on the TCP data between the PC (Client) side and this unit (Server) are performed.
PC
This unit
Request
Response
Request
Request
TCP header
TCP data
MODBUS (RTU) protocol
TCP packet

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-10-
4-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. This unit transmits the FIN+ACK packet to the PC.
4. The PC transmits the ACK packet responding to the FIN.
4-2-4
Functions at communications failure
The followings are functions of this unit when the communications failure on the TCP/IP occurs.
In case that there is no response from a communication partner (PC, etc.)
When a response (ACK) packet does not return after this unit transmits data to a
communication partner on Ethernet, this unit repeats to retry transmission (up to about 3
minutes).
When there is no response also to the transmission retry packet, this unit disconnects the TCP
connection.
When the communication partner requests to connect the TCP connection to this unit before
this unit disconnect the TCP connection, this unit transmits the RST packet to refuse the
connection.
In addition, this unit transmits the RST packet in the following cases.
When this unit receives the TCP packet from other than the partner being connected
When this unit receives the RST packet from the communication partner
When this unit receives an unexpected reply packet
Fundamentally, this unit ignores the unexpected reply packet. However, this unit disconnects
the TCP connection as soon as it receives the RST packet in case of forcible disconnection of the
TCP connection by the PC side and so on.
U
R
G
0
A
C
K
P
S
H
R
S
T
S
Y
N
F
I
N
0
0
0
0
1
PC
(Client)
This unit
(Server)
1. FIN
2. ACK
3. FIN+ACK
4. ACK
U
R
G
0
A
C
K
P
S
H
R
S
T
S
Y
N
F
I
N
1
0
0
0
0
U
R
G
0
A
C
K
P
S
H
R
S
T
S
Y
N
F
I
N
1
0
0
0
0
U
R
G
0
A
C
K
P
S
H
R
S
T
S
Y
N
F
I
N
1
0
0
0
1

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-11-
5Confirmation of communications specifications
and settings
5-1 Confirmation of communications specifications
When the serial communication is used, confirm the model of this instrument before installations and
connections.
KR2S□□‐□□□
Communication interface (option)
N: None
E: Ethernet
R: Low/high order communications (RS-485)
G: Ethernet + low/highorder communications (RS-485)
5-2 Settings from this unit
5-2-1
Settings for Ethernet
Tap the [Operation] button and then tap [MENU settings] - [Network settings] - [Ethernet settings], the
following screen is displayed.

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-12-
5-2-2
Settings for High order communications
Tap the [Operation] button and then tap [MENU settings] –[System settings] - [High order
communication], the following screen is displayed.
Port number
Specify the port number used in the high order communications*
via Ethernet.
Communications mode
Select the RTU/ASCII.
Instrument address
Set an arbitrary number in the range from 01 to 31.
Bit rate
Select 9600bps or 19200bps.
Communications
character
Select it from the codes listed below.
* In case of the high order communications via Ethernet, the communications mode is the RTU and
the instrument address is fixed at “01”.
Code
Character
length
Parity
Stop bit
7E1
7 bits
Even
1
7E2
2
7O1
Odd
1
7O2
2
8N1
8 bits
None
1
8N2
2
8E1
Even
1
8E2
2
8O1
Odd
1
8O2
2
*Codes are used to represent characters. MODBUS RTU mode can set only 8-bit characters(see
Section 7-1).

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-13-
6Connections
6-1 Connection precautions
6-1-1
Communications Terminals
RS-485 terminal Ethernet connector
SA SB SG
6-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.
6-1-3
Take measures against noise
Separate the communications cable from power lines and other communications lines more than 50 cm
not to be affected by noise.
In addition, when the communications using a PC or an Ethernet hub are performed, depending on
circumstances, the hub, communications ICs, or the PC itself may be strongly affected by noise and
failures may occur in communication with this unit. In this case, take sufficient measures against noise
for the communication lines, the power lines, etc.
Total extension of cable: Within 1.2km
Line converter
This unit
Last edge

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-14-
6-1-4
Crimp type terminals
Falling off of connections is one of communications failures. Terminate the communications cable with
crimp type ring or spade terminals with an insulation sleeve. (The terminal screws of KR2S series
graphic recorders are M4mm and the terminal screws of the line converter are M3.5mm.)
6-1-5
Attach a termination resistor
For using the RS-485 communications, mount a 100 Ω resistor to the KR2S series graphic recorder
connected at the final end. (For details, see Section 4-3)
[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
6-1-6
Number of this unit connectable
Up to 31 sets
Caution
The distance and the number that can be communicated in the high quality
according to the kind of the communications cable used or the connected
equipment are different though communication IC in accordance with each
communication standard is used about connected the number.
Especially, please note that the number that can be connected becomes ten
or less when the equipment using communication IC that conforms only to
RS-422A standard is connected with the same communication line as KR2S.
Terminal name
Screw
diameter
Tightening
torque
Termination (Unit: mm)
Communication
terminal
M3
0.5N・m
Type O
Type Y
*Use Type O whenever possible.
!
More than 3.2
Less than 6.2
Less than 6.2
t:0.8
t:0.8
With an insulation sleeve
With an insulation sleeve
More than 3.2

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-15-
6-2 Communications cables
Use communications dedicated cables. Communications dedicated cables (sold separately) are available
at CHINO.
6-2-1
Communications cables for RS-485
1.Connections between a line converter and the KR2S series recorder.
Cable
Crimp type ring terminals ⇔RS-485 with crimp type ring terminals
Shape
The cable consists of a twisted dual-core CVVS wires with SG (signal grounding)wire at
both ends.As the line converter has no SG terminal, cut this wire to use.
Internal
wiring
Type code
RZ-LEC□□□
Cable length: 1 to 99m (to be specified)
2.Connections between the KR2S recorder and the KR2S recorder.
Cable
Crimp type ring terminals ⇔RS-485 with crimp type ring terminals
Shape
The cable consists of a twisted dual-core CVVS wires with SG (signal grounding)wire at
both ends.As the line converter has no SG terminal, cut this wire to use.
Internal
wiring
Type code
RZ-LEC□□□
Cable length: 1 to 99m (to be specified)
KR2S
Line Converter
(black)SA
(white)SB
(green)SG
RDA(black)
RDB(white)
SG(green)
RDA
RDB
SG
SA
SB
SG
KR2S
KR2S
SA(black)
SB(white)
SG(green)
(black)SA
(white)SB
(green)SG
SA
SB
SG
SA
SB
SG

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-16-
6-2-2
Communications cables for Ethernet
1. Connection between PC and device
When connecting a device to a PC directly (one-to-one), use a shielded, crossover twisted pair cable
(commercially available STP cable).
2. Connection between HUB and device(multiple devices can be connected)
When connecting devices to a PC via HUB (one-to-N), use a shielded, straight pair cable
(commercially available STP cable).

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-17-
6-3 Communication Line Wiring
6-3-1
Connections of High order communication RS-485
The RS-485 communications interface is connected to a personal computer via a protocol converter. Three
signals of SA, SB and SG are used between the protocol converter and a personal computer and a control
signal is not used. Wiring process of connector differs from how the personal computer uses the control
signal hence please understand your personal computer.
Turn the switch of RS422A/RS485 to
RS422A.
Avoid connecting SGline to FG terminal or ground terminal of the
device.
Termination
resistor
100Ω
Device side
Protocol converter
SC8-10
1
2
3
4
5
6
7
8
Cable for RS-232C(Max. 15m)
RZ-CRS6□□
Communication port
PC side
RD
SD
SG
RD
SD
SG
RDA
RDB
SA
SB
SG
SA
SB
SG
SA
SB
SG

INST.No.INE-863B KR2S【Communication Interface】Instruction Manual
-18-
6-3-2
Connections of low order communication RS-485
Connect SA1, SB1 of KR2S and SA, SB of low order connected instrument like the following figure. Refer
to instruction manual of each instrument for detail method of low order instrument connection.
Example of terminal connection 1
Example of terminal connection 2(SYSMAC)
SA
SB
SG
Avoid connecting SGline to FG terminal or ground terminal of the device.
Termination
resistor
100Ω
This recoder
Termination
resistor
100Ω
SE3000,MEKSEC, etc
AL3000 etc.
SA
SB
SG
RDA
RDB
SDA
SDB
SG
Turn the switch of RS422A/RS485 to
RS422A.
Avoid connecting SGline to FG terminal or ground terminal ofthe device.
Termination resistor
100Ω
This recorder
Line converter
SC8-10
Cable for RS-232C(Max.15m)
RZ-CRS6□□
Communications port
SYSMAC CPU unit
Internal RTC-232C port
(D-SUB 9-pin receptacle)
RD
SD
SG
RDA
RDB
SA
SB
SG
RD
SD
SG
1
2
3
4
5
6
7
8
Other manuals for KR2S
1
Table of contents
Other Chino Voice Recorder manuals