EasyManuals Logo

Panasonic FP Series User Manual

Panasonic FP Series
1345 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #736 background imageLoading...
Page #736 background image
Data transfer via communication ports
735
Part III FP Instructions
POU Header and LD Body
ST Body
When the variable bSend is set to TRUE, the function F10_BKMV copies the characters of the string
sSendData to the buffer awSendBuffer beginning at awSendBuffer[1].
The first two words of a string contain the string header information (maximum number of characters and the
current number of characters). The string header must not be copied into the buffer. Therefore, enter an offset
of 2 to the starting address of the string before copying the data.
Make sure that the send buffer is big enough for all the data to be sent. To determine its size you must take into
account that two characters of the string SendString can be copied into each element of the array SendBuffer.
SendBuffer[0] is reserved for the total number of bytes to be sent by F159_MTRN.
3. Sending the data using the instruction F159_MTRN
Execute F159_MTRN (see page 741) to
- specify the amount of data to be sent
- specify the communication port to be used
- output the data from the communication port to the external device.
When the execution condition of F159_MTRN turns to TRUE and the "transmission done" flag is TRUE,
transmission starts. (For details on flag operation, see page 757.)
Whe
n sendin
g data, operation is as follows:
- The number of bytes to be sent is set in offset 0 of the send buffer.
- The "transmission done" flag turns to FALSE.
- The data in the send buffer is sent starting with the low order byte in offset 1.
- The start and end codes specified in the system registers are automatically added to the data sent.
- During transmission, F159_MTRN cannot be executed again.
- The "reception done" flag turns to FALSE.
- The number of bytes received is set to 0 in offset 0 of the receive buffer.
- Data received is written into the receive buffer
When the specified number of bytes has been sent, the "transmission done" flag turns to TRUE. The end code
is automatically added to the data sent. At the end of transmission, the value in offset 0 is automatically reset to
0.

Table of Contents

Other manuals for Panasonic FP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Panasonic FP Series and is the answer not in the manual?

Panasonic FP Series Specifications

General IconGeneral
MountingDIN rail
TypePLC
Communication InterfaceRS-232, RS-485, Ethernet (depending on model)
Input Voltage100-240V AC or 24V DC (depending on model)
Output TypeRelay, Transistor
I/O PointsVaries by model
Operating Temperature0°C to 55°C
DimensionsVaries by model
WeightVaries by model

Related product manuals