FP
Σ
9.1 General-purpose Serial Communication
9 - 5
9.1.2
Program of General-purpose Serial Communication
The
F159 (MTRN)
instruction is used to send and receive data using the COM. port. The
F159 (MTRN)
instruction is used only with the FP
Σ
, and is an updated version of the
earlier
F144 (TRNS)
instruction that allows multiple communication ports to be
accommodated. Please be aware that the earlier
F144 (TRNS)
instruction cannot be
used with the FP
Σ
.
F159 (MTRN) instruction
Data is sent to and received from an external device through the specified COM. port.
Starting from DT100
are sent from the COM.1 (K1) port.
the contents of 8 bytes
Serial data communication
R0
n
S
D
F159 MTRN , DT 100
, K8
, K1
Devices that can be specified for S
Only data registers (DT) can be specified as the
. . . . . . .
transmission buffer.
Devices that can be specified by n
WX, WY, WR, WL, SV, EV, DT, LD, I (I0 to ID), K, H
. . . . . . . .
Devices that can be specified by D
Only the K constants (only K1 and K2)
. . . . . . .
Figure 165: FP
Σ
F159 (MTRN) instruction (program)
Transmission of data
The amount of data specified by “n” is sent to the external device from among the data
stored in the data table starting with the area specified by “S”, through the COM. port
specified by “D”. Data can be sent with the start code and end code automatically
attached. A maximum of 2,048 bytes can be sent. When the above program is run, the
eight bytes of data contained in DT101 to DT104, stored in the transmission buffer
starting from DT100, are sent from the COM. 1 port.
Reception of data
Reception of data is controlled by turning the reception done flag “R9038 or R9048” on
and off. The received data is stored in the received buffer specified by the system
register. Data can be received when the
F159 (MTRN)
instruction turns the reception
done flag “R9038 or R9048” off.
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...