Chapter 9
9-9
Communications Programs (CS-series PLCs)
9-2-2 Reading/Writing Data
This programming example writes and reads data using explicit messages. Explicit messages can
be executed by specifying FINS commands in the DM Area allocated to the PLC, and sending them
using the CMND instruction. (The IOWR instruction is used with C200HX/HG/HE PLCs.)
If there is an error in the command, the completion code is stored in the DM Area and the command
is re-executed.
■
Allocations
Bit
001000
Bit
000000
Bit
000001
Bit
000002
Bit
003000
Bit
003001
D00000
D00001
D00002
D00003
D00004
D00005
D00006
D00009
D03000
D03001
D03002
D03003
D03004
D03007
D00100
Flag
Input
Program Start Input Bit
Message Execution Flag
Response data storage area
Command Write Flag
Response Flag
Sending Message Flag
Message Sent Flag
Write data (Hex) (See note)
to
Slave node address (3G3MV Inverter)
Service code; 0E: Read, 10: Write
Number of command data bytes (Hex)
Class ID (Hex)
Instance ID (Hex)
Attribute ID (Hex)
Note:
If the written data size is
Word,” set in the order of the
rightmost bits and leftmost bits.
Command code: 2801
Completion code
No. of received data bytes
Node address and service code (8E: Read normal; 90: Write normal; 94: Error)
Read data or error code
to
Completion code storage for communications errors
Summary of Contents for 3G3MV-PDRT2
Page 4: ......
Page 12: ......
Page 36: ...Chapter 1 1 22 Functions and System Configuration...
Page 52: ...Chapter 2 2 16 Example System Startup...
Page 94: ...Chapter 4 4 14 SYSDRIVE Inverter Settings...
Page 130: ...Chapter 5 5 36 Remote I O Functions...
Page 234: ...Chapter 8 8 14 Communications Errors...
Page 362: ...R 2 Revision History...