7-32
7.5.10 Settings in Compatibility Mode with FP0 (FP0 Compatibility Mode)
Programming Example of General-purpose Serial Communication in FP0 compatibility mode
The high-level instruction F144(TRNS) is used to send and receive data via the COM port (RS232C port).
(The F159(MTRN) instruction is used in the normal FP0R mode.)
Key Point: In the FP0 compatibility mode, the F144(TRNS) instruction is used instead of
F159(MTRN) instruction.
F144(TRNS) instruction
Data is sent and received between the FP0R and an external device via the COM port (RS232C port).
Devices that can be specified for S:
Devices that can be specified for n:
Only data registers (DT) can be specified as the send buffer.
WX, WY, WR, WL, SV, EV, DT, LD, I (I0 to ID), K, H
Sending 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 header and terminator automatically attached. A maximum of 2048 bytes can be sent. When the
above program is run, the eight bytes of data contained in DT101 to DT104 and stored in the send buffer
starting from DT100 are sent from the COM port.
Receiving data
Data can be received when the “reception done” flag is off. The received data is stored in the receive
buffer specified by the system register. When the reception of the data is completed (the terminator is
received), the “reception done” flag (R9038) turns on, and subsequently, receiving data is prohibited. To
receive the next data, execute the F144(TRNS) instruction and turn the “reception done” flag (R9038) off
to clear the number of received bytes to 0. To receive data continuously without sending data, clear the
number of transmitted bytes to 0 (set “n” to “K0”), and then execute the F144 (TRNS) instruction.
Содержание FP0R Series
Страница 1: ......
Страница 6: ...iv ...
Страница 14: ...xii ...
Страница 15: ...Chapter 1 Functions and Restrictions of the Unit ...
Страница 24: ...1 10 ...
Страница 25: ...Chapter 2 Specifications and Functions of Control Unit ...
Страница 38: ...2 14 ...
Страница 39: ...Chapter 3 Expansion ...
Страница 45: ...3 7 3 4 Terminal layout diagram Model No Terminal layout diagrams E8RS E8RM E16RS E16RM E8YRS ...
Страница 48: ...3 10 ...
Страница 49: ...Chapter 4 I O Allocation ...
Страница 53: ...Chapter 5 Installation and Wiring ...
Страница 73: ...Chapter 6 Preparation of USB Port ...
Страница 77: ...6 5 5 Click Finish on the following screen to be displayed ...
Страница 79: ...6 7 4 Double click on FP0R 5 Click Update Driver ...
Страница 84: ...6 12 ...
Страница 85: ...Chapter 7 Communication ...
Страница 139: ...7 55 Sample program For Type II Use a program as below to directly specify a MODBUS address ...
Страница 141: ...Chapter 8 High speed Counter Pulse Output and PWM Output Functions ...
Страница 142: ...8 2 ...
Страница 199: ...Chapter 9 Security Functions ...
Страница 211: ...Chapter 10 Other Functions ...
Страница 217: ...Chapter 11 Self Diagnostic and Troubleshooting ...
Страница 227: ...Chapter 12 Precautions During Programming ...
Страница 242: ...12 16 ...
Страница 243: ...Chapter 13 Specifications ...
Страница 254: ...13 12 ...
Страница 255: ...Chapter 14 Dimensions and Others ...
Страница 260: ...14 6 14 1 5 Power Supply Unit Unit mm 14 1 6 I O Link Unit Unit mm 14 1 7 When Using DIN Rail Unit mm ...
Страница 262: ...14 8 ...
Страница 263: ...Chapter 15 Appendix ...
Страница 344: ...15 82 15 7 ASCII Codes ...
Страница 346: ......
Страница 347: ......
Страница 348: ......