Writing To The Variable Area - Omron E5AR - MANUAL 2 User Manual

Digital controller
Hide thumbs Also See for E5AR - MANUAL 2:
Table of Contents

Advertisement

Section 7 Communication (Modbus)

7.6 Writing to the variable area

Write to the variable area by setting the required data in the following command frame.
Command
Response
7-12
Command frame
Slave
Function
Write start
Number of
address
mode
address
elements
H'10
1
1
2
Data name
Specify the "Unit No." of the E5AR/ER. Set in hexadeci-
Client address
mal from H'01 to H'63 (1 to 99).
Function mode
The function code for variable area write is H' 10.
Specify the address of the setting data to which you wish
First address of
to write.
write
For more information on addresses, see "Appendix Set-
ting list" (P.A-6).
Specify the number of setting data items that you wish to
write
2 for the number of elements. The setting range
Number of
is H'0002 to H'0068 (2 to 104).
elements
Example: When the number of setting data items is 2,
Byte count
Specify the number of bytes of data to be written.
FINS-mini response text
Slave
Function
Write start
Number of
address
mode
address
elements
H'10
1
1
2
Data name
Client address
The value from the command frame appears here.
This is the received function code.
In an error response frame, "H'80" is added to the
received function code to indicate that it is an error
Function mode
response.
Example: Received function code = H'10
Beginning
Beginning address of write that was received.
address of write
Number of
Received number of elements.
elements
This is a check code calculated from the client address
to the data end. For the calculation method, see "7.2
CRC-16
Frames ■ Command frame ● Example of CRC-16 cal-
culation" (P.7-4).
Byte
Write data
count
Data 1
Data 1
Most significant Least significant
2
1
Number of elements 2 bytes
Data n
Data n
Most significant Least significant
Explanation
specify H' 0004.
CRC-16
2
2
Explanation
Function code in error response frame = H'90
CRC-16
2

Advertisement

Table of Contents
loading

This manual is also suitable for:

E5er

Table of Contents