Mitsubishi RS232/485/LAN Serial Communication Control Manual Pagina 250

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 349
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 249
Chapter2 Connection to a PLC
2-250
FC2 Read discrete inputs
Reading of Input Relay (I) consecutively
(Request)
Byte 7 FC (Function code)=02
Byte 8-9 Reference No.
Byte 10-11 Number of read bits (1 to 2000 bits)
(Normal response)
Byte 7 FC (Function code)=02
Byte 8 Number of bytes for the response ((number of read bits+7)/8)
From Byte 9 Read data
(Abnormal response)
Byte 7 FC (Function code)=82 (HEX)
Byte 8 Exception code 01 or 02
(Example)
Reading of I100001. 1 bit. The read value is 1.
02 00 00 00 01 => 02 01 01
(Data sequence for read value)
The data sequence for the read value is similar to that of FC1 Read Coils.
Vista de pagina 249
1 2 ... 245 246 247 248 249 250 251 252 253 254 255 ... 348 349

Comentarios a estos manuales

Sin comentarios