FP
Σ
9.6 Flag Operations When Using Serial Communication
9 - 33
9.6
Flag Operations When Using Serial Communication
This section explains about the operation of “reception done flag” and “transmission
done flag” when using serial communication.
9.6.1
When “STX not exist” is Set for Start Code and “CR” is Set for End
Code
When receiving data:
Relationship between the various flags “Reception done flag and Transmission done
flag” and the
F159 (MTRN)
instruction
External received
data
Reception
done flag
“R9038 or R9048”
F159 (MTRN)
instruction
execution
A
B
C
CR
D
E
F
G
Transmission
done flag
“R9039 or R9049”
Transmitted data
1
2
3
CR
Duplex transmission
disabled while
F159 (MTRN)
instruction is being executed
Cannot be stored when
reception done flag is on.
A
A
B
B
C
A
B
C
A
B
C
E
F
C
E
B
G
E
<1>
<2>
<3>
<0>
<1>
<2>
<3>
Reception
buffer
Number of recep-
tion bytes
Stored
Number of bytes received is
cleared when
F159 (MTRN)
instruction is executed
on
off
on
off
on
off
*
: Write pointer
Write pointer
*
: Write pointer
Figure 197: FP
Σ
Flag operation when receiving data (STX not exit and CR setting)
Half-duplex transmission method should be used for general-purpose serial
communication.
Reception is disabled when the reception done flag “R9038 or R9048” is on.
next page
Summary of Contents for FP Series
Page 15: ...FP Functions and Restrictions of the Unit 1 2...
Page 25: ...FP Specifications and Functions of Control Unit 2 2...
Page 37: ...FP Expansion 3 2...
Page 44: ...Chapter 4 I O Allocation 4 1 I O Allocation 4 3...
Page 45: ...FP I O Allocation 4 2...
Page 51: ...FP Installation and Wiring 5 2...
Page 77: ...FP High speed Counter and Pulse Output Functions 6 2...
Page 133: ...FP High speed Counter and Pulse Output Functions 6 58...
Page 135: ...FP Communication Cassette 7 2...
Page 147: ...FP Communication Function 1 Computer Link 8 2...
Page 169: ...FP Communication Function 2 General purpose Serial Communication 9 2...
Page 205: ...FP Communication Function 2 General purpose Serial Communication 9 38...
Page 207: ...FP Communication Function 3 PLC Link Function 10 2...
Page 232: ...Chapter 11 Other Functions 11 1 Analog Potentiometer 11 3 11 2 Clock Calendar Function 11 4...
Page 233: ...FP Other Functions 11 2...
Page 239: ...FP Self Diagnostic and Troubleshooting 12 2...
Page 249: ...FP Self Diagnostic and Troubleshooting 12 12...
Page 251: ...FP Specifications 13 2...
Page 323: ...Index FP I 4...
Page 325: ...FP Record of changes R 2...