Panasonic FP7 Series User Manual page 84

Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

7.3 MEWTOCOL-COM Master Communication (RECV)
I/O allocation (in the case of Serial Communication Unit)
COM Port No.
1
2
3
XC
XD
XE
YC
YD
YE
Y0
Y1
Y2
(Note 1)
Each contact is used for reading the operation state. Do not write over it with a user program.
Precautions during programming (in the case of SCU)
● Use the UNITSEL instruction immediately before the SEND/RECV instruction to specify a
target port for communication.
● Master communication is only enabled when MEWTOCOL or MODBUS is selected. Confirm
that the "master communication clear to send flags" (XC to XF) are ON for the corresponding
channel, and execute the SEND/RECV instruction.
● Another SEND/RECV instruction cannot be executed for a communication port where master
communication is in progress. Confirm that the "master communication sending flags" (YC to
YF) are OFF, and execute the instruction.
● A SEND/RECV instruction cannot be executed for a port where slave communication is in
progress.
● If there is no response, the "master communication sending flags" (YC to YF) remain ON
during the time-out period set in the CPU configuration.
● Up to 16 SEND/RECV instructions can be executed simultaneously for differing COM ports.
Sample program (in the case of CPU with built-in ET-LAN)
● This program sends the command from the LAN port of the CPU unit, reads the data from
the data areas DT400 to DT401 of the external device, and writes the data into the data
registers DT100 to DT101 of the PLC.
● After it is confirmed that connection 1 is established in master mode (X90) and no
transmissions are currently being executed for the same port (Y90), the RECV instruction is
started.
● The UNITSEL instruction is used to specify a slot number (LAN port: U100) and the
connection number (U1).
● In the RECV instruction, specify and execute the partner station number (U1), starting
address (DT400), data amount (U2), and PLC's starting address to store the data (DT100).
7-12
Name
4
Master
XF
communication
clear to send flag
Master
YF
communication
sending flag
Y3
Sent flag
Turns ON when MEWTOCOL-COM, MEWTOCOL7, or
MODBUS-RTU is set for the communication mode, and the unit
is in the RUN mode.
Turns ON during sending data based on SEND/RECV
instruction.
Turns OFF when the sending process is completed.
Reports completion result of sending data in genera-purpose
communication or master communication.
(Normal completion: 0, Abnormal completion: 1)
Description
WUME-FP7COM-07

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp7cpu

Table of Contents