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