Denso RC5 Especificaciones Pagina 122

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 138
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 121
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.
Vista de pagina 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 137 138

Comentarios a estos manuales

Sin comentarios