Sending/Receiving Data For The Message Communication Function (Client) - Mitsubishi Electric MELSEC iQ-R Series User Manual

Master/local module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Sending/receiving data for the message communication function
(client)
The message communication function (client) has the following two methods.
• Sending/receiving data for message communications using the buffer memory ( Page 283 Sending/receiving data for
message communications using the buffer memory)
• Sending/receiving data for message communications using module function blocks ( Page 286 Sending/receiving data
for message communications using module function blocks)
Sending/receiving data for message communications using the buffer memory
Message communication is sent/received using one area from 'Class3/UCMM communication area' (Un\G7751680 to
Un\G8275967). ( Page 498 Class3/UCMM communication area)
There are 256 areas (from 1 to 256), and the area to be used differs depending on the communication type to be executed.
Determine the area to be used in 'Class3/UCMM communication area' (Un\G7751680 to Un\G8275967) in the following way.
Communication type
Method
Class3
After the required parameters such as the tag name, class, instance, and attribute ID for Class3 communications to be used are
set in "EtherNet/IP Configuration", 'Class3/UCMM communication area' (Un\G7751680 to Un\G8275967) with the same number
as a connection number for which the Class3 communications parameters were set is secured.
UCMM
An area in 'Class3/UCMM communication area' (Un\G7751680 to Un\G8275967) with the same number as a connection number
for which the Class3 communications parameters are not set in "EtherNet/IP Configuration" can be used.
However, not using a number that was used as a module function block request number for an area in 'Class3/UCMM
communication area' (Un\G7751680 to Un\G8275967) is recommended.
■Procedure
Message communications for the external device are executed according to the following procedure. (For areas described
hereafter, the first area is used as an example. To use an area other than the first area, add 2048  (N-1) to the address value
of the first area.)
1.
Check 'Communication method specification' (Un\G7751680) in the request area of the Class3/UCMM communication
area (1st).
2.
When the value of 'Communication method specification' (Un\G7751680) is 0001H (UCMM communications), set items
from 'Communication method specification' (Un\G7751681) to 'Tag Name' (Un\G7751716 to Un\G7751843). When the
value of 'Communication method specification' (Un\G7751680) is 0002H (Class3 communications), the setting is not
required.
3.
If necessary, set 'Request data' (Un\G7751846 to Un\G7752552).
Set this mainly when sending a write request to the external device, such as when writing to the tag and rewriting parameters
by using Set_Attribute_Single.
4.
Turn off and on bit 0 of 'Class3/UCMM communication execution request' (Un\G7749632 to Un\G7749647).
5.
The result is stored in the response area of the Class3/UCMM communication area (1st), and bit 0 of 'Class3/UCMM
communication execution completion' (Un\G7749664 to Un\G7749679) turns off and on.
6.
Turn on and off bit 0 of 'Class3/UCMM communication execution request' (Un\G7749632 to Un\G7749647), and bit 0 of
'Class3/UCMM communication execution completion' (Un\G7749664 to Un\G7749679) turns on and off.
If the execution request is turned on again before 'Class3/UCMM communication execution completion' (Un\G7749664 to
Un\G7749679) is turned on and off, the turning off of the execution request may not be recognized.
12 FUNCTIONS
12.3 Message Communication Function (Client)
12
283

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-r cc-link ie tsn plus

Table of Contents