Reading/Writing Data - Omron 3G3MV-PDRT2 User Manual

Devicenet communications units
Table of Contents

Advertisement

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
Program Start Input Bit
Bit
000000
Message Execution Flag
Bit
000001
Command Write Flag
000002
Bit
Response Flag
Bit
003000
Sending Message Flag
Bit
003001
Message Sent Flag
D00000
Slave node address (3G3MV Inverter)
D00001
Service code; 0E: Read, 10: Write
D00002
Number of command data bytes (Hex)
D00003
Class ID (Hex)
D00004
Instance ID (Hex)
Attribute ID (Hex)
D00005
D00006
D00009
to
Response data storage area
D03000
Command code: 2801
D03001
Completion code
D03002
No. of received data bytes
Node address and service code (8E: Read normal; 90: Write normal; 94: Error)
D03003
D03004
D03007
to
D00100
Read data or error code
Write data (Hex) (See note)
Completion code storage for communications errors
Input
Flag
Note: If the written data size is
Word," set in the order of the
rightmost bits and leftmost bits.
Chapter 9
9-9

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

3g3rv-pdrt2

Table of Contents