问题描述:
Vijeo Designer中如何编写脚本取出一个字的高八位与低八位?所属产品线:
Vijeo Designer解决方法:
int a,b,c;
a=var1_16.getIntValue(); //get the hex value from the var1_16
b=(0xff00&a)>>8; // get the high byte value
c=0x00ff&a; // get the low byte value
var2_high.write(b); //write the high byte value into var2_high
var3_low.write(c); //write the low byte value into var3_low
是否有帮助?

