西门子PLC300。上位(vb)从PLC读上来的数据是倒的?或者说,PLC存储器高低位和别人的是反着的?见下。谢谢
这是上位要往PLC写数据之前的操作,需要把数据倒过来一下。
CopyMemory pReadBuffer1(0), a, 4
pReadBuffer(0) = pReadBuffer1(3)
pReadBuffer(1) = pReadBuffer1(2)
pReadBuffer(2) = pReadBuffer1(1)
pReadBuffer(3) = pReadBuffer1(0)
MyHex = field_write_ex6(100, 2, 20, 12, 12, pReadBuffer(0))
求介绍西门子存储器 是倒着的 详细学习资料(网址也可哟)谢谢!
邮箱
646058138@qq.com