High-level Instructions
9-15
Description
1) It is used to transmit commands or data to the COM port (COM1 or COM2) of the specified MCU unit
connecting with external equipment (such as PC, measuring insrument, barcode reader).
Note: The operation mode of the communication port of the MCU should be set to the general-purpose serial
communication mode.
2) [n] bytes of the data stored in the data table which is headed with the area specified by [S] is transmitted to
external equipment from the communication port of the CPU or MCU unit specified by [D].
S
S+1
S+2
S+3
S+4
Data table (transmitted buffer)
S+n/2
Transmitted data
storage area
*1
*1: Nothing is specified for the initial address of the transmitted buffer.
3) The slot number and the communication port number specified by [D] is set as below.
Specify communication port number.
HC1/HD1: COM1 port
HC2/HD2: COM2 port
[D]:
Specify slot number.
Specify from H00 to H1F.
* Caution:
1. Specify to K1 (H1) for the COM port of the CPU.
2. When specifying [D] with the K constant,
ex.) if the slot number is set to 3, and the COM2 (2) is selected for the communication port of the
MCU,
set as follows.
H03C2 to K962 (*convert the content specified in hexadecimal to decimal)
4) The starting code and the terminal code can be added automatically in transmission.
5) The transmitted byte number is maximum of 2048 bytes (including starting code and terminal code).
6) When a negative value is specified for the transmitted byte number, the data will be transmitted without the
terminal code.
7) When 8000H is specified for the transmitted byte number, the operation mode of the specified
communicaton port can be switched between the computer link and the general-purpose communication
mode.
8) The communication parameter for the communication port can be set by specifying the communicating
port number to HD1 or HD2.
When HD1 is designated: the communication parameter is registered for the COM 1 port.
When HD2 is designated: the communication parameter is registered for the COM 2 port.
Example
R0
F159 MTRN, DT0, K22, H D1
FP2/FP2SH
Summary of Contents for FP2
Page 2: ......
Page 8: ......
Page 9: ...Chapter 1 Functions and Restrictions of the Unit...
Page 14: ...1 6...
Page 15: ...Chapter 2 Specifications and Functions...
Page 29: ...Chapter 3 Installation and Wiring of Communication Blocks...
Page 35: ...Chapter 4 Communication Function...
Page 36: ...4 2...
Page 44: ...4 10 4 4 4 Flow Chart...
Page 46: ...4 12...
Page 47: ...Chapter 5 Communication Function PC PLC Link...
Page 65: ...Chapter 6 Communication Function General purpose Serial communication...
Page 94: ...6 30...
Page 95: ...Chapter 7 Communication Function Computer link...
Page 108: ...7 14...
Page 109: ...Chapter 8 Applications...
Page 118: ...8 10...
Page 119: ...Chapter 9 Specifications...
Page 139: ...Chapter 10 Dimensions and Sample Programs...
Page 141: ...10 3 10 1 2 Communication Blocks FP2 CB232 AFP2803 FP2 CB422 AFP2804 FP2 CB485 AFP2805...
Page 142: ...10 4...