plc梯形圖就是啟,保,停的梯形圖啊
vb語(yǔ)句如下
private sub command1_click()
dim outstring as string
mscomm1.outbuffercount=0
mscomm1.inbuffercount=0
outstring=chr(&h2)+"7"+"0008"+chr(&h3)+"02"
mscomm1.output=outstring
ebd sub
這是啟動(dòng)的語(yǔ)句m0 停止的語(yǔ)句m1和上面一樣,只是地址不同:0108 03