Mewtocol Master Communication (Send); Write Data Into An External Device - Panasonic FP7 CPU Unit User Manual

Lan port communication
Table of Contents

Advertisement

5.4 MEWTOCOL Master Communication (SEND)

5.4.1 Write Data into an External Device

 Instructions
In master communication, PLC has the sending right, and executes communication by
sending commands to devices that support MEWTOCOL, and receiving responses.
Messages in accordance with the protocol are automatically generated by PLC. In the user
program, reading can be done simply by specifying the station no. and memory address and
executing SEND commands.
PLC
DT100
100
DT101
0
・・・・・・
・・・・・・・・
・・・・・・
・・・・・・・・
Note: The above figure indicates the data part of MEWTOCOL-COM. In communication via LAN, a header including size information of the sent
data is added.
 Sample program
• Send commands from the LAN port of the CPU unit, and write the content of PLC's data
register DT100 - DT101 into the data area of an external device DT400 - DT401.
• Confirm that Connection 1 is established in the master mode (X90), and that the sending
process is not in progress for the same port (Y90), and start up the SEND command.
• In the UNITSEL command, specify the slot No. (LAN port: U100) and the connection No.
(U1).
• In the SEND command, specify and execute the sender initial address (DT100), No. of data
(U2), "Transmit to" station no. (U1), and initial address (DT400).
R0
DF
Clear to send
master
communication flag
R100
SEND.US
Command message
%01#WDD004000040164000000 (BCC) C
Response message
Specify and write address based on SEND command
X90
Y90
Sending master
communication flag
UNITSEL
DT100
U2
S
n
5.4 MEWTOCOL Master Communication (SEND)
%01$WD (BCC) C
R
R100
Execute
SEND
U100
U1
S1
U1
DT400
D1
D2
External device supporting
MEWTOCOL-COM
R
DT00400
100
DT00401
0
・・・・・・
・・・・・・・・
・・・・・・
・・・・・・・・
SEND execution condition
Clear to send flag: ON
Sending flag: OFF
Settings for communication port
S1: CPU LAN port (U100)
S2: Connection 1 (U1)
S2
SEND process
DT0
S: Data saving area (DT100)
n: No. of sent data (U2)
D3
D1: Area code of the receiver (U1)
D2: "Forward to" address (DT400)
D3: Execution result code (DT0)
5-7

Advertisement

Table of Contents
loading

Table of Contents