14-25
14 Serial Communications
CP2E CPU Unit Software User’s Manual(W614)
14-4
Modb
u
s
-R
TU Easy
Master F
unc
tion
14
14-4-4 Prog
ra
mming
E
x
amples
z
Flags for Modbus-RTU Easy Master for Serial Port 2 or Built-in RS-485 Port
(1)Turn ON A641.00 (Execution Bit) to send command data stored starting at D1
3
00. For details, refer
on page
.
Precautions for Correct Use
Precautions for Correct Use
The Execution Bit will automatically turn OFF. Do not turn OFF the bit through the ladder.
(2)When a command has been sent successfully, A641.01 (Execution Normal Flag) will turn ON, and
the response data will be stored starting from D1
3
50.
(
3
)If a communications error occurs, A641.02 (Execution Error Flag) will turn ON, and the error code
will be stored in D1
3
52.
Words
Bits
Setting
Serial Option Port
D1
3
00
00 to 07
Command
Slave address (00 to F7 hex)
0
8
to 15
Reserved (Always 00 hex.)
D1
3
01
00 to 07
Function code
0
8
to 15
Reserved (Always 00 hex.)
D1
3
02
00 to 15
Number of communications data bytes (0000 to
005E hex)
D1
3
0
3
to D1
3
49
00 to 15
Communications data (94 bytes max.)
Words
Bits
Setting
Serial Option Port
D1
3
50
00 to 07
Response
Slave address (01 to F7 hex)
0
8
to 15
Reserved (Always 00 hex.)
D1
3
51
00 to 07
Function code
0
8
to 15
Reserved
D1
3
52
00 to 07
Error code
0
8
to 15
Reserved (Always 00 hex.)
D1
3
5
3
00 to 15
Number of response bytes (0000 to 0
3
EA hex)
D1
3
54 to D1
3
99
00 to 15
Response data (92 bytes max.)
A641.00 Exec
u
tion Bit
A641.01 Exec
u
tion
N
ormal Flag
A641.02 Exec
u
tion Error Flag
(1)
(2)
(3)
Summary of Contents for SYSMAC CP Series
Page 3: ......
Page 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Page 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Page 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Page 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Page 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Page 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Page 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Page 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Page 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Page 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Page 577: ......