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