FP
Σ
Communication Function 2 General-purpose Serial Communication
9 - 4
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 FP
Σ
and an external device.
Data transmission
Data to be output is stored in the data register used as the transmission buffer (DT), and
when the
F159 (MTRN)
instruction is executed, the data is output from the COM. port.
Data writing
Device with
RS232C port
Data register (DT)
FP
Σ
Data transmission using
F159(MTRN)
instruction
The end code specified by the system register is
automatically added to the data that has been
sent.
The maximum volume of data that can be sent is
2,048 bytes.
Figure 163: FP
Σ
Data transmission
Data reception
Input data from the COM. port is stored in the received buffer specified by the system
register, and the “Reception done” flag goes on. Data can be received whenever the
“Reception done” flag is off.
FP
Σ
Data register (DT)
Reception done
flag: on
Data receiving
Device with
RS232C port
When data is received, the “Reception done” flag
is controlled by the
F159 (MTRN)
instruction.
No end code is included in the stored data.
The maximum volume of data that can be received
is 4,096 bytes.
Figure 164: FP
Σ
Data reception
Summary of Contents for FP Series
Page 15: ...FP Functions and Restrictions of the Unit 1 2...
Page 25: ...FP Specifications and Functions of Control Unit 2 2...
Page 37: ...FP Expansion 3 2...
Page 44: ...Chapter 4 I O Allocation 4 1 I O Allocation 4 3...
Page 45: ...FP I O Allocation 4 2...
Page 51: ...FP Installation and Wiring 5 2...
Page 77: ...FP High speed Counter and Pulse Output Functions 6 2...
Page 133: ...FP High speed Counter and Pulse Output Functions 6 58...
Page 135: ...FP Communication Cassette 7 2...
Page 147: ...FP Communication Function 1 Computer Link 8 2...
Page 169: ...FP Communication Function 2 General purpose Serial Communication 9 2...
Page 205: ...FP Communication Function 2 General purpose Serial Communication 9 38...
Page 207: ...FP Communication Function 3 PLC Link Function 10 2...
Page 232: ...Chapter 11 Other Functions 11 1 Analog Potentiometer 11 3 11 2 Clock Calendar Function 11 4...
Page 233: ...FP Other Functions 11 2...
Page 239: ...FP Self Diagnostic and Troubleshooting 12 2...
Page 249: ...FP Self Diagnostic and Troubleshooting 12 12...
Page 251: ...FP Specifications 13 2...
Page 323: ...Index FP I 4...
Page 325: ...FP Record of changes R 2...