2.15 Using Message Functions
Using Function Codes
2-363
The following example illustrates how the states of multiple coils are changed by using function code 0F
hex. In this example, 400 bits of data starting from register OB120000 in the local station are written to
registers starting at MB00010000 in the remote station.
1. If the coil offset parameters in the MSG-RCVE function are set to a non-zero value, the actual
addresses that are written to in the remote station will be the sum of the remote station data
addresses and the word offset value in the coil offset parameters.
2. Set the address of the registers to write to within the range specified by the M Register Writing
Range Low and M Register Writing Range High parameters in the MSG-RCVE function. Data will
not be written if an address exceeds the valid setting range.
OB120000
FFFFF hex(1048575)
MB0010000
MB0000000
12
13
14
10
11
15
16
17
18
19
20
21
22
000F hex
0000 hex
3E80 hex
0001 hex
0000 hex
0000 hex
0000 hex
0190 hex
0000 hex
0000 hex
0000 hex
0012 hex
0003 hex
OB000000
120000 hex
3E80 hex
0190 hex(400)
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
3E8 hex
0 hex
OB12018F
MB001024F
MP3000-series Controller (Send: master)
MP3000-series Controller (Receive: slave)
MSG-RCVE Function
Parameter List
Use connection number 1.
M registers
Remote Station
Data Address
Coil Offset
MSG-SNDE Function
Parameter List
Use connection number 1.
FC = 0F hex:
Changes the
states of
multiple coils.
O registers
Local station
data addresses
Data size: 400 bits
Data
Data Data size: 400 bits
M Register Writing Range Low
M Register Writing Range High
G Register Writing Range High
O Register Writing Range High
3 = O registers
Example of Addressing and Offset Addressing with Function Codes 05, 06, 0B, 0F, or 10 Hex