Rockwell-automation Logix5000 Controllers Produced and Consumed Tags P Manuel d'utilisateur Page 34

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 40
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 33
Chapter 2 Produce a Large Array
When the offset value in array_ack[0] is equal to the current offset value, the consumer has copied the packet to the array; so the rung checks for more data to transfer. If the offset value
plus 123 is less than the size of the array, there is more data to transfer; so the rung increases the offset by 123. Otherwise, there is no more data to transfer; so the rung resets the offset
value, logs the transfer time, and resets the timer. In either case, the rung uses the new offset value to create a new packet of data, appends the new offset value to the packet, and clears
the acknowledge element of the packet (packet[124]).
If the current transfer time is greater than the maximum transfer time, update the maximum transfer time. This maintains a record of the longest time to transfer data.
34 Rockwell Automation Publication 1756-PM011F-EN-P - October 2014
Vue de la page 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 40

Commentaires sur ces manuels

Pas de commentaire