这是08年写的一个 并网带电池逆变器 的通讯工具,和普通的串口调试器相比,多了一个【脚本】功能。能够通过【脚本】完成通讯测试。
PC发给DSP的01命令
01 10 1B 00 CF A3 00 00 90 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
电池放电
01 10 1B 00 CF A2 00 00 38 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
电池充电
01 10 1B 00 CF A1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
并网
01 10 1B 00 CF A4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
独立逆变
2. 主设备运行参数设定 (命令=10H) 共33个字节
DSP回复01命令给PC格式:
状态信息S1S2
Flag_State
#01400H 自然停机
#00040H 频率异常S1 = 40, S2 = 00
#00080H 孤岛
#00800H 模块故障
#01300H 手动关机
#02300H PV母线过压
#02400H PV母线欠压
#00001H 电池过压
#00002H 电池欠压
#00008H 交流过压
#00010H 交流欠压
#02500H 逆变电压异常
#00020H 输出过载
PC发送50命令给DSP
DSP回复50命令给PC类型同01命令
PC实时查询DSP内部数据命令(03命令)
01 03 08 00 CF 00 00 00 00 00 00 00
DSP回复03命令给PC格式同01命令
SEED-XDSUSB2.0 3/5V