利用VB.NET編寫(xiě)上位機(jī),完成了對(duì)XY口的讀寫(xiě),可怎么置位不了M寄存器呢,
我置位M0,再讀出M0的狀態(tài),怎么一直都是“00H”
置位 命令是
dmcmd = "7" + "0100"
readcmd = dmcmd + Chr(3)
readcmd = Chr(2) + readcmd + checksum(readcmd)
retstr = RS232.ReadExisting()
RS232.Write(readcmd)
不知道有什么問(wèn)題啊