Sendcharacters Send Characters To Cpu Or Mcu Port - Panasonic FP Series Programming Manual

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

Data transfer via communication ports
SendCharacters
This instruction first fills the send buffer applied at the VAR_INOUT variable SendBuffer with the
Description
relevant characters of the variable at sString according to the required data format for sending
data "Sending data to external devices" on page 733. Then the send data instruction F159_MTRN
(see page 741) is executed using the data of the send buffer. Setting the variable
bSuppressEndCode to TRUE does not append the sending end code character even when
specified in the according system register. In contrast to the instruction
SendCharactersAndClearString (see page 739) the string variable applied at sString remains
unchanged.
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.
See also:
ReceiveCharacters (see page 752)
ClearReceiveBuffer (see page 753)
see see page 1330
PLC types
Data types
Variable
Port
sString
bSuppressEndCode
Input/output variable
SendBuffer
738
Send characters to CPU or MCU port
Data type
Function
 Communication port
 Must be a constant
FP-X, FP
 PLC communication ports:
Value: SYS_COM1_PORT or SYS_COM2_PORT or
SYS_TOOL_PORT
ANY16
 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)
Stores the send string
STRING
When set to TRUE, the instruction does not append the sending
BOOL
end code character even if specified in the respective system
register.
ANY
Stores the send string temporarily
and FP2, FP2SH (V1.4 or later):

Advertisement

Table of Contents
loading

Table of Contents