110
11.6 Coding Sample for Transmission Error Recovery
'!TITLE "<Title>"
PROGRAM sample
.
.
.
DEFPOS lp1(10) 'Local position variable.
DEFINT li1 'Local integer variable.
,
.
.
li1 = 0 'Initialize li1.
.
.
.
WHILE li1 < 10 'Repeat pre-decision.
.
.
.
INPUT #2,lp1(li1) 'Get data on line #2 into
'li1(li1).
com_state #2,I280 'Get communication status into I280.
IF I280 < 0 THEN 'If an error occurs, the value is –1.
PRINT #2,"R" 'Output retry instruction.
ELSE
PRINT #2,"A" 'Output "normal receive".
li1=li1+1
END IF
.
.
.
.
WEND 'Repeat 10 times.
End
In the coding sample above,
It is assumed that "R" is a retry command that requires the external equipment to
make retry operation and "A" is an acknowledge command for normal data reception.
11.7 Limited Warranty
DENSO WAVE provides the user with the communications function built in the
controller for using the RS-232C extension board. It does not give you any warranty
or technical support for the extension board itself.
Comments to this Manuals