Fuling Inverter DZB200 Series User Manual page 50

Dzb300 series high-performance general-purpose inverter, open-loop vector control inverter
Hide thumbs Also See for DZB200 Series:
Table of Contents

Advertisement

DZB Series
6.3.2 Cyclical Redundancy Check (CRC):
The RTU frame format is used. The frame includes frame error det ection field calculated on the basis of
CRC. The CRC field detects the content of the entire frame.The CRC field has two byte s, including 16 bits
of binary values. It is added to the frame after calculation of the transmission device. The receiving
device recalculates
the CRC of the frame, and compares it with the value in the receive d CRC field. If the two CRC values
are not the same, it indicates a transmission error.CRC is first stored in 0xFFFF, and then a process is called
to process over six consecutive bytes in the frame and the value in the current register. Only the 8-bit data
in each character is valid for CRC. The start bit, stop bit and parity check bit are invalid.
During CRC generation, each 8-bit character independently conducts (XOR) with the content of the
register, the result moves to the least significant bit (LSB) direction,and the most signi ficant bit (MSB)is
filled in with 0. LSB is extracted for detection. If LSB is 1, the registe r independently conducts (XOR)
with the preset value; if LSB is 0,the operation will not be conducted.The entire process will be repeated
eight times. After the completion of the last bit (the eight bit), the next 8-bit byte will independently
conduct (XOR) w ith the current value of the register. The final value in the register is the CRC value afte r
the execution of all bytes in the fra me.
The calculation method of CRC is the CRC principle in international standard.Whe n editing CRC
algorithm, the user can refer to the CRC algorithm in related standard, to write a CRC c alculation progra m
that really meets requirement.
A simple func tion for CRC calculation is provided for reference (programmed in C language):
unsigned int crc_cal_value(unsigned char *data_va lue,unsigned char data_length)
{
int I;
unsigned int crc_value=0xffff;
while(data_length--)
{
crc_value^=*data_value++;
for(i=0;i<8;i++)
{
if(crc_value&0x0001)crc_value=(crc_value>>1)^0xa001;
else crc_value=crc_value>>1;
}
}
return(crc_value);
}
In ladder logic, CKSM calculates the CRC value according to the frame content in t ale loop-up method.
This method feat ures simple program, fast operation speed, but wider ROM space of program. Please use
this method prudently in occasions with certain program space requirement.
6.3.3 ASCII Mode Chesk(LRC Check
LRC Check Code is grouped of the value from Address to Data Content,lookup 6.2 c heck code of
communication message above:
,然后 取 的补 码
0x02+0x06+0x00+0x08+0x13+0x88=0xAB
- 93-
Appendix B Serial Communications
2
=0x55
DZB Series
6.4 Definition of Communication Data Ad dress
This part is the defini tion of the communication data addre ss, used to control inverter operation, and
obtain inverter status information and settings of related functional parameters of the inverter.
6.4.1Functional code pa rameter expression rule
To use a functional code serial number as a pa rameter to correspond to the register address, conversion
in hexa decimal notation is needed. For example, the serial number of P5.05 is 82, the address of the
functional address in hexadecimal notation is 0052H.
Ranges of higher/lower bytes are respectively: higher-bit bytes: 00~11; lower-bit bytes: 00~FF.
Note: F
8 group: default settings, do not read or change the parame ters in the group. Some parameters
should not be changed during operation of the inverter. Some paramet ers should not be changed no matter
in which state the inverter is . To change functional code parameters, pay attention to the setting range,
unit and related description of the parameters.
In a ddition, frequency st orage of EEPROM may reduce the service life of the EEPROM. For users,
some functional codes do not need storage in communication mode. Change the value in RAM to meet
the use r requirement. To implement this function, change the most significant bit of the corresponding
functional code address from 0 to 1. For example, functional code P0.12 is not stored in EEPROM
Modify the value in RAM only, and set the address to 800CH. This address can only be used in writing
RAM, cannot be used for reading. It will be an invalid address if it is used for reading.
6.4.2 Address of other func tions:
Address
Function Description
Definition
0001H Forw ard running
0002H Reverse running
0003H Forw ard jogging
0004H Forw ard jogging
1000H
Communication
control
0005H Stop
command
0006H Free stop (emergency stop)
0007H Fault reset
0 0 08 H:Jo gg i ng st o p
0001H Forw ard running
0002H Reverse running
Inverter state
1001H
0003H Inverter standby
0004H Fault
- 94-
Appendix B Serial Co mmunications
R/W
Dat a Meaning
Feature
W/R
R
www.yusto.ru
info@yusto.ru

Advertisement

Table of Contents
loading

Related Products for Fuling Inverter DZB200 Series

Table of Contents