Rockwell-automation 1771-DB BASIC MODULE Manual de usuario Pagina 331

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 394
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 330
Chapter
Call Routines 69–127
13
13 -73
IndicatesCode
D5
data conversion error
D6 the scanner is not able to communicate with a 1771 chassis
adapter
D7 the adapter is not able to communicate with the module
D8 the 1771 module response was not valid
D9 duplicated label
DA file is open – another station owns it
DB another station is the program owner
Syntax
PUSH type of PLC WRITE command
PUSH remote PLC node address
PUSH file number of remote PLC
PUSH file type on remote PLC
PUSH starting word offset on remote PLC
PUSH number of elements to be transferred
PUSH message time-out value
PUSH selection of BTW buffer or internal string
PUSH
1
PUSH string number
CALL
123
POP CALL 123 status
Example
>15
PUSH 64: CALL 4: REM SET BLOCK TRANSFER WRITE LENGTH
>
16 PUSH 64: CALL 5: REM SET BLOCK TRANSFER READ LENGTH
>
20 PUSH 5 : REM PLC-5 FILE
>
30 PUSH 0 : REM PLC-5 NODE ADDRESS
>
40 PUSH 7 : REM PLC-5 FILE NUMBER
>
50 PUSH ASC(N) : REM PLC-5 FILE TYPE
>
60 PUSH 0 : REM STARTING WORD OFFSET FOR PLC-5
>
70 PUSH 20 : REM NUMBER OF WORDS TO TRANSFER
>
80 PUSH 10 : REM COMMAND TIME-OUT VALUE (X100MS)
>
90 PUSH 0 : REM USE BTW BUFFER
>
100 PUSH 1 : REM ALWAYS 1
>
110 PUSH 0 : REM STRING NUMBER–NA FOR THIS EXAMPLE
>
120 CALL 123
>
130 POP S : REM STATUS OF THE CALL
>
140 IF (S<>0) THEN PRINT “UNSUCCESSFUL CALL 123 SETUP”
Vista de pagina 330
1 2 ... 326 327 328 329 330 331 332 333 334 335 336 ... 393 394

Comentarios a estos manuales

Sin comentarios