If "Yes" Has Been Set For The Start And Terminal Codes; (Start Code: Stx, Terminal Code: Etx) - Panasonic FP0 User Manual

Programmable controller
Hide thumbs Also See for FP0:
Table of Contents

Advertisement

FP0
When the F144 (TRNS) instruction is executed, the number of bytes received is cleared,
and the address (write pointer) returns to the initial address in the reception buffer.
Reception stops if the error flag (R9037) goes on. To resume reception, execute the
F144 (TRNS) instruction. This turns off the error flag, and transmits both actual and
empty data.
10.3.2

If "Yes" has been Set for the Start and Terminal Codes

(Start Code: STX, Terminal Code: ETX)

When receiving data
External
received
A
data
on
R9038
Reception com-
off
pleted flag
on
F144 (TRNS)
instruction
off
execution
Stored
A
Reception
buffer
Number of recep-
<1>
tion bytes
Write pointer
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.
When the F144 (TRNS) instruction is executed, the number of bytes received is cleared,
and the address (write pointer) is returned to the initial address in the reception buffer.
If there are two start codes, data following the later start code is overwritten and stored
in the reception buffer.
Reception is disabled while the reception completed flag (R9038) is on.
The reception completed flag (R9038) is turned off by the F144 (TRNS) instruction.
Because of this, if the F144 (TRNS) instruction is executed at the same time that the
terminal code is received, the reception completed flag will not be detected.
10.3
Operations When Using General−use Serial Communication
B
C
STX
D
A
D
A
A
B
B
B
B
C
C
C
<2>
<3>
<0>
<1>
Number of
bytes received
is cleared when
start code is
received.
General−use Serial Communications
E
ETX
F
Cannot be
stored when
reception
completed
flag is on
D
D
D
E
E
E
C
C
C
<2>
<2>
<0>
Number of bytes
received is cleared
when F144 (TRNS)
instruction is ex-
ecuted.
G
STX
H
The reception
code is deleted
by the F144
(TRNS) instruc-
tion.
The reception com-
pleted flag is
turned off by ex-
ecuting the F144
(TRNS) instruction.
G
G
H
H
E
E
E
E
C
C
C
C
<1>
<0>
<1>
<1>
Number of
bytes received
is cleared when
start code is
received.
10 − 9
ETX

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents