Mitsubishi Electric MELSEC iQ-R Series User Manual page 41

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

Advertisement

■When endianness is converted in units of double-words
The following program examples show when endianness is converted (in units of double-words) in the IO controller program.
Network 1
Initial processing
Initial processing
Network 2
Receiving I/O data (endianness conversion in units of double-words)
SWAP
%M0.0
DWord
"RefreshReq"
EN
ENO
#recv_dword_
%ID196
data[0]
OUT
"recv_area_
dword"
IN
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 double-words)
SWAP
%M0.0
DWord
"RefreshReq"
EN
ENO
#send_dword_
%QD196
data[0]
IN
"send_area_
dword"
OUT
■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 double-
word of the receive data in the receive area (slot 4, unit: double-word) tag, and
transfer the data to the receive data (unit: double-word) tag in "local".
Execute receive data processing with the program (Network 3).
Receive data processing
■Send data processing
Execute send data processing with the program (Network 4).
Send data processing
With the program (Network 5), perform byte order swapping in one double-
word of the send data in the send data (unit: double-word) tag in "local", and
transfer the data to the send area (slot 2, unit: double-word) tag.
7 COMMUNICATION EXAMPLE
7.1 Example of I/O Data Exchanges
7
39

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec iq-rj71pn93

Table of Contents