实现方案导入导出,根据选项自动生成文件名

This commit is contained in:
ranchuan
2024-01-15 18:07:02 +08:00
parent 5b3786dd36
commit 89ef0a6514
20 changed files with 2141 additions and 252 deletions

View File

@@ -32,7 +32,7 @@ async function fac_bind()
epro2_oper.cmd = 13;
await Ep2_HeartBeat_SW();
ShowCommMes("注码脚本运行启动 fac_bind_run = "+fac_bind_run,MesgType.MESG_TYPE_INFO);
var flow_str = epro2_oper.uid.slice(11,15);
var flow_str = epro2_oper.uid.slice(12,16);
var flow_num = parseInt(flow_str,10);
var rtv = 0;
while(fac_bind_run > 0)
@@ -54,7 +54,7 @@ async function fac_bind()
await Ep2_EnMTPWrite(1);
await TransSleep(300);
var last_uid = epro2_oper.uid;
var uidhead = epro2_oper.uid.slice(0,11);
var uidhead = epro2_oper.uid.slice(0,12);
epro2_oper.uid = uidhead + IntFormat(4,flow_num);
epro2_oper.cmd = 20;
await Ep2_WriteUID();