Mitsubishi Electric KD Series User Manual page 56

Contact image sensor for web surface inspection
Hide thumbs Also See for KD Series:
Table of Contents

Advertisement

4-2 Communication ( structure of command )
4-2-3 Command format and examples
1) Input
Command
Parameter
( 2Byte )
( 2Byte )
2) Output
Result Parameter ( DATA ) ( DATA ) End code
( 2Byte ) ( 2Byte )
3) Detail
<Parameter>
MSB
LSB
0
00
00000
R/W
2bit
0: Write
Mode setting
1: Read
<DATA>
One byte of hexadecimal data translates to 2 byte of ASCII cord.
00 ( 0 × 30 0 × 30 )~ FF ( 0 × 46 0 × 46 )
Hexadecimal A-F should be translated as a capital letter. ( 0 × 41 ~ 46 )
<Result > Response for Input procedure
00 ( 0 × 30 0 × 30 )
finish normal
F1 ( 0 × 46 0 × 31 )
irregular command input
F2 ( 0 × 46 0 × 32 )
out of range of parameter
F3 ( 0 × 46 0 × 33 )
out of address mapping
F4 ( 0 × 46 0 × 34 )
mismatch of No. of data
FF ( 0 × 46 0 × 46 )
other error
Example : to set baud rate as 19.2kbaud
Input
Command
Parameter End code
BR
01
=>
0x42 0x52 0x30 0x31 0x0d
TM-XG537C
( DATA ) ( DATA ) End code
( 2Byte ) ( 2Byte )
CR
( 2Byte ) ( 2Byte )
CR
Lower 5bit
Control parameter
CR
COPYRIGHT © 2020 MITSUBISHI ELECTRIC CORPORATION. ALL RIGHTS RESERVED.
【 Command 】
The structure of UART command are shown on left side
of page . Refer the function specification for the detail of
commands .
【 Remarks 】
1 ) Command system are different between AX/AX2 and
MX series .
2 ) As far as there is no designation especially, an ASCII
code is used for Commands and parameters.
A parameter or data of hexadecimal transcription is
handled by ASCII cord of each 4bit unit hexadecimal data.
3 ) It's possible to communicate by the same command for
all size of MX, and MX-NL series product .
4 ) A detail setting procedure is shown on chapter 5 of this
document and the function specification .
56

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents