Data Transfer In Program Controlled Mode; Sending Data To External Devices - Panasonic FP Series Programming Manual

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

22.4 Data transfer in program controlled mode

For all PLC types and all COM ports (including the COM ports of the Multi-Communication Unit) the following
instructions are available:
Tool instructions:
SendCharacters (see page 737)
-
SendCharactersAndClearString (see page 739)
-
ReceiveData (see page 750)
-
ReceiveCharacters (see page 752)
-
ClearReceiveBuffer (see page 753)
-
FP instructions
F159_MTRN (see page 741), sending (see page 733) in program controlled mode
-
F161_MRCV (see page 755), receiving (see page 747) in program controlled mode
-
Flag evaluation:
IsTransmissionDone (see page 763)
-
IsReceptionDone (see page 760)
-
IsReceptionDoneByTimeOut (see page 761)
-
IsCommunicationError (see page 764)
-
NOTE
F159_MTRN (see page 741) allows multiple communication ports to be accommodated. This
instruction is an updated version of F144_TRNS. Both instructions are compatible with all PLCs:
PLCs with multiple communication ports will compile F144_TRNS s, n to F159_MTRN s_Start,
n_Number, d_Port*=1. PLCs with only one communication port will compile F159_MTRN to
F144_TRNS s, n.

22.4.1 Sending data to external devices

Steps for sending data to external devices:
1.
Setting the communication parameters to match the external device
2.
Generating the data in the send buffer
3.
Sending the data using the instruction F159_MTRN
NOTE
F159_MTRN (see page 741) allows multiple communication ports to be accommodated. This
instruction is an updated version of F144_TRNS. Both instructions are compatible with all PLCs:
PLCs with multiple communication ports will compile F144_TRNS s, n to F159_MTRN s_Start,
n_Number, d_Port*=1. PLCs with only one communication port will compile F159_MTRN to
F144_TRNS s, n.
Data transfer via communication ports
733

Advertisement

Table of Contents
loading

Table of Contents