User`s manual
307
CHAPTER 12 TRANSPARENT CODES AND ADDITIONAL CODES
12
12.4 Example of Data Communication Using the Non Procedure Protocol
12.4.2 Example of data transmission
The following shows an example of data transmission.
• Additional code: 10H (DLE), transparent code: 02H (STX)
0123
B
A
30H 31H 32H 33H 10H 02H 00H 41H 34H 12H
(1234H)
0DH0AH42H
D
L
E
S
T
X
N
U
L
L
C
R
L
F
ON
ON
00H , 06H
(1) (0)
31H , 30H
(3) (2)
33H , 32H
(NULL) (STX)
00H , 02H
(B) (A)
42H , 41H
(1234H)
12H , 34H
(LF) (CR)
0AH , 0DH
00H , 06H
(0) (0)
31H , 30H
(3) (2)
33H , 32H
(NULL) (STX)
00H , 02H
(B) (A)
42H , 41H
(1234H)
12H , 34H
(LF) (CR)
0AH , 0DH
400H
401H
402H
403H
404H
405H
406H
D3
D10
D11
D12
D13
D14
D15
X50
M0
M1
OUTPUT
Transmission
command
Transmission
data count
Sets CH1 to the transmission channel
Sets normal completion flag
Sets abnormal completion flag
Executes transmission
Transmission instruction
Sets transmission data in D10 to D15
Sets the allowable number of
transmitting data to 6
Completion device
Head data
Status display device
at completion
One scan
Abnormal
completion
Normal
completion
For word unit:
Received byte count excluding additional code (12)/2=6
For byte unit:
Received byte count excluding additional code (12)
The following diagram
is for word unit
Buffer memorySequence program
device memory
Transparent code
Additional code (Q series C24 deletes)
Transmission data
Programmable
controller CPU
External device side
Programmable
controller CPU side