A
A-4 CP1L Programming Examples
148
SYSMAC CP1L Getting Started Guide
Ap
pend
ix
z
Flags for Modbus-RTU Easy Master Function (Serial Port 1)
(A): Turn the A640.00 execution flag ON to send command data D32300 and later.
For details, refer to
DM Area Setup
on the next page.
(B): When a command has been sent successfully, A640.01 execution normal flag
is turned ON, and data is stored to responses D32350 and later.
(C): When a communication error occurs, A640.02 execution error flag is turned
ON, and the error code is stored to D32352.
A640.01
A640.02
A640.00
Execution normal flag
Execution error flag
Execution bit
A
B
C
Channel
Bits
Setting
Serial Port 1
D32300
07 to 00
Command
Slave address (00 to F7 Hex)
15 to 08
Reserved (must be 00 Hex)
D32301
07 to 00
FUNCTION code
15 to 08
Reserved (must be 00 Hex)
D32302
15 to 00
Number of communication data bytes (0000 to
005E hex)
D32303 to D32349
15 to 00
Communication data (max. 94bytes)
Channel
Bits
Setting
Serial Port 1
D32350
07 to 00
Response
Slave address (01 to F7 Hex)
15 to 08
Reserved (must be 00 Hex)
D32351
07 to 00
FUNCTION code
15 to 08
Reserved
D32352
07 to 00
Error code
15 to 08
Reserved (must be 00 Hex)
D32353
15 to 00
Number of response bytes (0000 to 03EA Hex)
D32354 to D32399
15 to 00
Response data (max. 92bytes)
W07E-EN-02+CP1L+GettingStartedGuide.book Seite 148 Montag, 15. September 2008 11:15 11