|
@ -74,6 +74,10 @@ void L2_register_init() |
|
|
G.total_weight = 0; |
|
|
G.total_weight = 0; |
|
|
G.pi_weight = 0; |
|
|
G.pi_weight = 0; |
|
|
G.jing_weight = 0; |
|
|
G.jing_weight = 0; |
|
|
|
|
|
G.ch_weight[0] = 0; |
|
|
|
|
|
G.ch_weight[1] = 0; |
|
|
|
|
|
G.ch_weight[2] = 0; |
|
|
|
|
|
G.ch_weight[3] = 0; |
|
|
G.thrombolytic_val = G.bolus_val = G.hold_val = 0; |
|
|
G.thrombolytic_val = G.bolus_val = G.hold_val = 0; |
|
|
G.asga.xaxis = G.asga.yaxis = G.asga.zaxis = 0; |
|
|
G.asga.xaxis = G.asga.yaxis = G.asga.zaxis = 0; |
|
|
G.rfidval = G.rfidHospitalNo = 0; |
|
|
G.rfidval = G.rfidHospitalNo = 0; |
|
@ -90,7 +94,7 @@ void L2_register_init() |
|
|
G.md_slaver_info[0].slaver = SLAVER_DW20_ID; |
|
|
G.md_slaver_info[0].slaver = SLAVER_DW20_ID; |
|
|
G.md_slaver_info[0].oper = MODBUS_OPER_READ; |
|
|
G.md_slaver_info[0].oper = MODBUS_OPER_READ; |
|
|
G.md_slaver_info[0].reg = 0x02; |
|
|
G.md_slaver_info[0].reg = 0x02; |
|
|
G.md_slaver_info[0].regnum = 0x02; |
|
|
G.md_slaver_info[0].regnum = 0x12; |
|
|
G.md_slaver_info[0].mask = 2; //0->æ— æ•ˆ 1:暂时有效 2->永久有效
|
|
|
G.md_slaver_info[0].mask = 2; //0->æ— æ•ˆ 1:暂时有效 2->永久有效
|
|
|
|
|
|
|
|
|
G.md_slaver_info[1].slaver = SLAVER_ASGA03_ID; //倾角XYZ
|
|
|
G.md_slaver_info[1].slaver = SLAVER_ASGA03_ID; //倾角XYZ
|
|
@ -164,7 +168,7 @@ void L2_register_init() |
|
|
G.ccmd_slaver_info[3].slaver = SLAVER_TCP_SERVER_ID; //�务�
|
|
|
G.ccmd_slaver_info[3].slaver = SLAVER_TCP_SERVER_ID; //�务�
|
|
|
G.ccmd_slaver_info[3].oper = MODBUS_OPER_WRITE_M; |
|
|
G.ccmd_slaver_info[3].oper = MODBUS_OPER_WRITE_M; |
|
|
G.ccmd_slaver_info[3].reg = 0x10; |
|
|
G.ccmd_slaver_info[3].reg = 0x10; |
|
|
G.ccmd_slaver_info[3].regnum = 0x0B; |
|
|
G.ccmd_slaver_info[3].regnum = 0x13; |
|
|
G.ccmd_slaver_info[3].bytes = G.ccmd_slaver_info[3].regnum * 2; |
|
|
G.ccmd_slaver_info[3].bytes = G.ccmd_slaver_info[3].regnum * 2; |
|
|
G.ccmd_slaver_info[3].buf = (U8*)&G.jing_weight; |
|
|
G.ccmd_slaver_info[3].buf = (U8*)&G.jing_weight; |
|
|
G.ccmd_slaver_info[3].mask = 0; |
|
|
G.ccmd_slaver_info[3].mask = 0; |
|
|