FP
Σ
Communication Function 2 General-purpose Serial Communication
9 - 10
Explanation during transmission
This is used as a data table for transmission, starting at the data register specified in
“S”.
When the execution condition of the
F159(MTRN)
instruction turns on, operation is as
follows when the transmission done flag “R9039/R9049” is on:
1.
“n” is preset in “S”. The reception done flag “R9038/R9048” is
turned off, and the reception data number is cleared to “0”.
2.
The set data is transmitted in order from the lower-order byte in
“S+1” of the table.
- During transmission, the transmission done flag
“R9039/R9049” turns off.
- If system register 413 or 414 is set to header (start code)
with STX, the header (start code) is automatically added
to the beginning of the data.
- The terminator (end code) specified in system register 413
or 414 is automatically added to the end of the data.
Transmission
data
A B C D E F G H
DT101 DT102 DT103 DT104
R9039
(R9049)
Execution condition
R0
F159 (MTRN)
execution
During transmission
During this interval the
F159(MTRN)
instruction cannot be executed.
on
off
on
off
(
CR
)
Figure 173: Explanation during transmission
3.
When all of the specified quantity of data has been transmitted,
the “S” value is cleared to “0” and the transmission done flag
“R9039/R9049” turns on.
When you do not wish to add the terminator (end code) during transmissions, use
one of the following methods:
Specify the number of bytes to be transmitted using a negative number.
If you also do not wish to add an end code to receptions, set system register 413 or 414
to Terminator “None”.
Example:
Program for transmitting 8 bytes of data without adding the
terminator (end code)
R0
DF
1
1
Specify “K-8”
F159 MTRN, DT100, K-8, K1
Figure 174: FP
Σ
Data transmission sample program
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...