发表于:2012/10/17 21:10:50
#0楼
谁帮我看看为什么这个程序只能接受不能发送啊
LD SM0.7
MOVB 16#09, SMB30
S Q0.0, 1
LD SM0.0
TON T37, 50
LD T37
R V0.1, 1
LD V0.1
TON T38, 1
LD T38
MOVB 16#B0, SMB87
MOVB 16#0A, SMB89
MOVW +5, SMW90
MOVB 8, SMB94
RCV VB100, 0
LDN V0.1
XMT VB0, 0
MOVB 8, VB0
= Q0.5
S V0.1, 1
R T37, 1
LD SM0.7
MOVB 16#09, SMB30
S Q0.0, 1
LD SM0.0
TON T37, 50
LD T37
R V0.1, 1
LD V0.1
TON T38, 1
LD T38
MOVB 16#B0, SMB87
MOVB 16#0A, SMB89
MOVW +5, SMW90
MOVB 8, SMB94
RCV VB100, 0
LDN V0.1
XMT VB0, 0
MOVB 8, VB0
= Q0.5
S V0.1, 1
R T37, 1