Example Of Data Transmission - Mitsubishi MELSEC L Series User Manual

Communication module
Hide thumbs Also See for MELSEC L Series:
Table of Contents

Advertisement

13.6.2 Example of data transmission

External device side
Programmable
controller CPU side
Transmission instruction
X50
Programmable
controller CPU
M0
Completion device
Status display device
M1
at completion
Transmission instruction
13 - 14
The following shows an example of data transmission when ASCII-BIN conversion is
enabled.
• When the send transparent code designation is set to Enable and ASCII-BIN
conversion is set to Enable
Additional code: 10
E
Data length
N
(0004)
Q
L
H
0
4
0
0
1
2
3
4
5
05
30
34
30
30
31
32
33
34
35
H
H
H
H
H
H
H
H
H
BIDOUT
POINT
Data for one address (one word) in the buffer memory's transmission area is converted
into four-byte ASCII code data ("0" to "9" and "A" to "F"), and is then transmitted.
13 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION)
(DLE), transparent code: 04
H
Data section
A
B
C
D
E
F
0
0
D
41
42
43
44
45
46
30
30
44
30
H
H
H
H
H
H
H
H
H
H
ON
ON
Abnormal
completion
Normal
completion
One scan
Transmission data
(E0T)
H
A
C
K
06
H
Sum
check
code
L
H
0
A
41
6D
04
H
H
H
H
Data length (Number of data received): Excluding additional code
Number of bytes after ASCII-BIN conversion: ( (8)/2=4)
when word units are used
(8) when byte units are used
This diagram is for when word
units are used.
D3
00
, 04
H
H
D10
34
, 12
H
H
D11
BC
, 5A
H
H
D12
F0
, DE
H
H
D13
0A
, 0D
H
H
Sequence program
device memory
Sets CH1 to the transmission channel
Sets the number of data sent to 4
Sets the arbitrary transmission data to D10 to D13
Executes transmission
Sets normal completion flag
Sets abnormal completion flag
400
H
00
, 04
H
H
401
H
34
, 12
H
H
1) 2)
402
H
BC
, 5A
H
H
403
H
F0
, DE
H
H
404
H
0A
, 0D
H
H
Buffer memory
13 - 14

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec q seriesQj71c24Qj71c24-r2Lj71c24-r2Lj71c24Qj71c24n ... Show all

Table of Contents