Kce Pid RS485
Kce Pid RS485
KCE Series
Micro Processor Controller
Communication Manual
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
Communication Bits
ID Number
ID Range: 0 ~ 255 2
Baud Rate
110 bps
300 bps
1200 bps
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.
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.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”.
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.
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.
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.5 Data
Data is including setting data high byte and low byte.
Totally, there are 2 bytes.
SV
Set value 0000 000 03/06/10H
0000H=NO
AT 0002 002 03/06/10H
Auto tuning
0001H=YES
SET
Program pattern & segment 0007H 007 03H
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
Register Address
MODBUS
Parameters Setting Range
Hex Decimal Function Code
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
2NHI
Remove input high limit 004F 079 03/06/10H
calibration
16
Register Address
MODBUS
Parameters Setting Range
Hex Decimal Function Code
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
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