EasyManua.ls Logo

Panasonic FP Series - Page 754

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
Loading...
Data transfer via communication ports
753
Part III FP Instructions
ReceiveCharacters
Receive characters from CPU or MCU port
To add an enable input and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
PLC types see see page 1330
Input variable Data type Function
Port
ANY16
Communication port
Must be a constant
FP-X, FP and FP2, FP2SH (V1.4 or later):
PLC communication ports:
Value: SYS_COM1_PORT or SYS_COM2_PORT or SYS_TOOL_PORT
MCU communication port:
Value: 16#xx01 (COM1), 16#xx02 (COM2)
xx = slot number (hexadecimal) of the MCU (e.g. 16#0001: COM1 in slot 0,
16#0A02: COM2 in slot 10, 16#1401: COM1 in slot 20)
Other PLCs:
The command will be compiled to F144_TRNS, which works on the COM port
of the CPU (the parameter d_Port will be ignored)
Output variable
sString STRING string to be received
No. IEC address Set If
R9007 %MX0.900.7 permanently
R9008 %MX0.900.8 for an instant
the MCU unit does not exist at the slot no.
specified by 'Port'.
Description
This instructions receives characters from a variable port number Port and stores the string in the
variable sString.
Data types
Error flags
Example
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
POU header
All input and output variables used for programming this function have been declared in the POU
header.
LD
ST
If (bReceive) Then
sString:=ReceiveCharacters(1);
End_if;

Table of Contents

Other manuals for Panasonic FP Series

Related product manuals