I am using CPU317 and CP340 RS422 mode. I am trying with the sample prog given below. I checked the output in Hperterminal it is nothing. But Tx LED in CP340 is blinking every second. No errors.
AN #breq
NOT
NOT
= #breq //To change the breq
CALL "P_SEND" , "DB_P_SEND"
REQ :=#breq
R :=#bAbReq
LADDR :=256
DB_NO :=10
DBB_NO:=0
LEN :=40
DONE :=#BDone
ERROR :=#bError
STATUS:=#wStatus
njv
AN #breq
NOT
NOT
= #breq //To change the breq
CALL "P_SEND" , "DB_P_SEND"
REQ :=#breq
R :=#bAbReq
LADDR :=256
DB_NO :=10
DBB_NO:=0
LEN :=40
DONE :=#BDone
ERROR :=#bError
STATUS:=#wStatus
njv