KinCony KC868-COL Manuale tecnico

HANGZHOU KinCony ELECTRONICS CO.,LTD www.kincony.com
Instructions for the use of KC868-COL
KC868-COL acquisition board is mainly used to Read AI, DI, Temperature, Electric quantity. The
equipment supports 5 channel of 18b20 temperature detection, 16 channel of Digital input signal
detection, 16 channel of Analog input signal detection and RS485 communication smart meter.

HANGZHOU KinCony ELECTRONICS CO.,LTD www.kincony.com
1、Configure IP address
KC868-COL works in LAN mode. The default parameter is shown in the following figure(Pic 1-1):
Pic 1-1
Default parameters:
IP Mode: DHCP (Can be set to Static)
Port: 4196
Work Mode: TCP server
Baud Rate: 115200
2、Instructions for the use of PC software
Open the demo PC software ,input the IP address and port of KC868-COL (Pic 1-1), and click
“Connect”. Pic 2-1:

HANGZHOU KinCony ELECTRONICS CO.,LTD www.kincony.com
Pic 2-1
1、16 Channel Analog Input Unit: V
KC868-COL support 0-5V voltage Analog sensors.
“Read”: Read selected input channel’s data.
“Read ALL”: Read 16 Channels Analog Input channel’s data.
"Auto Read ON":Enable automatically read data according to the time interval.
"Auto Read OFF": Disable automatically read data.
Range Config:
Min and Max is the range of the
equipment.
For example: NO.2 The detection
distance of the water level sensor is 0-100M.
When the voltage is 3.3v, the water level is
100/5*3.3=66M.
2、16 Channel Digital Input
KC868-COLsupport DI signal, it can read the signal status and display in Red/Green color.
“Read”: Read selected DI channel’s data.
“Read ALL”: Read 16 Channels DI channel’s data.
"Auto Read ON":Enable automatically read data according to the time interval.

HANGZHOU KinCony ELECTRONICS CO.,LTD www.kincony.com
"Auto Read OFF": Disable automatically read data.
3、5 Channels Temperature Sensor Unit:℃
KC868-COL support DS18B20 temperature sensor, the temperature value can be displayed in the
window , from -55℃--125℃.
“Read”: Read selected temperature channel’s data.
“Read ALL”: Read 5 Channels temperature.
"Auto Read ON":Enable automatically read data according to the time interval.
"Auto Read OFF": Disable automatically read data.
4、8 Channels Power Meter Unit: KWh
KC868-COL support KinCony’s RS485 power meter. It can read power consumption through RS485
interface. The numbers of power meters needs to be set before use .
“Read”: Read selected power meter’s data.
“Read ALL”: Read all online power meter’s data.
"Auto Read ON":Enable automatically read data according to the time interval.
"Auto Read OFF": Disable automatically read data.
3、RS232 Communication Protocol of Relay Control
KC868-COL has two serial ports, one can send relay control commands to KC868-Hx controller.
Another RS232 serial port connect to computer. The communication protocol is as follows:
No.
1
Control relay
Send
RELAY-SET-255,X1,X2(0/1)
X1 relay number;X2 0--OFF;1--ON
back
RELAY-SET-255,X1,X2(0/1),OK/ERROR
2
Read one
relay state
Send
RELAY-READ-255,X1
X1 relay number;X2 0--OFF;1--ON
back
RELAY-READ-255,X1,X2,OK/ERROR
3
Get input state
Send
RELAY-GET_INPUT-255
back
RELAY-GET_INPUT-255,x,OK/ERROR
4
Input alarm state
Send
RELAY-ALARM-x
X input number
back
RELAY-ALARM-x,OK/ERROR
5
Control all
relays
32
Send
RELAY-SET_ALL-255,D3,D2,D1,D0
Exp:RELAY-SET_ALL-255,255,255,255,255 表示全开
32
back
RELAY-SET_ALL-255,D3,D2,D1,D0,OK/ERROR
RELAY-SET_ALL-255,255,255,255,255,OK
16
Send
RELAY-SET_ALL-255,D1,D0
Exp :RELAY-SET_ALL-255,255,0 means turn on relay16-9
16
back
RELAY-SET_ALL-255,D1,D0,OK/ERROR
RELAY-SET_ALL-255,255,0,OK
8
Send
RELAY-SET_ALL-255,D0
Exp :RELAY-SET_ALL-255,240 means turn on relay8-5
8
back
RELAY-SET_ALL-255,D0,OK/ERROR
RELAY-SET-ALL-255,240,OK
6
Read all
Relays states
Send
RELAY-STATE-255
32
back
RELAY-STATE-255,D3,D2,D1,D0,OK/ERROR
16
RELAY-STATE-255,D1,D0,OK/ERROR
8
RELAY-STATE-255,D0,OK/ERROR

HANGZHOU KinCony ELECTRONICS CO.,LTD www.kincony.com
Notice:
Relay
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
BIN
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
DEC
240
240
240
240
D3
D2
D1
D0
For example:
D3,D2,D1,D0 is 240,240,240,240 , it means
relay32 to 29 is ON, relay 28 to 25 is OFF;
relay24 to 21 is ON, relay 20 to 17 is OFF;
relay16 to 13 is ON, relay 12 to 9 is OFF;
relay 8 to 5 is ON, relay 4 to 1 is OFF;
1 means ON; 0 means OFF
4、RS232/Ethernet Communication Protocol of Read DI,AI,Temperature,Power Meter
1
Get Digital Input
State
Send
AD-GET-INPUT-1-D1 (D1 is the number of input)
EXP:AD-GET-INPUT-1-05 get state of number 5
back
AD-GET-INPUT-1-D1-1/0 (1--Yes,0--None)
AD-GET-INPUT-1-05-1 number 5 has input signal
2
Get All Digital input
States
Send
AD-GET-INPUT-ALL
back
AD-GET-INPUT-ALL-X1-X0
X1–number 16 to 9; X0—number 8 to 1
3
Get ADC State
Send
AD-GET-ADC-1-D1
EXP:AD-GET-ADC-1-05 get state of number 5
back
AD-GET-ADC-1-D1-V (V is the voltage value)
AD-GET-ADC-1-05-4.02 (Voltage value is 4.02V)
4
Get All
ADC States
Send
AD-GET- ADC -ALL
back
AD-GET- ADC-ALL-V1-V2-……-V16
(V1-V16 is the input value)
5
Get temperature
state
Send
AD-GET-TEMP-1-D1
EXP:AD-GET-TEMP-1-05 Get the temp of number 5
back
AD-GET-TEMP-1-D1-T
T is the value of temperature.
AD-GET-TEMP-1-05-28.5
(the temperature is 28.5℃)
6
Get All temperature
states
Send
AD-GET-TEMP-ALL
EXP:AD-GET-TEMP-ALL
back
AD-GET-TEMP-ALL-T1-T2-T3-T4-T5
(T1~T5 is the value of 5 temperatures)
AD-GET-TEMP-ALL-28.38-28.31-28.25-28.31-28.06
7
Set Power meters
numbers
Send
AD-SET-KWH-NUM-N (N is the number)
EXP:AD-SET-KWH-NUM-02 (the number of meters is 2)
Before using , the number of meters should be set
first.
back
AD-SET-KWH-NUM-OK
AD-SET-KWH-NUM-OK
8
Get Power meter
state
Send
AD-GET-KWH-1-D1 (D1 is the number)
EXP:AD-GET-KWH -1-05 Get number 5 value
back
AD-GET- KWH -1-D1-K
AD-GET-KWH -1-05-100.00
(The electricity consumption is 100KWh.)
9
Get All Power meters
states
Send
AD-GET-KWH-ALL
EXP:AD-GET-KWH-ALL
back
AD-GET-KWH-ALL-ID1-K1
...........
AD-GET-KWH-ALL-IDn-Kn (n is the number)
AD-GET-KWH-ALL-1-2.444 Number 1 meter
AD-GET-KWH-ALL-2-6.357 Number 2 meter

HANGZHOU KinCony ELECTRONICS CO.,LTD www.kincony.com
10
Enable automatic
read interval
Send
AD-SET-TIME-ALL-S
(S is the interval time)
EXP:AD-SET-TIME-ALL-05
(the automatic read interval time is 5 seconds)
back
AD-SET-TIME-ALL-OK
AD-SET-TIME-ALL-OK
11
Disable ALL
Automatic read
Send
AD-SET-TIME-ALL-OFF
back
AD-SET-TIME-ALL-OK
12
Turn ON/Turn OFF
Auto Read DI
Send
AD-SET-TIME-INPUT-ON /OFF
back
AD-SET-TIME-INPUT-OK
13
Turn ON/Turn OFF
Auto Read ADC
Send
AD-SET-TIME-ADC-ON/OFF
back
AD-SET-TIME-ADC-OK
14
Turn ON/Turn OFF
Auto Read power
meters
Send
AD-SET-TIME- KWH-ON/OFF
back
AD-SET-TIME-KWH-OK
Notice:
When Read Power Meters, it is necessary to set the number of meters before reading the meters.
Indice

















