PC端上位电路对接基恩士PLC通信获取字符串reinterpret_cast
short yyy[20];
yyy[0] = 21578;
yyy[1] = 12882;
yyy[2] = 13645;
yyy[3] = 12874;
yyy[4] = 13141;
yyy[5] =19032;
yyy[6] = 21832;
yyy[7] = 00050;
for (int i = 0; i < 10; ++i)
{
yyy[i] = short(int(yyy[i] << 8) | (int(yyy[i] >> 8) & 0xFF));
}
版权声明:本文为博主整理文章,转载请说明。 联系: iyouqingi@163.com