Panasonic FP-E Programming Manual page 693

Fp series
Table of Contents

Advertisement

FP2/FP2SH
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].
Data table (transmitted buffer)
S
S+1
S+2
S+3
S+4
S+n/2
*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.
[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
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com
*1
Transmitted data
storage area
Specify communication port number.
HC1/HD1: COM1 port
HC2/HD2: COM2 port
High−level Instructions
3 − 429

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp0Fp2Fp2shFp0rFrsFp10sh ... Show all

Table of Contents