西門(mén)子PLC300。上位(vb)從PLC讀上來(lái)的數(shù)據(jù)是倒的?或者說(shuō),PLC存儲(chǔ)器高低位和別人的是反著的?見(jiàn)下。謝謝
這是上位要往PLC寫(xiě)數(shù)據(jù)之前的操作,需要把數(shù)據(jù)倒過(guò)來(lái)一下。
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))
求介紹西門(mén)子存儲(chǔ)器 是倒著的 詳細(xì)學(xué)習(xí)資料(網(wǎng)址也可喲)謝謝!
郵箱
646058138@qq.com