0% found this document useful (0 votes)
46 views20 pages

Kce Pid RS485

Null

Uploaded by

shunmugar0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views20 pages

Kce Pid RS485

Null

Uploaded by

shunmugar0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

KCE Series Micro Processor Controller Communication Manual

KCE Series
Micro Processor Controller
Communication Manual

KC-400 KC-600 KC-700 KC-800 KC-900

KCE
Contents
1 Parameter Setting…………………………………………………….…. 1
2 Communication Structure…………………………………………….… 2
2.1 RS485 Communication …………………………………………… 2
2.2 RS232 Communication…………………………………………... 2
3 Connection and Wiring………………………………………..……… 3
3.1 RS485 Communication Wiring………..………………………….. 3
3.2 RS232 Communication Wiring.…………………………………... 3
4 MODBUS RTU Protocol…………………………………………..…... 4
4.1 Data Configuration…………………………………………………... 4
4.2 ID Number (Slave Address)…………………………………….….. 4
4.3 Function Code………..………………………………………….….. 4
4.4 Data……...…………………………………………………………… 4
4.5 CRC Error Check………………………………….………………… 4
4.6 Abnormal Code……………………………………………………… 4
4.7 Example……………………………………………………………… 5
4.7.1 Reading PV value from slave controller ID.1…………………………... 5
4.7.2 Setting SV value=10.0 to slave controller ID.1….………….…………… 5
4.7.3 Setting SV value=10.0 and OUTL=100.0 to slave controller ID.1……. 5
5 KCE Protocol…………………………………………………………… 6
5.1 Data Configuration…………………………………………………... 6
5.2 Command…………………..…………………………………….….. 6
5.3 ID Number…..………..………….……………………………….….. 6
5.4 Registet Address….………………………………………………… 6
5.5 Data………………………………….……………….……………..… 6
5.6 Check Sum…………………………………………………………… 6
5.7 Example……………………………………………………………… 7
5.7.1 Reading PV value from slave controller ID.1…………………………... 7
5.7.2 Modify SV=10.0 to slave controller ID.1….………………………….…… 7
5.7.3 Write SV=100.0 to slave controller ID.1………………………………….. 7
6 Register Address……………………………………..………………... 8~19
KCE Series Micro Processor Controller Communication Manual
1

1. Parameter Setting

Press + key 3 sec. into third (INPUT) level to confirm parameters as


below:
Parameter Description Default
Protocol Selection
St- 6-2= 1 : MODBUS RTU Protocol
St- 6-2= 0 : General protocol
STOP 0
※Power need to reopen after change St-6-2 from 0
to1(MODBUS RTU Protocol),

Communication Bits

0-81 Odd parity , Data bits = 8, Stop Bit = 1

0-82 Odd parity , Data bits = 8, Stop Bit = 2

E-81 Even parity, Data bits = 8, Stop Bit = 1


0-81
E-82 Even parity , Data bits = 8, Stop Bit = 2

N-81 None parity, Data bits = 8, Stop Bit = 1

N-82 None parity, Data bits = 8, Stop Bit = 2

ID Number
ID Range: 0 ~ 255 2
Baud Rate
110 bps
300 bps
1200 bps

BAUD 2400 bps 9600


4800 bps
9600 bps
19200 bps
38400 bps
KCE Series Micro Processor Controller Communication Manual
2
2.Communication Structure
2.1 RS485 Communication System

2.2 RS232 Communication System


KCE Series Micro Processor Controller Communication Manual

3
3. Connection and Wiring
3.1 RS485 Communication Wiring

Note :
1.The length of shield wire should be less than 1200M.
2.Controllers in RS485 parallel connection should be less than 32 units.

3.2 RS232 Communication Wiring

Note :
1.The length of shield wire should be less than 12M.
2.There is only 1unit of controller available in RS232 communication.
KCE Series Micro Processor Controller Communication Manual
4

4. MODBUS RTU Protocol


4.1 Data Configuration
ID Number Function Code Data CRC
1 Byte 1 Byte N Byte 2 Byte
4.2 ID Number (Slave Address)
Range : 1~255.
Master instrument identifies slave controller by ID Number of the requested
message. ID Number should be configuring in individual slave controller by
setting parameter “ID.” In operation Level 3(INPUT Level).

4.3 Function Code


Function Description
03 (03H) Reading multiple registers value from slave controller.
(Max register count:8)
06 (06H) Setting 1 register value to slave controller.
16 (10H) Setting multiple registers value to slave controller.
(Max register count:8)

4.4 Data
Data depends on function code.
Request message from Master instrument is include “register address”, ”data
count” and “setting data”.
Response data from Slave controller is include”byte count”,” data” and
“abnormal code”.

4.5 CRC Error Check


CRC16 generation polynomial: X 16  X 15  X 2  X 1
The situation to cause CRC are as below:
1. CRC=FFFFH
st
Calculate XOR with 1 data and low byte of CRC. And the results into Y
2. (16Bit).
The Y shifted to the right (Shift Right) 1-bit, MSB fill 0, and the results
3. into Y.
If the carry result of Step 3 is "0", please skip to step 5. If the result is
4. "1", calculate XOR with “Y “and "A001H", and the results into Y.
5. Repeat Step 3 and 4 until the Y shift to the right (Shift right) 8 times.
6. Calculate XOR with next information (Byte) and Y, and the results into Y.
7. Repeat steps 3 ~ 5.
8. Repeat steps 3 to 6 until the final Data (Byte).
9. Swap the High Byte and Low Byte of Y.
10. CRC = Y.

4.6 Abnormal Code


Abnormal Code Description
01 (01H) Illegal function code (Non-existent function code)
02 (02H) Illegal register address (Register address is out of range)
03 (03H) Illegal Data Value (Data value is out of range)
KCE Series Micro Processor Controller Communication Manual
5
4.7 Example

4.7.1 Reading PV value from slave controller ID.1


Requested message from Master instrument
ID Number Function Code Register Address Data CRC
(01H) (03H) (008AH) (0001H) (A5E0H)

Response data from slave controller in normal status (Assumed PV=100.0)


ID Number Function Code Register Address Data CRC
(01H) (03H) (02H) (03E8H) (B8FAH)

Response data from slave controller in abnormal status (Assumed as illegal data value)
ID Number Function Code Register Address CRC
(01H) (83H) (03H) (01H)

When the MSB function code in abnormal status (83H), the abnormal code (03H) is returned as
contents of error and MSB will be set to 1.

4.7.2 Setting SV value=10.0 to slave controller ID.1


Requested message from Master instrument
ID Number Function Code Register Address Data CRC
(01H) (06H) (0000H) (0064H) (8821H)

Response message from slave controller in normal status (When SV=10.0)


ID Number Function Code Register Address Data CRC
(01H) (06H) (0000H) (0064H) (8821H)

Response message from slave controller in abnormal status (Assumed as illegal data value)
ID Number Function Code Register Address CRC
(01H) (86H) (03H) (0261H)

When the MSB function code in abnormal status (86H), the abnormal code (03H) is returned as
contents of error and MSB will be set to 1.

4.7.3 Setting SV value=10.0 and OUTL=100.0 to slave controller ID.1


Requested message from Master instrument
Function Register Byte
ID Number Data Count Data 1 Data 2 CRC
Code Address Count
(01H) (10H) (0000H) (0002H) (04H) (0064H) (03E8H) (B2CEH)

Response message from slave controller in normal status (When SV=10.0 and OUTL=100.0)
ID Number Function Code Register Address Data Count CRC
(01H) (10H) (0000H) (0002H) (41C8H)

Response message from slave controller in abnormal status (Assumed as illegal register
address)
ID Number Function Code Register Address CRC
(01H) (90H) (02H) (C001H)

When the MSB function code in abnormal status (90H), the abnormal code (02H) is returned as
contents of error and MSB will be set to 1.
KCE Series Micro Processor Controller Communication Manual
6
5. KCE Protocol
5.1 Data Configuration
Master→Slave (7 Bytes):
Command ID Number Register Address Data Check Sum
1 Byte 1 Byte 2 Byte 2 Byte 1 Byte

Master←Slave (8 Bytes):
Header Command ID Number Register Address Data Check Sum
(07H) (4DH)
1 Byte 1 Byte 1 Byte 2 Byte 2 Byte 1 Byte

5.2 Command
Command Description
R (52H) Reading 1 register value from slave controller
M (4DH) Modify 1 register value in RAM.
(Data are not maintained after power off)
W (57H) Write 1 register value in both RAM and EEPROM
(Data are maintained after power off)

5.3 ID Number
Range: 1~255
Master instrument identifies slave controller by ID Number of the requested
message. ID Number should be configuring in individual slave controller by
setting parameter “ID.” In operation Level 3(INPUT Level).

5.4 Register Address


Register Address is including register address high byte and low byte.
Totally, there are 2 bytes. For detail, please refer to Register Address (Page:8)

5.5 Data
Data is including setting data high byte and low byte.
Totally, there are 2 bytes.

5.6 Check Sum


Add all the values from “Command” to the end of “Data”.
The result is Check Sum (1 byte).
Ex: 52H+ 01H + 00H +8AH +00H +00H = DDH
KCE Series Micro Processor Controller Communication Manual
7
5.7 Example

5.7.1 Reading PV value from slave controller ID.1


Requested message from Master instrument:

Command ID Number Register Address Data Check Sum


(52H) (01H) (008AH) (0000H) (DDH)

Response data from slave controller in normal status (Assumed PV=100.0)


Header Command ID Number Register Address Data Check Sum
(07H) (4DH) (01H) (008AH) (03E8H) (C3H)

5.7.2 Modify SV=10.0 to slave controller ID.1


Requested message from Master instrument:

Command ID Number Register Address Data Check Sum


(4DH) (01H) (0000H) (0064H) (B2H)

5.7.3 Write SV=100.0 to slave controller ID.1


Requested message from Master instrument:

Command ID Number Register Address Data Check Sum


(57H) (01H) (0000H) (03E8H) (43H)
KCE Series Micro Processor Controller Communication Manual
8
6. Register Address
Register Address
MODBUS Hex Setting
Parameters Hex Decimal Function Code Range

SV
Set value 0000 000 03/06/10H

OUTP 0001 001 03/06/10H


Output limit percentage 0 ~ 1000

0000H=NO
AT 0002 002 03/06/10H
Auto tuning
0001H=YES

ALA1 0003 003 03/06/10H


Alarm 1 set value

ALA2 0004 004 03/06/10H


Alarm 2 set value

ALA3 0005 005 03/06/10H


Alarm 3 set value

OUTL 0006 006 03/06/10H


Output Low limit

OUTH 0007 007 03/06/10H


Output High limit

PROG 0006 006 03/06/10H


Program pattern 0~2

SET
Program pattern & segment 0007H 007 03H
Display

TIMR 0008 008 03H


Program countdown display

SV01
Set point of Seg.1 0009 009 03/06/10H
(Pattern 1)
TM01
Run time of Seg.1 000A 010 03/06/10H
(Pattern 1)
OUT1
Output limit of Seg.1 000B 011 03/06/10H
(Pattern 1)
EV1
Event assignment of Seg.1 000E 014 03/06/10H
(Pattern 1)
KCE Series Micro Processor Controller Communication Manual
9

Register Address
MODBUS
Parameters Setting Range
Hex Decimal Function Code

SV02
Set point of Seg.2 000C 012 03/06/10H
(Pattern 1)
TM02
Run time of Seg.2 000D 013 03/06/10H
(Pattern 1)
OUT2
Output limit of Seg.2 000E 014 03/06/10H
(Pattern 1)
EV2
Event assignment of Seg.2 000E 014 03/06/10H
(Pattern 1)
SV03
Set point of Seg.3 000F 015 03/06/10H
(Pattern 1)
TM03
Run time of Seg.3 0010 016 03/06/10H
(Pattern 1)
OUT3
Output limit of Seg.3 0011 017 03/06/10H
(Pattern 1)
EV3
Event assignment of Seg.3 000E 014 03/06/10H
(Pattern 1)
SV04
Set point of Seg.4 0012 018 03/06/10H
(Pattern 1)
TM04
Run time of Seg.4 0013 019 03/06/10H
(Pattern 1)
OUT4
Output limit of Seg.4 0014 020 03/06/10H
(Pattern 1)
EV4
Event assignment of Seg.4 000E 014 03/06/10H
(Pattern 1)
SV05
Set point of Seg.5 0015 021 03/06/10H
(Pattern 1)
TM05
Run time of Seg.5 0016 022 03/06/10H
(Pattern 1)
OUT5
Output limit of Seg.5
0017
(Pattern 1) 023 03/06/10H
EV5
Event assignment of Seg.5 000E 014 03/06/10H
(Pattern 1)
KCE Series Micro Processor Controller Communication Manual
10

Register Address
MODBUS
Parameters Setting Range
Hex Decimal Function Code

SV06
Set point of Seg.6 0018 024 03/06/10H
(Pattern 1)
TM06
Run time of Seg.6 0019 025 03/06/10H
(Pattern 1)
OUT6
Output limit of Seg.6 001A 026 03/06/10H
(Pattern 1)
EV6
Event assignment of Seg.6 000E 014 03/06/10H
(Pattern 1)
SV07
Set point of Seg.7 001B 027 03/06/10H
(Pattern 1)
TM07
Run time of Seg.7 001C 028 03/06/10H
(Pattern 1)
OUT7
Output limit of Seg.7 001D 029 03/06/10H
(Pattern 1)
EV7
Event assignment of Seg.7 000E 014 03/06/10H
(Pattern 1)
SV08
Set point of Seg.8 001E 030 03/06/10H
(Pattern 1)
TM08
Run time of Seg.8 001F 031 03/06/10H
(Pattern 1)
OUT8
Output limit of Seg.8 0020 032 03/06/10H
(Pattern 1)
EV8
Event assignment of Seg.8 000E 014 03/06/10H
(Pattern 1)
SV012
Set point of Seg.1 0021 033 03/06/10H
(Pattern 2)
TM012
Run time of Seg.1 0022 034 03/06/10H
(Pattern 2)
OUT12
Output limit of Seg.1 0023 035 03/06/10H
(Pattern 2)
EV12
Event assignment of Seg.1 000E 014 03/06/10H
(Pattern 2)
KCE Series Micro Processor Controller Communication Manual
12
11

Register Address
MODBUS
Parameters Setting Range
Hex Decimal Function Code

SV022
Set point of Seg.2 0024 036 03/06/10H
(Pattern 2)
TM022
Run time of Seg.2 0025 037 03/06/10H
(Pattern 2)
OUT22
Output limit of Seg.2 0026 038 03/06/10H
(Pattern 2)
EV22
Event assignment of Seg.2 000E 014 03/06/10H
(Pattern 2)
SV032
Set point of Seg.3 0027 039 03/06/10H
(Pattern 2)
TM032
Run time of Seg.3 0028 040 03/06/10H
(Pattern 2)
OUT32
Output limit of Seg.3 0029 041 03/06/10H
(Pattern 2)
EV32
Event assignment of Seg.3 000E 014 03/06/10H
(Pattern 2)
SV042
Set point of Seg.4 002A 042 03/06/10H
(Pattern 2)
TM042
Run time of Seg.4 002B 043 03/06/10H
(Pattern 2)
OUT42
Output limit of Seg.4 002C 044 03/06/10H
(Pattern 2)
EV42
Event assignment of Seg.4 000E 014 03/06/10H
(Pattern 2)
SV052
Set point of Seg.5 002D 045 03/06/10H
(Pattern 2)
TM052
Run time of Seg.5 002E 046 03/06/10H
(Pattern 2)
OUT52
Output limit of Seg.5 002F 047 03/06/10H
(Pattern 2)
EV52
Event assignment of Seg.5 000E 014 03/06/10H
(Pattern 2)
KCE Series Micro Processor Controller Communication Manual
12

Register Address
MODBUS
Parameters Setting Range
Hex Decimal Function Code

SV062
Set point of Seg.6 0030 048 03/06/10H
(Pattern 2)
TM062
Run time of Seg.6 0031 049 03/06/10H
(Pattern 2)
OUT62
Output limit of Seg.6 0032 050 03/06/10H
(Pattern 2)
EV62
Event assignment of Seg.6 000E 014 03/06/10H
(Pattern 2)
SV072
Set point of Seg.7 0033 051 03/06/10H
(Pattern 2)
TM072
Run time of Seg.7 0034 052 03/06/10H
(Pattern 2)
OUT72
Output limit of Seg.7 0035 053 03/06/10H
(Pattern 2)
EV72
Event assignment of Seg.7 000E 014 03/06/10H
(Pattern 2)
SV082
Set point of Seg.8 0036 054 03/06/10H
(Pattern 2)
TM082
Run time of Seg.8 0037 055 03/06/10H
(Pattern 2)
OUT82
Output limit of Seg.8 0038 056 03/06/10H
(Pattern 2)
EV082
Event assignment of Seg.8 000E 014 03/06/10H
(Pattern 2)
P-1 0039 057 03/06/10H 0~2000
OUT1 proportional band

I-1 003A 058 03/06/10H 0~3600


OUT1 integral time

D-1 003B 059 03/06/10H 0~900


OUT1 derivative time

DB-1 003C 060 03/06/10H 0~1000


Dead-band time

AT-L 003D 061 03/06/10H


Auto tuning offset value
KCE Series Micro Processor Controller Communication Manual
13

Register Address
MODBUS
Parameters Setting Range
Hex Decimal Function Code

CY-1 003E 062 03/06/10H 0~150


OUT1 cycle time

HYS1 003F 063 03/06/10H 0~1000


OUT1 hysteresis

P-2 0040 064 03/06/10H 0~2000


OUT2 integral time

I-2 0041 065 03/06/10H 0~3600


OUT2 integral time

D-2 0042 066 03/06/10H 0~900


OUT1 derivative time

CY-2 0043 067 03/06/10H 0~150


OUT2 cycle time

HYS2 0044 068 03/06/10H 0~1000


OUT2 hysteresis

GAP1 0045 069 03/06/10H


OUT1 control gap

GAP2 0046 070 03/06/10H


OUT2 control gap

0000H =
0000
1111H = 1111
0100H =
LCOK 0100
Level function lock 0047 071 03/06/10H 0110H = 0110
0001H =
0001
0101H =
0101

13
KCE Series Micro Processor Controller Communication Manual
14

Register Address
MODBUS
Parameters Setting Range
Hex Decimal Function Code

0000H = K1
0001H = K2
0002H = K3
0003H = K4
0004H = K5
0005H = K6
0006H = J1
0007H = J2
0008H = J3
0009H = J4
000AH = J5
000BH = J6
000CH = R1
000DH = R2
000EH = S1
000FH = S2
0010H = B1
0011H = E1
0012H = E2
0013H = N1
0014H = N2
0015H = T1
0016H = T2
0017H = T3
0018H = W1
0019H = W2
001AH = PL1
INPT 0048 072 03/06/10H 001BH = PL2
Input type selection
001CH = U1
001DH = U2
001EH = U3
001FH = L1
0020H = L2
0021H = JP1
0022H = JP2
0023H = JP3
0024H = JP4
0025H = JP5
0026H = JP6
0027H = DP1
0028H = DP2
0029H = DP3
002AH = DP4
002BH = DP5
002CH = DP6
002DH = JP.1
002EH = JP.2
002FH = JP.3
0030H = JP.4
0031H = JP.5
0032H = JP.6
0033H = AN1
0034H = AN2
0035H = AN3
0036H = AN4
0037H = AN5
KCE Series Micro Processor Controller Communication Manual
15

Register Address
MODBUS
Parameters Setting Range
Hex Decimal Function Code

INLO 0049 073 03/06/10H


Analog input zero calibration

INH1 004A 074 03/06/10H


Analog input span calibration
0000H =
0000
DP 0001H =
Decimal point position 004B 075 03/06/10H 000.0
0002H =
00.00
0003H =
PVLO 004C 076 03/06/10H
PV set-point low limit

PVHI 004D 077 03/06/10H


PV set-point high limit
2NLO
Remove input low limit 004E 078 03/06/10H
calibration

2NHI
Remove input high limit 004F 079 03/06/10H
calibration

A1D1 0050 080 03/06/10H 0~19


Alarm mode of AL1

A1T1 0051 081 03/06/10H


Alarm time of AL1

A2D2 0052 082 03/06/10H 0~19


Alarm mode of AL2

A2T2 0053 083 03/06/10H


Alarm time of AL2

A3D3 0054 084 03/06/10H 0~19


Alarm mode of AL3

A3T3 0055 085 03/06/10H


Alarm time of AL3

HYSA 0056 086 03/06/10H


Hystersis of all alarm

LO01 0057 087 03/06/10H


OUT1 zero calibration

HI01 0058 088 03/06/10H


OUT1 span calibration

LO02 0059 089 03/06/10H


OUT2 zero calibration
KCE Series Micro Processor Controller Communication Manual

16

Register Address
MODBUS
Parameters Setting Range
Hex Decimal Function Code

HI02 005A 090 03/06/10H


OUT2 span calibration
LO03 005B 091 03/06/10H
TRS zero calibration
HI03 005C 092 03/06/10H
TRS span calibration
R-Y 005D 093 03/06/10H
Full run time of motor valve
W-T
Full run time of proportional 005E 094 03/06/10H
motor valve
STAL 005F 095 03/06/10H
Reverse output of AL1

ID. 0060 096 03H 0~255


ID number
0=O81
1=O82
STOP 2=E81
119 03H
Communication bits 0077 3=E82
4=N81
5=N82
BAUD 0061 097 03H 0~7
Baud rate
SVOS 0062 098 03/06/10H
SV compensation
PVOS 0063 099 03/06/10H
PV low compensation

0000H=C
C-F
0001H=F
Unit of PV and SV
0064 100 03/06/10H 0002H=A

S-F
Soft filter 0065 101 03/06/10H 0 ~ 5000
PVHS
PV high compensation 0066 102 03/06/10H
H-C 0000H=HEAT
Out1 Control mode 0067 103 03/06/10H 0001H=COOL
+-
Digital Filter offset value 0068 104 03/06/10H
FILT 0~5000
PV filter 0069 105 03/06/10H
KCE Series Micro Processor Controller Communication Manual

17

Register Address
MODBUS
Parameters Setting Range
Hex Decimal Function Code

St-1
006A 106 03/06/10H
Hide / display parameter

St-2 0000H=0000
006B 107 03/06/10H
Hide / display parameter 0001H=0000
St-3 0010H=0010
006C 108 03/06/10H 0011H=0011
Hide / display parameter
0100H=0100
St-4 0101H=0101
006D 109 03/06/10H
Hide / display parameter
0110H=0110
St-5 0111H=0111
006E 110 03/06/10H
Hide / display parameter 1000H=1000
St-6 1001H=1001
006F 111 03/06/10H 1010H=1010
Hide / display parameter
St-7 1011H=1011
0070 112 03/06/10H 1100H=1100
Hide / display parameter
St-8 1101H=1101
0071 113 03/06/10H 1110H=1110
Hide / display parameter
St-9 1111H=1111
0072 114 03/06/10H
Hide / display parameter
St-0 0073 115 03/06/10H
Hide / display parameter
INP2 0074 116 03/06/10H 0~2
Hide / display parameter
OUTY 0075 117 03/06/10H 0~5
Output mode selection
VER
Firmware version 00F5 245 03H 104
OUT%
Output percentage 0088 136 03H 0~1000
KCE Series Micro Processor Controller Communication Manual
18

Register Address
MODBUS
Parameters Setting Range
Hex Decimal Function Code
0000 0000 0000 0000

215 ~ 20

215 : Message 2NLO

214 : Message 2NHI

213 : Message 1NLO

212 : Message 1NHI

211 : Message 2NER

210 : Message CJER

OBIT 29 : Message ADER


Controller information
bit 28 : Message IFER
00f4 244 03H
27 : MAN LED

26 : PRO LED

25 : AL3 LED

24 : AL2 LED

23 : AL1 LED

22 : AT LED

21 : OUT2 LED

20 : OUT1 LED
CV 00F3 243 03H 0~999
CT current value
PV 0080 128 03H -1999~9999
Process value

100209

KCE

You might also like