7-18
7.5 General-purpose Serial Communication
7.5.1 Overview
-
In general-purpose serial communication, data is sent and received over the communication port to and
from an external device such as an image processing device or a bar code reader.
-
Data is read from and written to an external device connected to the communication port by means of
an FP0R program and the FP0R data registers.
Outline of operation
To send data to and receive it from an external device using the general-purpose serial communication
function, the data transmission and data reception functions described below are used. The F159
(MTRN) instruction and the "reception done" flag are used in these operations, to transfer data between
the PLC and an external device.
Sending data
Data to be transmitted from the PLC is stored
in the data register used as the send buffer
(DT). When F159(MTRN) is executed, the data
is output from the communication port.
Receiving data
Data received from the communication port is stored
in the receive buffer specified in the system register,
and the "reception done" flag goes on. Data can be
received whenever the "reception done" flag is off.
-
The terminator specified in the system register
is automatically added to the data that has
been sent.
-
The maximum volume of data that can be
sent is 2048 bytes.
-
When data is being received, the "reception done"
flag is controlled by the F159(MTRN) instruction.
-
No terminator is included in the stored data.
-
The maximum volume of data that can be received
is 4094 bytes.
Key Point: In the compatibility mode with the FP0 (FP0 compatibility mode),
the F159(MTRN) instruction is changed to the F144(TRNS) instruction.
Communication Port
Tool port
COM port
Summary of Contents for FP0R Series
Page 1: ......
Page 6: ...iv ...
Page 14: ...xii ...
Page 15: ...Chapter 1 Functions and Restrictions of the Unit ...
Page 24: ...1 10 ...
Page 25: ...Chapter 2 Specifications and Functions of Control Unit ...
Page 38: ...2 14 ...
Page 39: ...Chapter 3 Expansion ...
Page 45: ...3 7 3 4 Terminal layout diagram Model No Terminal layout diagrams E8RS E8RM E16RS E16RM E8YRS ...
Page 48: ...3 10 ...
Page 49: ...Chapter 4 I O Allocation ...
Page 53: ...Chapter 5 Installation and Wiring ...
Page 73: ...Chapter 6 Preparation of USB Port ...
Page 77: ...6 5 5 Click Finish on the following screen to be displayed ...
Page 79: ...6 7 4 Double click on FP0R 5 Click Update Driver ...
Page 84: ...6 12 ...
Page 85: ...Chapter 7 Communication ...
Page 139: ...7 55 Sample program For Type II Use a program as below to directly specify a MODBUS address ...
Page 141: ...Chapter 8 High speed Counter Pulse Output and PWM Output Functions ...
Page 142: ...8 2 ...
Page 199: ...Chapter 9 Security Functions ...
Page 211: ...Chapter 10 Other Functions ...
Page 217: ...Chapter 11 Self Diagnostic and Troubleshooting ...
Page 227: ...Chapter 12 Precautions During Programming ...
Page 242: ...12 16 ...
Page 243: ...Chapter 13 Specifications ...
Page 254: ...13 12 ...
Page 255: ...Chapter 14 Dimensions and Others ...
Page 262: ...14 8 ...
Page 263: ...Chapter 15 Appendix ...
Page 344: ...15 82 15 7 ASCII Codes ...
Page 346: ......
Page 347: ......
Page 348: ......