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 #745 background imageLoading...
Page #745 background image
Data transfer via communication ports
744
Part III FP Instructions
Example
In this example the characters of the string sSendData are transmitted.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
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.
Then, F159_MTRN sends the data from the first element of the send buffer (awSendBuffer[0]) as
specified by s_Start. The length of the string to be sent (8 bytes) is set at n_Number (using the
function LEN to calculate the number of bytes). The data is output from COM port 1 as specified by
d_Port.
LD

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