Panasonic FP0H User Manual page 85

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

Advertisement

 Related flag /system register No.
Communication error flag
Operation mode flag
Reception done flag
Transmission done flag
Receive buffer starting
number
Receive buffer capacity
 Creation of send data table [S]
• Send data is stored as follows in a given memory area (e.g. data register DT). The number
of send data bytes [n] is automatically added to the starting word. Send data should be
stored in [S+1] and later.
• Do not include the terminator in the send data. The terminator is added automatically. When
no terminator is to be added during transmission, specify a negative value for [n].
Alternatively, select "None" from the terminator setting in the system register.
• When the header (start code) is set to "STX" in system register, do not add the header to
send data. The header is added automatically.
Example: When 8-byte data "ABCDEFGH" is sent with [S] as DT100
Need not be specified
S
DT100
(used by a command)
H42(B)
S+1
DT101
H44(D)
S+2
DT102
H46(F)
S+3
DT103
H48(H)
S+4
DT104
Data table before transmission
 Precautions during programming
• F159 (MTRN) instruction should be executed after confirming that the transmission done flag
for the target COM port has turned ON.
• The maximum data that can be sent in a single session is 2,048 bytes.
Operation
0: Normal
1: Error
0: Other than general-purpose
communication
1: General-purpose communication
0: Reception enabled
1: Reception disabled
(reception done)
0: Transmission in progress
1: Transmission done
(transmission enabled)
Specify the DT range to be used as
a receive buffer, using the system
register.
When transmission begins: K8 is set and
reduces one by one at every transmission.
When transmission ends: K0
H41(A)
H43(C)
Data is transmitted in order from
the low order byte.
H45(E)
H47(G)
8.2 Communication Instruction
COM0
COM1
R9130
R9138
R9131
R9139
R9132
R913A
R9133
R913B
No.420
No.416
No.421
No.417
COM2
R9140
R9141
R9142
R9143
No.418
No.419
8-17

Advertisement

Table of Contents
loading

Table of Contents