Mitsubishi Electric KD Series User Manual page 67

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

Advertisement

5-2 Communication Control(Format)
5-2-2 UART Commination Command Format and Example
1) Register Write
Example: Save setting data on UserSet_1_Save
Send: 0x40 0x00 0x04 0x00 0x00 0x72 0x00 0x00 0x00 0x00 0x01 0x0D
Receive: 0x00 0x00 0x00 (Operation Succeed)
2) Register Read
Example: Read setting data from UserSet_BootSet_select
Send : 0x00 0x00 0x04 0x00 0x00 0x72 0x40 0x00 0x00 0x00 0x00 0x0D
Example: In case of selecting "User Setting1"
Receive : 0x00 0x00 0x04 0x00 0x00 0x00 0x01
Description of Each Item
UART Communication Send Format
Size
No.
Item
(Byte)
Start Code
・Read : 0x00 0x00 0x04 (Fixed)
3
・Write: 0x04 0x00 0x04 (Fixed)
・Read/Write Address
Address
4
・Read: 0x00 0x00 0x00 0x00 (Fixed)
Parameter
4
・Write:8bit×4、
Data
・CR(Carrige Return) 0x0D (Fixed)
End Code
1
Command Termination Code
TM-XJ959A
(Operation Succeed :Completed/OK)
Description
(Writing Data 4byte)
UART Communication Receive Format
No.
Item
(Byte)
Receive
Code
Read Data
【Command Set】
Command format of UART communication is shown in left
and above tables.
Refer to the table for detail of Function Specification.
The values in the table on the following pages that have h
at the end are expressed in hexadecimal (values for
Adress and some Parameter Data). In addition, the size of
Address and Parameter Data is 4Byte, but the description
is omitted if the value in the table is 0.Please transmit
higher Byte for 0 at the command transmission.
ex. 7040h => 0x00 0x00 0x70 0x40
The values in the table on the following pages that do not
have h at the end are expressed in decimal.
ex. 5833 => 0x00 0x00 0x16 0xC9
Size
説明
・for Read Command:
(1) 0x00 0x00 0x04 (Completed/Succeed)
(2) 0x40 0x00 0x00 (Invalid Address)
(3) 0x80 0x00 0x00 (Invalid Data Size)
(4) 0xC0 0x00 0x00 (Other Error)
3
・for Write Command:
(1) 0x00 0x00 0x00 (Completed/Succeed)
(2) 0x40 0x00 0x00 (Invalid Address)
(3) 0x80 0x00 0x00 (Invalid Data Size)
(4) 0xC0 0x00 0x00 (Other Error)
4
・8bit×4、Read Data 4byte
© Mitsubishi Electric Corporation
67

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Kd6r1064dxl-nlKd6r1247dxl-nlKd6r1688dxl-nl

Table of Contents