Omron PROFIBUS DP GATEWAY Operation Manual page 61

Profibus-dp gateway to host link/compoway-f
Table of Contents

Advertisement

Compoway-F Communication
Note
Example
Write Mini FINS Command
46
Device
Command
address
code
MRC/SRC
2 bytes
2 bytes
The response of this command for a correct executing of the command is
defined as:
Command code
MRC/SRC
2 bytes
Refer to the operation manual of the Compoway-F device for more detail
regarding the read mini FINS command.
1. The actual data to be written to the device consists of one double word. If
a CS1/CJ1 PLC is used to assemble the Write command, de data will be
swapped before sending it over PROFIBUS, due to the communication for-
mats of both Compoway-F and PROFIBUS. The PLC program must swap
these words before the data can be transmitted.
2. For CX-Programmer 5.0 or higher OMRON provides function blocks to im-
plement the assembly of the Free Communication Read command. When
processing the response this function block will perform the word swapping
automatically. Refer to Appendix B Function Block Programming for more
details.
Reading the internal setpoint from an E5ZN (device 2), channel 1 (start
address 2, 1 element to read) is done with the command:
0002 0101 C1 0002 00 0001(hex).
The response is (no error occurred): 0101 0000 0000 0000 0000 0000(hex).
The Write mini FINS command consists of
• A device address number.
• A command code MRC/SRC.
• A variable area type, indicating the area within the device, to where the
parameter must be written.
• A Read start address within the specified area.
• A Bit position within the parameter to be read.
• The Number of bits/bytes to read from the parameter area/location.
• The data to be written.
This format is shown below.
Device
Command
Variable
address
code
MRC/SRC
2 bytes
2 bytes
The response of this command for a correct executing of the command is
defined as:
Command code
Variable
Read start
type
address
1 byte
2 bytes
Response
code
2 bytes
Write
Bit
type
start
position
address
1 byte
2 bytes
1 byte
Response
code
MRC/SRC
2 bytes
2 bytes
Section 3-3
Bit position
Number of
elements
1 byte
2 bytes
Data
4 bytes
Number
Element1
of
elements
2 bytes
4 bytes

Advertisement

Table of Contents
loading

This manual is also suitable for:

Prt1-scu11

Table of Contents