Baumer GXM7W Bedienungsanleitung Seite 7

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 7
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 6
Manual_RS485_SLIN_BIDE_EN.doc 7/7 Baumer IVO GmbH & Co. KG
04.05.11 Villingen-Schwenningen, Germany
3.3. Check sum
Position data are added up to equal the check sum. Completed by address and control bit, the value
configures the encoder control word (footer word).
M_CHECK_SUM:
CLR C ;
MOV A,RESPONSE_SLIN_BYTE1 ; 1. byte position data
ADD A,RESPONSE_SLIN_BYTE2 ; 2. byte position data (if relevant)
ADD A,RESPONSE_SLIN_BYTE3 ; 3. byte position data (if relevant)
ADD A,RESPONSE_SLIN_BYTE4 ; 4. byte position data (if relevant)
; configure control word
ANL A,#70h ;
ORL A,TLNADR ; OR user address
SETB ACC.3 ; set bit 2**3 signature control word
SETB ACC.7 ; set bit 2**7 signature control word
MOV CONTROL_WORD,A ; control word completed
Seitenansicht 6
1 2 3 4 5 6 7

Kommentare zu diesen Handbüchern

Keine Kommentare