Download Print this page

Mitsubishi MELSEC Q Series Reference Manual page 128

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

Advertisement

3 - 68
3 WHEN COMMUNICATING USING THE QnA COMPATIBLE 3E/3C/4C FRAMES OR 4E FRAME
a) When data is communicated in ASCII code
The number of processed points is converted to a 4-digit
(hexadecimal) ASCII code and sequentially transmitted beginning
from the most significant digit.
(Example)
5 points
20 points
b)
When data is communicated in binary code
A 2-byte value representing the number of points to be processed is
sequentially transmitted beginning from the low byte (L: bits 0 to 7).
(Example)
5 points
20 points
5) Data for the designated number of device points
This field holds the actual contents of the data written to the
designated device memory, or the contents of the data read from the
designated device memory. The data order changes depending on the
processing units (words/bytes).
Refer to Section 3.1 for the data contents and order (transmission
order).
6) Number of bit access points
This value designates the number of points to be accessed in units of bits.
It should be designated within the limits to the number of points
processed per communication given in the table in Section 3.3.1 (1).
a) When data is communicated in ASCII code
The number of points is converted into a 2-digit (hexadecimal)
ASCII code and sequentially transmitted beginning from the most
significant digit.
(Example)
5 points
20 points
b) When data is communicated in binary code
A 1-byte value representing the number of points is used for
transmission.
(Example)
5 points
20 points
7)
Set/reset
This is the data to be written to a bit device. It is designated by the
values shown below.
ON
ASCII code
"01"
Binary code
01
: Becomes "0005" and is sequentially transmitted
beginning from the first "0".
: Becomes "0014" and is sequentially transmitted
beginning from the first "0".
: Becomes 0005
of 05
, then 00
H
: Becomes 0014
of 14
, then 00
H
: Becomes "05" and is sequentially transmitted
beginning from the first "0".
: Becomes "14" and is sequentially transmitted
beginning from the first "1".
: 05
is transmitted.
H
: 14
is transmitted.
H
Data to be written
OFF
Two characters are sequentially transmitted from
"00"
the "0"
00
A 1-byte value is transmitted as shown
H
H
and is transmitted in the order
H
.
H
and is transmitted in the order
H
.
H
Remarks
3 - 68

Hide quick links:

Advertisement

loading