
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