macro_command main()
char Type[16]
short Pe,Ue,Ie,f,n,nMax
short ID
GetData(Type[0], "MT8101iE", RW, 31, 16)
GetData(Pe, "MT8101iE", RW, 39, 1)
GetData(Ue, "MT8101iE", RW, 40, 1)
GetData(Ie, "MT8101iE", RW, 41, 1)
GetData(f, "MT8101iE", RW, 42, 1)
GetData(n, "MT8101iE", RW, 43, 1)
GetData(nMax, "MT8101iE", RW, 44, 1)
GetData(ID, "MT8101iE", RECIPE, "Moto.Selection")
RecipeSetData(Type[0], "Moto.Type", ID)
RecipeSetData(Pe, "Moto.Pe_kW", ID)
RecipeSetData(Ue, "Moto.Ue_V", ID)
RecipeSetData(Ie, "Moto.Ie_A", ID)
RecipeSetData(f, "Moto.f_Hz", ID)
RecipeSetData(n, "Moto.n_rpm", ID)
RecipeSetData(nMax, "Moto.nMax_rpm", ID)
end macro_command
上面宏在EBproV501.02_20150129上执行正常,在EBproV501.04_20150424就有问题
具体为下面这一行代码
RecipeSetData(Type[0], "Moto.Type", ID)
Type[0]为16个ascii字符的开始地址,"Moto.Type"为配方内8word长度,EBproV501.04_20150424此行只能写一字,也就是16bit
EBproV501.02_20150129能正常将Type[0]开始的16个ascii字符写到"Moto.Type"
希望修复此BUG |