User`s manual

333
CHAPTER 13 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION)
13
13.6 Example of Data Communication Using the Bidirectional Protocol
13.6.2 Example of data transmission
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: 10H (DLE), transparent code: 04H (E0T)
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.
6DH
L
H
04H
1
31H
2
32H
3
33H 34H 35H05H
4
D
43H
C
44H30H
(0004)
41H42H
LH
0
40
0
34H 30H 30H
5BA0
30H
0
30H45H 46H
FE0
44H
D
30H 41H
A
BIDOUT
X50
M0
M1
ON
ON
400H
401H
402H
403H
404H
D3
00H , 04H
D10
D11
D12
D13
06H
34H , 12H
BCH , 5AH
F0H , DEH
0AH , 0DH
00H , 04H
34H , 12H
BCH , 5AH
F0H , DEH
0AH , 0DH
E
N
Q
A
C
K
Transmission
data
Transmission data
Sets CH1 to the transmission channel
Sets normal completion flag
Sets abnormal completion flag
Executes transmission
Transmission instruction
Sets the arbitrary transmission data to D10 to D13
Sets the number of data sent to 4
Transmission
instruction
Completion device
Status display device
at completion
Data sectionData length
Sum
check
code
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.
One scan
Abnormal
completion
Normal
completion
Buffer memory
Sequence program
device memory
Programmable
controller CPU
External device side
Programmable
controller CPU side