NAiS FP Series User Manual page 177

Applicable plc
Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Communication Function 2 General - purpose Serial Communication
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
R9039
(R9049)
Execution condition
F159 (MTRN) execution
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)
Figure 174: FPΣ Data transmission sample program
9 - 10
DT101 DT102 DT103 DT104
A B C D E
R0
During transmission
During this interval the F159(MTRN)
instruction cannot be executed.
R0
DF
F159 MTRN, DT100, K - 8, K1
1
C
F G H
(
)
R
on
off
on
off
1
Specify "K - 8"
FPΣ

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fps seriesFpg-c32tFpg-c32t2Fpg-c24r2

Table of Contents