13.4.2 Example of data transmission
External device side
Programmable
controller CPU side
X50
Transmission instruction
Programmable
controller CPU
M0
Completion device
Status display device
M1
at completion
Transmission instruction
13 - 8
The following shows an example of data transmission:
(1) Example of arbitrary data transmission
Data transmission area
(arbitrary data section)
3
4
1
2
A
B
5
6
33
34
31
32
41
42
35
36
H
H
H
H
H
H
H
H
OUTPUT
13 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION)
Eight characters of data
in the transmission area
are sent in two characters
per byte through
ASCII-BIN conversion.
ON
ON
Abnormal
completion
Normal
completion
One scan
(Convert)
121
ASCII-BIN conversion designation
H
1
H
Transmission area
400
H
(Designation of no. of data sent)
00
, 02
H
H
(1234
)
H
401
H
12
, 34
H
H
(56AB
)
H
402
H
56
, AB
H
H
Buffer memory
0004
in byte units
H
Sets the arbitrary transmission data for D11 to D12
Sets CH1 to the transmission channel
Sets the number of data sent to 2
Execute the transmission
Sets normal completion flag
Sets abnormal completion flag
(Transmission data)
13 - 8