-
Notifications
You must be signed in to change notification settings - Fork 1
/
KBLS0102.py
54 lines (53 loc) · 9.93 KB
/
KBLS0102.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
from socket import *
KBLS0102 = []
KBLS0102 += [[ 0, TYPE_ASCII, 8, "Module Name", 0, 0, None, False, "Module Name,No range" ]]
KBLS0102 += [[ 8, TYPE_ASCII, 4, "User Name", 0, 0, None, False, "User Name,the abbreviation of user,ASCII" ]]
KBLS0102 += [[ 12, TYPE_HEX, 4, "Serial Number", 0, 0, None, False, "Serial Number,No range" ]]
KBLS0102 += [[ 16, TYPE_HEX, 4, "Software Version", 0, 0, None, False, "Software Version,No range" ]]
KBLS0102 += [[ 20, TYPE_BITS, 0, "Startup H-Pedel", 0, 1, None, True, "0:disable,1:enable,Startup H-Pedel Function,if throttle has effective signal when power-on,disable output and report this fault." ]]
KBLS0102 += [[ 20, TYPE_BITS, 1, "Brake H-Pedel", 0, 1, None, True, "0:disable,1:enable,Brake H-Pedel,if throttle has effective signal when release brake,disable output and report this fault." ]]
KBLS0102 += [[ 20, TYPE_BITS, 2, "NTL H-Pedel", 0, 1, None, True, "0:disable,1:enable,Neutral H-Pedel,if throttle has effective signal from N to Drive,disable output and report this fault." ]]
KBLS0102 += [[ 20, TYPE_BITS, 6, "Three Gears Switch", 0, 1, None, True, "0:disable,1:enable,if enable Three Gears with Forward,Rev,NTL,if disable no NTL." ]]
KBLS0102 += [[ 20, TYPE_BITS, 7, "Boost", 0, 1, None, True, "0:disable,1:enable,if enable Max Current Output when power on the Boost switch." ]]
KBLS0102 += [[ 21, TYPE_BITS, 0, "Foot Switch", 0, 1, None, True, "0:disable,1:enable,if switch on,the throttle pedal is effective." ]]
KBLS0102 += [[ 21, TYPE_BITS, 1, "SW Level", 0, 1, None, False, "0:SW Low-Level effective;1:SW High-Level effective" ]]
KBLS0102 += [[ 21, TYPE_BITS, 3, "0,HIM;1,KIM", 0, 1, None, False, "Controller Type,0:HIM;1:KIM." ]]
KBLS0102 += [[ 21, TYPE_BITS, 7, "Change Dir", 0, 1, None, True, "0:disable,1:enable,If the direction of Motor is different with correct direction,you can set the bit." ]]
KBLS0102 += [[ 22, TYPE_UNSIGNED, 1, "Startup Wait Time", 0, 20, None, True, "Startup Wait Time,Range 0~20." ]]
KBLS0102 += [[ 23, TYPE_UNSIGNED, 2, "Controller Volt", 0, 612, None, False, "Controller Voltage,Range 0~612" ]]
KBLS0102 += [[ 25, TYPE_UNSIGNED, 2, "Low Volt", 0, 1000, None, True, "The min Voltage value of reporting this fault" ]]
KBLS0102 += [[ 27, TYPE_UNSIGNED, 2, "Over Volt", 0, 1000, None, True, "The max Voltage value of reporting this fault" ]]
KBLS0102 += [[ 37, TYPE_UNSIGNED, 1, "Current Percent", 20, 100, None, True, "Current Percent,Range 20~100%" ]]
KBLS0102 += [[ 38, TYPE_UNSIGNED, 1, "Battry Current Limit", 20, 100, None, True, "Battry Current Limit,Limit the max value of Battry Current,Range 20~100" ]]
KBLS0102 += [[ 39, TYPE_UNSIGNED, 1, "Battry Current Weak", 20, 100, None, True, "Battry Current Limit Weaking,the rest per of Weaking Current,generally 1.15 times of Low Volt CUT,Range 20~100." ]]
KBLS0102 += [[ 92, TYPE_UNSIGNED, 1, "TPS Low", 0, 20, None, True, "If lower than the value,report the fault of TPS Type,Range 0~20%" ]]
KBLS0102 += [[ 93, TYPE_UNSIGNED, 1, "TPS High", 80, 100, None, True, "If hifher than the value,report the fault of TPS Type,Range 80~100%" ]]
KBLS0102 += [[ 94, TYPE_UNSIGNED, 1, "Acc Speed", 10, 100, None, True, "Acc Speed,the smaller the value is,the faster the speed accelerate,Range 10~100." ]]
KBLS0102 += [[ 95, TYPE_UNSIGNED, 1, "TPS Type", 0, 3, None, True, "TPS Type,0:None,1:0-5V,2:1-4V,3:0-5K" ]]
KBLS0102 += [[ 96, TYPE_UNSIGNED, 1, "TPS Dead Low", 0, 80, None, True, "TPS Dead Zone Low,Range 0~40%." ]]
KBLS0102 += [[ 97, TYPE_UNSIGNED, 1, "TPS Dead High", 120, 200, None, True, "TPS Dead Zone High,Range 60~100%." ]]
KBLS0102 += [[ 98, TYPE_UNSIGNED, 1, "TPS Forw MAP", 0, 100, None, True, "TPS Forward MAP,Range 0~100,max TPS per when TPS is 50% Forward,determine Curvity." ]]
KBLS0102 += [[ 99, TYPE_UNSIGNED, 1, "TPS Rev MAP", 0, 100, None, True, "TPS Reversed MAP,Range 0~100,max TPS per when TPS is 50% Reversed,determine Curvity." ]]
KBLS0102 += [[ 105, TYPE_UNSIGNED, 2, "Max Output Fre", 50, 1000, None, True, "Max Output Frequency,Range 50~1000Hz" ]]
KBLS0102 += [[ 107, TYPE_UNSIGNED, 2, "Max Speed", 0, 60000, None, True, "Max speed,Range 0~60000rpm" ]]
KBLS0102 += [[ 109, TYPE_UNSIGNED, 1, "Max Forw Speed%", 30, 100, None, True, "Forward Speed Limit,Range 30~100" ]]
KBLS0102 += [[ 110, TYPE_UNSIGNED, 1, "Max Rev Speed%", 20, 100, None, True, "Reverse Speed Limit,Range 20~100" ]]
KBLS0102 += [[ 228, TYPE_UNSIGNED, 2, "Brk_Speed Limit", 50, 500, None, True, "Brk Speed Limit,run regen brk when Motor speed is higher than this,Range 50~500" ]]
KBLS0102 += [[ 230, TYPE_UNSIGNED, 1, "RLS_TPS Brk Per%", 0, 50, None, True, "RLS_TPS Braking Percent,the per of Rleasing Pedel BRK in max BRK,Range 0~50" ]]
KBLS0102 += [[ 231, TYPE_UNSIGNED, 1, "NTL Brk Per%", 0, 50, None, True, "NTL Braking Percent,the per of Neutral Braking in max BRK,Range 0~50" ]]
KBLS0102 += [[ 239, TYPE_UNSIGNED, 1, "Accel Time", 0, 250, None, True, "Accel Time,the time of TPS Torque from 0 to max,0.1~25.0s,accuracy 0.1s" ]]
KBLS0102 += [[ 240, TYPE_UNSIGNED, 1, "Accel Release Time", 0, 250, None, True, "Accel Release Time,the time of TPS Torque form max to 0,0.1~25.0s,accuracy 0.1s" ]]
KBLS0102 += [[ 241, TYPE_UNSIGNED, 1, "Accel Release Time", 0, 250, None, True, "Brake Time,Accel Time,the time of Brake Torque from 0 to max,0.1~25.0s,accuracy 0.1s" ]]
KBLS0102 += [[ 242, TYPE_UNSIGNED, 1, "Brake Release Time", 0, 250, None, True, "Brake Release Time,the time of Brake Torque form max to 0,0.1~25.0s,accuracy 0.1s" ]]
KBLS0102 += [[ 243, TYPE_UNSIGNED, 1, "BRK_SW Brk Per%", 0, 100, None, True, "BRK_SW Braking Percent,the per of BRK_SW in max braking,Range 0~100" ]]
KBLS0102 += [[ 250, TYPE_UNSIGNED, 2, "Torque Speed Kp", 0, 32767, None, True, "Speed Percent Kp in Torque mode,Range 0~32767,actually used 0~3.9999" ]]
KBLS0102 += [[ 252, TYPE_UNSIGNED, 2, "Torque Speed Ki", 0, 32767, None, True, "Speed Integral Ki in Torque mode,Range 0~32767,actually used 0~3.9999" ]]
KBLS0102 += [[ 254, TYPE_UNSIGNED, 2, "Speed Err Limit", 50, 4095, None, True, "Speed Error Limit in Torque mode,Range 50~4095" ]]
KBLS0102 += [[ 268, TYPE_UNSIGNED, 1, "Motor Poles", 2, 32, None, True, "Motor Poles,The pole number*2,Range 2~32" ]]
KBLS0102 += [[ 269, TYPE_UNSIGNED, 1, "Speed Sensor Type", 0, 4, None, True, "Speed Sensor Type,0:NO,1:Quadrature encoder,2:Hall,3:Resolver" ]]
KBLS0102 += [[ 272, TYPE_UNSIGNED, 1, "Resolver Poles", 2, 32, None, True, "Resolver Poles,he pole number*2,Range 2~32" ]]
KBLS0102 += [[ 318, TYPE_UNSIGNED, 1, "Motor Temp Sersor", 0, 1, None, True, "Motor Temp Sersor,0:None;1:KTY83-122;2:KTY84-130 or 150." ]]
KBLS0102 += [[ 319, TYPE_UNSIGNED, 1, "High Temp Cut℃", 60, 170, None, True, "Motor High Temp Cut Temp,nominal value 130℃,Range 60~170" ]]
KBLS0102 += [[ 320, TYPE_UNSIGNED, 1, "High Temp Resume", 60, 170, None, True, "Motor High Temp Resume Temp,nominal value 110℃,Range 60~170" ]]
KBLS0102 += [[ 321, TYPE_UNSIGNED, 1, "High Temp Str℃", 0, 170, None, True, "Motor High Temp Str Temp,nominal value 100℃,Range 0~170" ]]
KBLS0102 += [[ 322, TYPE_UNSIGNED, 1, "High Temp Weak%", 0, 100, None, True, "Motor High Temp Weak Percent,nominal value 50%,Range 0~100" ]]