EasyManua.ls Logo

YASKAWA MP3000 Series - Page 388

YASKAWA MP3000 Series
435 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
2.15 Using Message Functions
Using Function Codes
2-370
The following example illustrates how the contents of non-consecutive registers are read by using function
code 434D hex. In this example, 2 words of data are read from register MW0001000, 1 word from register
GW0200000, and 2 words from register IW17FFE in the remote station. These words are stored in the
same order in registers in the local station starting at address MW0500000. The remote station address
table starts at register GW0020000 in the local station.
The remote station address table consists of 4 words per data item, as illustrated below.
PARAM22
Local Station Register
Type
Set the register type (M or G) where the read data is to be stored in the
local station.
PARAM24 For system use
Set this parameter to 0 from a user program or by other means in the
first scan after the power is turned ON. Thereafter, do not change the
value of this parameter. This parameter is used by the system.
If the various offset parameters in the MSG-RCVE function are set to non-zero values, the actual
addresses that are read in the remote station will be the sum of the specified data addresses and the val-
ues in the offset parameters.
Continued from previous page.
MSG-SNDE Function Parameter Description
GW
GW+1
GW+2
GW+4n-4
GW+3
GW+4n-3
GW+4n-2
GW+4n-1
Remote Station Address Table
Register type
Data type
Address low setting
Address high setting
Register type
Data type
Address low setting
Address high setting
Register type:
0 = M registers
1 = G registers
2 = I registers
3 = O registers
4 = S registers
Data type:
2 = Word
3 = Long word
4 words per
data item
Remote Station Address Table When Using Function Code 434D Hex
GW0020000
FFFFF hex
(1048575)
MW0000000
12
13
14
10
11
15
16
17
18
19
20
21
22
434D hex
0000 hex
4E20 hex
0001 hex
0000 hex
0000 hex
0001 hex
0003 hex
0000 hex
0000 hex
A120 hex
0007 hex
0000 hex
GW0000000
7A120 hex(500000)
4E20 hex(20000)
03E8 hex(1000)
0001 hex
0000 hex
0000 hex
10
20
21
0000 hex
11
0000 hex
0000 hex
22
23
0000 hex
0000 hex
24
25
0000 hex
0000 hex
26
27
0000 hex
0000 hex
28
29
0000 hex
0000 hex
30
31
0000 hex
0000 hex
32
33
0000 hex
0000 hex
34
35
0000 hex
0000 hex
36
37
FFFF hex
000F hex
38
39
0000 hex
0000 hex
40
41
FFFF hex
001F hex
42
43
0000 hex
0000 hex
44
45
7FFF hex
0001 hex
46
47
1FFFFF hex(2097151)
17FFF hex
GW0020011
0003 hex(3) x 4
MW0000000
MW0500000
MW0500004
3E8 hex
MW0001000
0000 hex
0003 hex
03E8 hex
0000 hex
0001 hex
0002 hex
0D40 hex
0003 hex
0002 hex
0003 hex
7FFE hex
0001 hex
GW0000000
30D40 hex
GW0200000
IW00000
IW17FFE
17FFE hex
17FFE hex
MP3000-series Controller (Send: master)
MP3000-series Controller (Receive: slave)
MSG-RCVE Function
Parameter List
M registers
Data 1 (2 words)
G registers
Data 1 (1 word)
I registers
Data 3 (2 words)
Use connection
number 1.
Input Register
Offset
Hold Register
Offset
Data register
offset
M Register Writing
Range High
G Register Writing Range High
O Register Writing Range High
MSG-SNDE Function
Parameter List
Use connection number 1.
FC = 434D hex: Reads the contents
of non-consecutive registers.
G registers
Remote Station
Data Address
Table size: 12 words
Remote
Station
Address
Table
M registers
3 = Long word data
1 = G registers
2 = Word data
2 = I registers
3 = Long word data
Local station
data addresses
Total size: 5 words
Data 1 (2 words)
Data 2 (1 word)
Data 3 (2 words)
0 = M registers
The table size is 4
words times the
number of data items.
0 = M registers
1 = G registers
Example of Addressing and Offset Addressing with Function Code 434D Hex
Note

Table of Contents

Other manuals for YASKAWA MP3000 Series

Related product manuals