undefined undefined
{}

我们的品牌

欢迎访问施耐德电气网站

欢迎访问我们的网站。
我们今天能为您提供什么帮助?
Vijeo Designer中如何编写脚本取出一个字的高八位与低八位?
问题描述:
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



是否有帮助?

探索更多
范围:
探索更多
范围: