Mitsubishi Electric MELSEC iQ-R Series User Manual page 40

Profinet io device module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■When endianness is converted in units of words
The following program examples show when endianness is converted (in units of words) in the IO controller program.
Network 1
Initial processing
Initial processing
Network 2
Receiving I/O data (endianness conversion in units of words)
SWAP
%M0.0
Word
"RefreshReq"
EN
ENO
%IW68
"recv_area_word"
IN
OUT
Network 3
Receive data processing
%M0.0
"RefreshReq"
Network 4
Send data processing
%M0.0
"RefreshReq"
Network 5
Sending I/O data (endianness conversion in units of words)
SWAP
%M0.0
Word
"RefreshReq"
EN
ENO
#send_word_
data[0]
IN
OUT
7 COMMUNICATION EXAMPLE
38
7.1 Example of I/O Data Exchanges
#recv_word_
data[0]
Receive data processing
Send data processing
%QW68
"send_area_
word"
■Initial processing
Execute initial processing with the program (Network 1).
%M0.0
"RefreshReq"
■Receive data processing
With the program (Network 2), perform byte order swapping in one word of the
receive data in the receive area (slot 3, unit: word) tag, and transfer the data to
the receive data (unit: word) tag in "local".
Execute receive data processing with the program (Network 3).
■Send data processing
Execute send data processing with the program (Network 4).
With the program (Network 5), perform byte order swapping in one word of the
send data in the send data (unit: word) tag in "local", and transfer the data to
the send area (slot 1, unit: word) tag.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-rj71pn93

Table of Contents