EasyManuals Logo
Home>NAiS>Controller>FP Series

NAiS FP Series User Manual

NAiS FP Series
326 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #202 background imageLoading...
Page #202 background image
FPΣ
9.6 Flag Operations When Using Serial Communication
9-35
9.6.2 When “STX” is Set for Start Code and “ETX” 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
Number of bytes
received is cleared
whenF159 (MTRN)
instruction is
executed.
A
B
C
STX
D
H ETX
<1> <2> <3> <0> <0> <1>
<1>
E ETX
F G
STX
Reception done flag is
turned off by execut-
ing the F159 (MTRN)
instruction.
Reception code is
deleted by F159
(MTRN) instruction.
<1> <2> <2> <0> <1>
Number of bytes
received is
cleared when
start code is
received.
on
off
on
off
External received
data
Reception
done flag
“R9038 or R9048”
F159 (MTRN)
instruction
execution
Reception
buffer
Number of
reception bytes
Stored
* : Write pointer
Cannot be
stored when
reception done
flag is on
Number of bytes
received is
cleared when
start code is
received.
AAAA
BBBB
C
C
CCC
E
EE
EEEE
CCC
C
C
D
D
DD
GG HH
D
Figure 198: FPΣ Flag operation when receiving data (STX and ETX setting)
The data is stored in the reception buffer in sequential order, but at the point at which
the start code is received, the number of bytes received is cleared, and the address
(write pointer) is returned to the initial address in the reception buffer.
Reception is disabled while the reception done flag “R9038 or R9048” is on.
When the F159 (MTRN) instruction is executed, the number of bytes received is
cleared, and the address (write pointer) is returnedto theinitial addressin the reception
buffer.
If there are two start codes, data following the later start code is overwritten and stored
in the reception buffer.
Thereception done flag “R9038 or R9049” is turned off by the F159(MTRN) instruction.
Because of this, if the F159 (MTRN) instruction is executed at the same time that the
terminal code is received, the reception done flag will not be detected.

Table of Contents

Other manuals for NAiS FP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the NAiS FP Series and is the answer not in the manual?

NAiS FP Series Specifications

General IconGeneral
BrandNAiS
ModelFP Series
CategoryController
LanguageEnglish

Related product manuals