Download Print this page

Reading From The Buffer Memory Of An Intelligent Function Module (Command: Tr) - Mitsubishi MELSEC Q Series Reference Manual

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

Advertisement

5.4.3 Reading from the buffer memory of an intelligent function module (command: TR)

[Control procedure]
(Data name)
External device
side
(Example)
54
(Data name)
Programmable controller CPU side
(Example)
5 - 52
The example shown in this section explain the control procedure for reading from the
buffer memory of an intelligent module with the TR command.
The order and contents of data items for the parts marked with " " shown in the
control procedure differ depending on the communication format.
Refer to a detailed explanation in Section 5.1.
(Read conditions)
1)
Message wait is 0 ms.
2) Read 4 bytes from the buffer memory addresses 7F0
intelligent function module whose input/output signals are 120
13F
TR (ACPU common command)
Head address
5 characters
(hexadecimal)
T
R
0
0
0
7
F
0
52
30
30
30
37
46
30
H
H
H
H
H
H
H
H
Character area A
Designates the range of
intelligent function module
buffer memory to be read.
Indicates that I/O assignment of
intelligent functional module is 120 to 13F.
Indicates that the content of address 0070F
Indicates that the content of address 0071F
Indicates that the content of address 0072F
Indicates that the content of address 0073F
POINT
(1) Designate the byte length within the following range:
• 1  byte length 128
(2) The content of one data may take up 2 or 3 bytes depending on the intelligent
function module; designate the byte length by referring to the manual of the
applicable module.
5 WHEN COMMUNICATING USING THE A COMPATIBLE 1C FRAMES
(module No. 13
).
H
H
2 characters (hexadecimal)
No. of bytes
to be read
Byte length
Intelligent
2 characters
function
(hexadecimal)
Module No.
H
L
H
L
0
4
1
3
30
34
31
33
H
H
H
H
is 12
.
H
H
is 78
.
H
H
is 43
.
H
H
is 65
.
H
H
(Data read)
No. of characters is byte length  2.
Two characters are used for one
byte data. Thus, one byte data
is expressed by a 2-digit value
(hexadecimal).
Buffer memory data
H
L
H
L
H
L
H
1
2
7
8
4
3
6
31
32
37
38
34
33
36
H
H
H
H
H
H
H
Character area B
to 7F3
on an
H
H
to
H
L
5
35
H
5 - 52

Hide quick links:

Advertisement

loading