Page 1
INST.No.INE-812A Digital Program Controller KP3000 COMMUNICATIONS INTERFACES Retain this manual apart from the instrument and in an easily accessible place. Please make sure that this manual is handed to the final user of the instrument.
Page 3
Table of Contents 9. PRIVATE protocol....... - 59 - 1. Introduction ...........- 1 - 9-1. Difference between RS―232C and RS-422A/485........- 59 - 2. For safe use of the product....- 2 - 9-2. Basic procedure of communication- 61 - 2-1 Prerequisites for use ......- 2 - 9-3.
Page 4
1. Introduction Thank you for purchasing Digital Program Setter 'KP3000 series'. KP 3000 series is Digital Program Setter with output accuracy of ±0.1%, output update cycle of approximately 0.1 seconds and front size of 96X96mm. Up to 30 types of program patterns etc. are various functionalities that are provided as standard provisions.
Page 5
2. For safe use of the product In order to use the controller safely, read the following precautions and understand them. 2-1 Prerequisites for use The controller is a general product of component type that is to be used by mounting it in a panel for instrumentation inside a room.
Page 6
3. Overview RS-232C, RS-422A, RS-485 are available in communication interface of KP and are used for communication with personal computer (hereinafter referred to as PC). PC can receive measurement data from KP, various parameters can be set and operation commands can be issued.
Page 7
Switching is done by setting the front key. It has the transmission function of measurement data and settings, operation function. Old instrument of CHINO products is compatible with new instrument, however the parameter, which can not be set by PRIVATE, can be set by MODBUS. We recommended using MODBUS protocol if communication is set newly.
Page 8
5. Communication Specifications 5-1. MODBUS ・Communication system : Half duplex asynchronous system (Polling selecting system) : MODBUS protocol ・Protocol ・Communication speed : 38400,19200,9600,4800,2400bps switching ・Start bit : 1 bit ・Data length : 7 bits (ASCII mode) 8 bits (RTU mode/ASCII mode) ・Parity bit : None/even/odd ・Step bit...
Page 9
6. Setting the parameters for PC communication According to the flow chart, set these 5 parameters 'Communication speed', 'Device number', 'Communication function', 'Communication protocol' and 'Communication character'. 1. Click key from the operation screen. 2. Select MODE 8 from 'Select MODE screen' using key. 3.
Page 10
6-1. Communication speed (COM BIT RATE) Use KP and PC in same communication speed. (Usually initial value can be 9600 bps.) ① Display ' COM BIT RATE' using key. ② Select communication speed using key and register it using key. Communication speed: 2400bps, 4800bps, 9600bps, 19200bps, 38400bps, (Initial value is 9600bps) 6-2.
Page 11
6-4. Setting communication protocol (COM PROTOCOL) ① 'COM PROTOCOL' is displayed using key. ② Select communication protocol using key and register it using key. Selection Communication Protocol Initial value MODBUS (RTU) MODBUS protocol RTU mode MODBUS (RTU) MODBUS (ASCII) MODBUS protocol ASCII mode PRIVATE...
Page 12
[PRIVATE] (*When communication protocol is PRIVATE, communication character screen is not displayed) Selection Bit length Parity Stop bit Initial value 7BIT/EVEN/STOP1 7bit Even 7BIT/EVEN/STOP1 - 9 -...
Page 13
7. Wiring 7-1. Precautions while wiring 1. Communication terminal Depending on the communication interfaces that are specified, terminal arrangement differs. Refer to 4-3 Wiring in instruction manual [general] for terminal numbers. 2. Total length of RS-422A/485 communication cable is less than 1.2 km Wiring space between each device can be anything but the total cable length distance is less than 1.2km.
Page 14
7-2. Cable for communication Before connecting, prepare the exclusive communication cables. They are available with our company also and you can order them. 7-2-1. Communication cable for RS-232C (Between PC/Line converter) ① Connection between PC (9 pin) and KP, PC (9 pin) and line converter 9 pin connector ↔...
Page 15
7-2-2. Communication cable for RS-422A ① Connection between line converter and KP 0 type crimp style terminal ↔ 0 type crimp style terminal RS-422A cable Cable (For line converter) (Black) SDA RDA (Black) (White) SDB RDB (White) SDA (Red) (Red) RDA SDB(Green) (Green) RDB Format...
Page 16
7-2-3. Communication cable for RS-485 ① Connection between line converter and KP; and between KPs 0 type crimp style terminal ↔ 0 type crimp style terminal RS-485 cable Cable (Black) SA RDA (Black) (White) SB RDB (White) (Green) SG SG (Green) Format Line converter side KP side...
Page 17
7-3. RS-232C connection KP uses sending, receiving and Signal Grand (SG) only and does not use any other control signal. In general PC as controlling is done by control signal, it does not operate just by connecting 3 signal wires. As the wiring process in the connector, differs on how the PC controls the control signal, see the instruction manual of the PC that is being used.
Page 18
7-4. Wiring of RS-422A/485 Connect RS-422A/485 communication interface to the PC using line converter (Our company model: SC8-10). Line converter and PC use only three signals namely send, receive and signal grand and do not use any other control signal. Hence, wiring process in the connector similar to that in RS-232C connection is necessary.
Page 19
8. MODBUS protocol Basic procedure and precautions regarding communication In order to avoid accidents always read the contents and understand Precautions them. 1. When setting (Right) the parameters, setting is controlled using key operations. Communication is possible any time in KP. Response is received against the data request from the PC at any time.
Page 20
8-1. Message transmission mode There are two types of modes namely RTU (Remote Terminal Unit) mode and ASCII mode and they are selected using the front key setting. <Table 1 Comparison between RTU mode and ASCII mode> Item RTU mode ASCII mode RS-232C、RS-422A、RS-485 Interface...
Page 21
8-2. Data time interval During RTU mode: Less than 9600bps = 20msec, 9600bps or more = 5msec During ASCII mode: Less than 1 second When sending a message, do not let the time interval of data that makes up one message exceed the time span mentioned above.
Page 22
<Table 2. Function code table> MODBUS original function Code Function Unit (Reference) Reads input relay status Reads digital input data 1 bit Reads the contents of maintenance Reads analog setting value 16 bits register Reads analog input data 16 bits Reads the contents of input register Writes the analog setting value 16 bits...
Page 23
<Table 4. Reference number chart table> Reference Relative Reference Data kind Parameter Code number number table Digital input System abnormality status Section 10002 to 10124 1 to 123 Data Alarm status 8-7-3 Setup parameter 1 40008 to 40020 7 to 19 Setup parameter 2 40052 to 40092 51 to 91...
Page 24
8-3-5. Error check Error check of transmission frame differs depending on the mode. RTU mode: CRC-16 ASCII mode: LRC ① Calculation of CRC-16 CRC system assigns the information that is to be sent, by generating polynomials, and sends the rest of the information by appending it at the end. Generating polynomial is as follows. 1 + X Target extends from slave address to the end of the data and calculation is done by the following procedure.
Page 25
Reference: CRC-16 calculation program /***** CRC-16 calculation program (C language) *****/ #include <stdio.h> #include <conio.h> void main(void) /*** Internal change declaration ***/ unsigned int iLoopCnt; /* Loop counter unsigned short usData; /* Input data unsigned short usCrcData; /* CRC-16 data unsigned short usErrChkData;...
Page 26
② LRC calculation method Target extends from slave address to the end of the data and calculation is done by the following procedure. 1) Create message in RTU mode. 2) Add from the beginning (Slave address) to the end of data. → X 3) Get the complement (bit inversion) of X.
Page 27
8-3-6. Precautions while processing the data ① Decimal point position of each data is clearly mentioned in the reference table. There are various points like fixing the decimal point position, points to be decided for every measurement range (See section 8.9) items as per linear decimal point setting. Take care about the decimal point position when data is regenerated.
Page 28
8-4. Method of creating a message Message is made up of ① Slave address, ② Function code, ③ Data division, and ④ Error check code. (See section 8-3.) Message that can be read and written once is within the following range. Function Number of data units code...
Page 29
8-4-2. ASCII mode message Calculate error check LRC from message basic division. LRC becomes 7BH (See section 8-3-5.②).Convert each data of basic division to ASCII code and also convert LRC to ASCII code and add it to basic division. Starting character of message is ":" and add "CR", "LF" at the end. [3AH]...
Page 30
8-5-2. Reading analog setting value [Function code: 03 (03H)] From the specified number, only the number of specified units read the number series 'Analog setting value (2 bytes: 16 bytes) data'. Data consists of response message data that is arranged in numeric order and is split into high order 8 bit and low order 8 bit.
Page 31
8-5-4. Writing analog setting value [Function code: 06 (06H)] Consider the analog setting value of the specified number as the set value. Example) Set SV decimal point position of slave 1 to 1. <RTU mode> Master→ Device Device → Master (Normal) Slave address Slave address Function code...
Page 32
8-5-6. Writing multiple analog setting values [Function code: 16(10H)] From the specified number consider the analog setting value of the specified number of units as the specified status (ON/OFF). The data is split into high order 8 bits and low order 8 bits is arranged in numeric order and then sent.
Page 33
8-6. Process during abnormality If there is an error in the contents of the message from the master, respond as follows. 8-6-1. In case of no response In the following cases, the messages are ignored and no response is given. ①...
Page 34
8-6-2. Response of error message In the contents of the message from the master if the errors mentioned in section 8-6-1 do not occur instead if the following error is detected, then display (respond) as 'error message' the code that shows error contents. Format of error message is as follows.
Page 35
8-7. Reference table 8-7-1. Analog setting value ① Setup parameter 1 FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference R/W Data name (Communication Initial value Remarks number Code range) SV decimal 0 to 4 40008 (Decimal point (0 to 4) 1-digit) ・Decimal point position = SV...
Page 36
⑤ 8 type parameter No. 1 FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference Initial Data name Remarks (Communication number Code value range) ・Can be written when there is external [8 type parameter] signal input. Time signal ON, 0 to 999 (Hours ・Setting of HHH of HHH:LL...
Page 37
⑦ 8 type parameter No.3 FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference Initial Data name Remarks (Communication number Code value range) ・Can be written when there is external [8 type parameter] signal input. Time signal ON, 0 to 999 (Hours ・Setting of HHH of HHH:LL...
Page 38
⑨ 8 type parameter No.5 FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference Initial Data name Remarks (Communication number Code value range) ・Can be written when there is external [8 type parameter] signal input. Time signal ON, 0 to 999 (Hours ・Setting of HHH of HHH:LL...
Page 39
⑪ 8 type parameter No.7 FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference Initial Data name Remarks (Communication number Code value range) ・Can be written when there is external [8 type parameter] signal input. Time signal ON, 0 to 999 (Hours ・Setting of HHH of HHH:LL...
Page 40
⑬ System setting FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference Initial Data name Remarks (Communication number Code value range) 0=Green Display back 0/1/2 1=Orange 48001 light (0/1/2) (AUTO) 2=AUTO (Normal…Green, Alarm activation …Orange) 0 to 100 48002 Display contrast (0 to 100)
Page 41
FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference Initial Data name Remarks (Communication number Code value range) ・Function of terminal (Lower order 8 bits) [DI] (External signal input) 00h = -- (no setting) 01h = RUN/STOP (RUN/STOP operation) 02h = ADV (ADVANCE operation) 03h = RESET (RESET operation)
Page 42
FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference Initial Data name Remarks (Communication number Code value range) [READ] (FNC_03) READ as type of terminal of external signal input/output for lower order 8 bits and function of terminal for higher order 8 bits.
Page 43
⑭ Program pattern information FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference Data name (Communication Initial value Remarks number Code range) Setting for Reading/Writing of program pattern (reference 49005 to 49045) 1 = PTN01 (pattern 1) 30 = PTN30 (pattern 30) *Set before reading/writing of pattern information.
Page 44
FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference Data name (Communication Initial value Remarks number Code range) ・Setting of HHH of HHH:LL ・Unit = Every time unit *Read/write after writing reference 49003 and 49004. [Program pattern] *Writing is not possible when Time 000 to 999 49007...
Page 45
FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference Data name (Communication Initial value Remarks number Code range) ・Decimal point position = SV decimal point Range of measurement [Program pattern] *Read/write after writing 49041 range Start SV reference 49003. Range of liner *Setting of step No.
Page 46
[Supplemental remarks] Procedure of reading/writing to step information of program pattern 1) Example of procedure reading SV, time, and SV No. of step 1 of pattern No.1. [Procedure 1] Register pattern No. and step No. of step is performed reading. Setting ・Pattern No.
Page 47
[Procedure 3] Acquire the parameter is performed reading (instrument → master). (The following is an example of command response from instrument to master after procedure 2 when SV, time, SV No. of pattern 1 and step 1 are following setting.) Acquiring ・SV = 111.1 ・Time = 22:33 (H:M)
Page 48
2) Example of procedure of setting (writing) SV, time, and SV No. to step 1 of pattern No.1. [Procedure 1] Register pattern No. and step No. of step which is written. Setting・Pattern No. = Pattern ・Step No. = Step 1 (Example of command = 0110232A000204000100016CF9) Master →...
Page 49
⑰ Program pattern setting/editing FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference R/W Data name (Communication Initial value Remarks number Code range) [MODE0] Reading/writing of Within the range execution SV [Execution] of SV limit 49056 (Within the range ・Decimal point position = SV decimal of SV limit) point...
Page 50
FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference R/W Data name (Communication Initial value Remarks number Code range) Reading of [pattern/step] status [READ] (FNC_03) 0= No edition 1= Add step 2= Delete step 3= Pattern copy 4= Pattern clear (1 pattern) 5= Clear all patterns Pattern copy [WRITE] (FNC_06, FNC_16)
Page 51
FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference R/W Data name (Communication Initial value Remarks number Code range) Reading of [pattern/step] status [READ] (FNC_03) 0= No edition 1= Add step 2= Delete step 3= Pattern copy 4= Pattern clear (1 pattern) 5= Clear all patterns Step adding [WRITE] (FNC_06, FNC_16)
Page 52
FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference R/W Data name (Communication Initial value Remarks number Code range) Reading of [pattern/step] status [READ] (FNC_03) 0= No edition 1= Add step 2= Delete step 3= Pattern copy 4= Pattern clear (1 pattern) 5= Clear all patterns Step deleting [WRITE] (FNC_06, FNC_16)
Page 53
⑱ Operation status information FNC code……Application function code, R/W……R: READ, W: WRITE Setting range Reference R/W Data name (Communication Initial value Remarks number Code range) [READ] (FNC_03) 0= Normal display 1= Lock (lock status) or NoDisp (screen non display) [WRITE] (FNC_06, FNC_16) 0= Normal display 1= Lock (lock status) * READ/WRITE after relating bit 0 to...
Page 54
8-7-2. Analog input data (READ only) Real data, parameter information FNC code……Application function code, R/W……R: READ, W: WRITE Reference Data name Detailed explanation number code [Upper display] SV value (SV during program operation) 30103 ・Decimal point position = PV decimal point (Setting value) [MODE0] SV in execution [Execution]...
Page 55
FNC code……Application function code, R/W……R: READ, W: WRITE Reference Data name Detailed explanation number code 0= No error 30143 Abnormality status 1= Error activation (activating scale correction error) 0= Time signal OFF (extinction [TS1] or [TS2] or ….. or [TS8]) 1= Time signal ON (lighting [TS1] or [TS2] or …..
Page 56
8-8. MODBUS protocol support reference table Analog setting value (40001 to 49999) Execution parameters and Setup parameter 1 Setup parameter 2 1 type parameter specific parameters Contents Contents Contents Contents SV (Setting value) 40001 40051 40101 40151 40002 40052 SV scale, ZERO 40102 40152 40003...
Page 57
Analog setting value (40001 to 49999) 8 type parameter No.1 8 type parameter No.2 8 type parameter No.3 8 type parameter No.4 Contents Contents Contents Contents 40201 40251 40301 40351 40202 40252 40302 40352 40203 40253 40303 40353 40204 40254 40304 40354 40205...
Page 59
Analog setting value (40001 to 49999) System setting Program pattern information Contents Contents Contents Contents 40601 40701 48001 Display back light 49001 40602 40702 48002 Display contrast 49002 Pattern No. [for pattern 40603 40703 48003 Key backlight 49003 R/W] 40604 40704 48004 49004...
Page 60
Analog setting value (40001 to 49999) Analog input data (30001 to 39999) Program pattern setting/editing Operation status information Real data & parameter Contents Contents Contents Contents Setting screen mode 49051 49501 30001 30101 lock 49052 49502 30002 30102 49053 49503 30003 30103 SV (setting value)
Page 61
Digital setting value (1 to 10000) Digital input data (10001 to 20000) System abnormality status Contents Contents Contents Contents 10001 10101 10002 10102 10003 10103 10004 10104 10005 System abnormality 10105 10006 10106 10007 10107 10008 10108 10009 10109 10010 10110 10011 10111...
Page 62
9. PRIVATE protocol 9-1. Difference between RS―232C and RS-422A/485 Only the level of RS-232C and RS-422A/RS-485 differs electrically, the communication procedure is the same. However, RS-422A/RS-485 connects devices in series and communicates one of the devices by sending device number using specified procedure from computer. This is called establishing the data link.
Page 63
9-1-2. Releasing the data link When communicating with the device other than the device that is presently communicating, release the data link with the following procedure from the Pc and then establish the data link with the next device by the procedure mentioned earlier. Release link instructions form PC Release link...
Page 64
9-2. Basic procedure of communication 9-2-1. Text format at the time of sending and receiving TEXT BCC L BCC H ① Character received before STX is not received. ② Always add CR(0DH), LF(0AH) as end code. (For both sending and receiving). 9-2-2.
Page 65
9-2-3. Basic procedure of communication ① In case of KP with communication option, communication is possible at any point of time. ② In RS―422A/RS-485, first of all data link is established and then communication with KP is performed according to the communication format. In the end the data link is released and made available for next communication.
Page 66
9-3. Communication format When transfer the parameter from old instrument to this instrument, check the setting range of each parameter because some parameters of Precautions setting range (for example, SV (setting value), alarm value etc.) is different from old instrument. 9-3-1.
Page 67
Execution AL3 (dummy) Execution AL4 (dummy) Execution OL (dummy) □□□□□□□□, □□□□□□□□, □□□□□□□□, Execution OH (dummy) Execution variation limit Execution sensor correction (dummy) (dummy) In KP3000, all the □□□□□□□□, □□□□□□□□, □□□□□□□□, data except SV data Second P (dummy) Second I (dummy)
Page 68
Function Output format In case of KP3000, (iii) END step output output at the time of STX △3, △3, □□, □□, □□, □□□□□□, ETX BCC CR LF END becomes the Pattern No. Step No. Output in case of END (dummy) Link destination dummy data.
Page 69
STOP FNC key 0=Non lock 1=STOP LOCK 1=Lock RESET AT (dummy) 1=RESET WAIT (dummy) 1=END MAN2 (dummy) 1=ADV MAN1 (dummy) CONST (dummy) ETX BCC CR LF In KP3000 a part of the data becomes the dummy data. - 66 -...
Page 70
9-3-3. Command that moves the KP status (PC → KP) Command function Command format ① Program drive STX △2, △1, □, □□, ETX BCC CR LF Only in case of selecting RUN or pattern. Pattern No. In cases other than that, space is set 1=RUN 2=STOP 3=ADV...
Page 71
0= Output 0 200= Fixed control Link destination pattern No. 00=No link In KP3000, mode 4 is locked using communication and 0 is set in END output. [Mode 2 lock] [Mode 4 lock] ④ Parameter No. STX △3, △4, □□, □□, □, □, □, □, □, □, □,...
Page 72
9-3-5. Individual parameter setting (PC → KP) Parameter type Format Time signal STX 19, □, □□□.□□, □□□.□□, ETX BCC CR LF (1 to 8) ON Time OFF Time Do not change the setting in case of 6 digits space. 1 to 8=Parameter No. 0=Copy to No.
Page 73
9-4. Positive response and negative response 9-4-1. Positive response ACK=06H 9-4-2. Negative response Error Code NAK=15H * Do not apply STX, ETX, BCC to ACK/NAK. 9-4-3. Error code Code Error type Contents Framing △1 Over run △2 Parity △3 Check sum △4 Lock/non lock ・During non lock, high order was confirmed and command...
Page 74
Code Error type Contents Select pattern OP ・Select pattern selected the pattern in case of KEY or ETX Set pattern ・Set the pattern except for RESET. ・Continued 2 steps and set Time=0. 〃 ・Set parameter No. in unset step (END step). 〃...
Page 75
9-5. Communication time chart 9-5-1. Response to data request High order Data request ① Response Response *1 Normal within 100msec ② Negative Negative response response 9-5-2. Response to command High order Command ① Negative Negative response response *2 Normal within 100msec ②...
Page 76
9-5-4. During other abnormalities ①Contents unclear High order clear *5 Normal within 100msec Negative response ② Exceeding character count (Excess buffer) High order Negative *6 Character count Negative *6 128 characters response ③ When beginning with other than STX High order Not Except STX clear No response...
Page 77
10. Communication (Digital) transmission 10-1. Overview KP can, not only communicate with the PC but also can digitally communicate with KP → DB device (Between our company's controller-DB). It is called "Communication transmission" "Communication remote". If this function is used, DBs on multiple machines operate with the same condition, consider KP as master device which is set in communication transmission and DB as slave device which is set in communication remote Maximum 31 slave device SVs can be set using communication.
Page 78
10-2. Specifications of communication division : Asynchronous method Communication system Communication : 38400,19200,9600,4800,2400bps switching communication speed speed Start bit : 1 bit : 7 bit (ASCII mode/PRIVATE mode) or 8 bits (RTU mode/ASCII mode) Data length : None (RTU mode/ASCII mode), Even (RTU mode/ASCII mode/PRIVATE mode), Parity bit Odd (RTU mode/ASCII mode) Stop bit...
Page 79
10-3. Communication transmission setting Set the following parameters in communication transmission KP. 1) Setting the communication speed (COM BIT RATE). (See 6-1) 2) Setting the communication function (COM KIND). (See 6-3) 3) Setting communication transmission type (COM TRANS KIND). (See 6-4) 4) Setting communication protocol (COM PROTOCOL).
Page 80
10-4. Wiring 10-4-1. For RS-232C Communication remote Communication transmission KP (Slave unit) (Master unit) 10-4-2. For RS-422A Communication Communication Communication Communication remote transmission KP remote DB remote DB (Master unit) (Slave unit) (Slave unit) (Slave unit) Terminal resistance 100Ω 10-4-3. For RS-485 Communication Communication Communication...
Page 81
10-5. Example of combination 10-5-1. Multizone temperature control Perform communication transmission for SV using KP of master unit, and slave unit DB receives using communication remote. As there is no error in analog division remote control with good precision is possible. If remote shift of DB is used, temperature slope can be held in multizone, SV remote SV remote...
Page 82
11. Appendix 11-1. Communication format list As mentioned below △=Space(20H)、X=Code data and numeric value data at the time of setting, ○=Code data and numeric value data at the time of sending DB, SX=STX (02H), EX=ETX (03H), BCBC=BCC, CR=CR (0DH), LF=LF(0AH). Communication Format Item...
Need help?
Do you have a question about the KP3000 and is the answer not in the manual?
Questions and answers