Mitsubishi RS232/485/LAN Serial Communication Control Manuel Page 248

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 349
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 247
Chapter2 Connection to a PLC
2-248
FC16 Write multiple registers
Writing to Holding Register (HR) consecutively
(Request)
Byte 7 FC (Function code) = 10 (HEX)
Byte 8-9 Reference No.
Byte 10-11 Number of write words (1 to 100 words)
Byte 12 Number of write bytes (2 x number of write words)
From Byte 13 Write data
(Normal response)
Byte 7 FC (Function code) = 10(HEX)
Byte 8 Reference No.
From Byte 9 Number of write words
(Abnormal response)
Byte 7 FC (Function code) = 90 (HEX)
Byte 8 Exception code 01 or 02
(Example)
Writing to HR400001 (1 word). The write value is 1234 (HEX).
10 00 00 00 01 02 12 34 => 10 00 00 00 01
Vue de la page 247
1 2 ... 243 244 245 246 247 248 249 250 251 252 253 ... 348 349

Commentaires sur ces manuels

Pas de commentaire