Download Print this page

Mitsubishi MELSEC Q Series Reference Manual page 140

With melsec communication protocol
Hide thumbs Also See for MELSEC Q Series:

Advertisement

3 - 80
3 WHEN COMMUNICATING USING THE QnA COMPATIBLE 3E/3C/4C FRAMES OR 4E FRAME
(c) Device code
This value identifies the head device memory for each block for which
batch read or batch write is performed.
The device code for each device is shown in Section 3.3.1(3).
1) Data communication in ASCII code
Each device code is converted to 2-digit ASCII code (hexadecimal)
and transmitted.
(Example)
Internal relay (M) and link register (W):
The internal relay (M) is converted to "M " and link register (W) is
converted to "W ," and transmitted from "M" and "W" respectively.
2) Data communication in binary mode
One-byte numeric value indicating each device code is transmitted.
(Example)
Internal relay
(M) and link register (W):
90
H
for the link register (W).
(d) Number of device points
This value designates the number of points in the contiguous device range
of each block for which batch read or batch write is performed (1 point = 16
bits for bit device memory and 1 point = 1 word for word device memory),
where one block consists of contiguous word/bit devices.
1) Data communication in ASCII code
The number of points for each block is converted to a 4-digit ASCII
code (hexadecimal) and transmitted.
(Examples)
In case of 5 points
In case of 20 points : Converted to "0014" and transmitted
2) Data communication in binary code
2-byte numeric value indicating the number of points for each block is
transmitted.
(Examples)
In case of 5 points
In case of 20 points : Converted to 0014
3) Designate each number of blocks so that the appropriate condition is
satisfied
In case of multiple block batch read
960  total number of points for all word device blocks + total
number of points for all bit device blocks
In case of multiple block batch write
960 4  (number of word device blocks + number of bit device
blocks) + total number of points for all word device blocks + total
number of points for all bit device blocks
POINT
The extension designation is allowed for the device memory being read from or
written to using the multiple block batch read or batch write functions.
Refer to the explanation in the Appendix 1 for more information on designating the
device memory extension.
is transmitted for the internal relay (M) and B4
: Converted to "0005" and transmitted
starting from "0".
starting from "0".
: Converted to 0005
starting from 05
starting from 14
is transmitted
H
and transmitted
H
.
H
and transmitted
H
.
H
3 - 80

Hide quick links:

Advertisement

loading