Error Code - TECO E510s Series Instruction Manual

Hide thumbs Also See for E510s Series:
Table of Contents

Advertisement

 CRC calculate program
UWORD ch_sum ( UBYTE long , UBYTE *rxdbuff ) {
BYTE i = 0;
UWORD wkg = 0xFFFF;
while ( long-- ) {
wkg ^= rxdbuff++;
for ( i = 0 ; i < 8; i++ ) {
if ( wkg & 0x0001 ) {
wkg = ( wkg >> 1 ) ^ 0xa001;
}
else {
wkg = wkg >> 1;
}
}
}
return( wkg );
}
 Error Code
ASCII Mode
STX
':'
'0'
Address
'1'
'8'
Function
'6'
Exception
'5'
code
'1'
'2'
LRC Check
'8'
'CR'
END
'LF'
During a communication error the drive will response with an Exception Code and send a
message back to the main system consisting of a Function Code that is "ANDED (and 80h)"
with 80 Hex.

Error Code

01
Function code error
02
Register number error
03
DATA setting error
04
Register number is over 32
RTU Mode
SLAVE Address
Function
Exception code
CRC-16
Content
AP 3-4
02H
83H
52H
High
C0H
Low
CDH

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents