EasyManuals Logo
Home>Fastech>Controller>Ezi-Step Plus-R

Fastech Ezi-Step Plus-R User Manual

Fastech Ezi-Step Plus-R
114 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #7 background imageLoading...
Page #7 background image
- 7 -
7
Communication Protocols
1) Overview of communication FRAME
2) Basic structure of Frame
Header
Frame Data
Tail
0xAA 0xCC
5~252 bytes
0xAA 0xEE
0xAA : Delimited byte
0xAA 0xCC: Indicate header of the frame .
0xAA 0xEE: Indicate tail of the frame .
If any of the Frame data is ‘0xAA’, ‘0xAA’ should be added right after it. (byte
stuffing)
If any data following ‘0xAA is not ‘0xAA’, ‘0xCC or ‘0xEE’, it indicates an error.
Detailed
Frame Data
is configured as follows:
Slave ID
Frame type
Data
CRC
1 byte
1 byte
0~248 bytes.
2 bytes
Low byte
High byte
Slave ID: Dive module number (0~15) connected to the PC communication port.
Frame type: Designate command type of relevant frames. For the command type, refer to
Frame Type and Data Configurationsection.
Data: Data structure and length is set according to Frame type. For more information,
refer to Frame Type and Data Configuration section.
CRC: To check an error which occurs during communication, ‘0xA001’ of a polynomial
factor in CRC(Cyclic Redundancy Check ). X16+X15+X2+1 of a polynomial factor in
CRC-16-IBM (Cyclic Redundancy Check) is used. CRC calculation is performed for all items
(Slave ID, Frame type, Data) prior to CRC item.
113CRC Calculation Example
The following program source is included in a file (file name: CRC_Checksum.c) provided with
the product.
1)‘0xA001’of CRC16
const unsigned short TABLE_CRCVALUE[] =
{
0x0000, 0xC0C1, 0xC181, 0x0140, 0xC301, 0x03C0, 0x0280, 0xC241,
0xC601, 0x06C0, 0x0780, 0xC741, 0x0500, 0xC5C1, 0xC481, 0x0440,
0xCC01, 0x0CC0, 0x0D80, 0xCD41, 0x0F00, 0xCFC1, 0xCE81, 0x0E40,
0x0A00, 0xCAC1, 0xCB81, 0x0B40, 0xC901, 0x09C0, 0x0880, 0xC841,
0xD801, 0x18C0, 0x1980, 0xD941, 0x1B00, 0xDBC1, 0xDA81, 0x1A40,
0x1E00, 0xDEC1, 0xDF81, 0x1F40, 0xDD01, 0x1DC0, 0x1C80, 0xDC41,
0x1400, 0xD4C1, 0xD581, 0x1540, 0xD701, 0x17C0, 0x1680, 0xD641,
0xD201, 0x12C0, 0x1380, 0xD341, 0x1100, 0xD1C1, 0xD081, 0x1040,
0xF001, 0x30C0, 0x3180, 0xF141, 0x3300, 0xF3C1, 0xF281, 0x3240,
0x3600, 0xF6C1, 0xF781, 0x3740, 0xF501, 0x35C0, 0x3480, 0xF441,
0x3C00, 0xFCC1, 0xFD81, 0x3D40, 0xFF01, 0x3FC0, 0x3E80, 0xFE41,
0xFA01, 0x3AC0, 0x3B80, 0xFB41, 0x3900, 0xF9C1, 0xF881, 0x3840,
0x2800, 0xE8C1, 0xE981, 0x2940, 0xEB01, 0x2BC0, 0x2A80, 0xEA41,
0xEE01, 0x2EC0, 0x2F80, 0xEF41, 0x2D00, 0xEDC1, 0xEC81, 0x2C40,
PC Communication
Port #n
Ezi-STEP
Plus-R
Sending Frame
Response Frame

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Fastech Ezi-Step Plus-R and is the answer not in the manual?

Fastech Ezi-Step Plus-R Specifications

General IconGeneral
BrandFastech
ModelEzi-Step Plus-R
CategoryController
LanguageEnglish

Related product manuals