![background image](http://html1.mh-extra.com/html/omron/cj1w-scu22/cj1w-scu22_operation-manual_742498268.webp)
7 Using Modbus-RTU Slave Mode
7-18
CJ-series Serial Communications Units Operation Manual for NJ-series CPU Unit(W494)
z
Function
Writes a bit in the memory used for CJ-series Unit.
z
Command
* The address depends on the area that is allocated.
z
Response
z
Writing 1 (ON) to CIO 0002.02
Note
The subscript number in the shaded box indicates the TRUE/FALSE (1/0) status of the bit
that is read.
Write Single Coil
Length
Data
Function Code
1 byte
05 hex
Output Address
2 bytes
0000 to FFFF hex (*)
Output Value
2 bytes
0000 hex (OFF) or FF00 (ON)
Length
Data
Function Code
1 byte
05 hex
Output Address
2 bytes
0000 to FFFF hex
Output Value
2 bytes
0000 hex or FF00
Request
Response
Data
Data
Function Code
05 hex
Function Code
05 hex
Output Address (H)
00 hex
Output Address (H)
00 hex
Output Address (L)
22 hex
Output Address (L)
22 hex
Output Value (H)
FF hex
Output Value (H)
FF hex
Output Value (L)
00 hex
Output Value (L)
00 hex
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CIO 0
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CIO 1
31
1
30
0
29
1
28
1
27
1
26
1
25
0
24
0
23
1
22
1
21
0
20
1
19
18
17
16
CIO 2
47
46
45
44
43
42
41
40
39
38
1
37
0
36
1
35
0
34
1
33
1
32
0
CIO 3
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48