Chapter 2 Data Communication Using Predefined Protocol - Mitsubishi Electric MELSEC iQ-R Series User Manual

Serial communication module
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

2
DATA COMMUNICATION USING PREDEFINED
PROTOCOL
Data can be transmitted and received between the CPU module and an target device with a protocol appropriate to the target
device (such as a measuring instrument and a barcode reader).
Since devices or buffer memory data can be taken into communication packets, this protocol communication is suitable for
data that may change every transmission.
The protocol setting required to communicate with the target device is configured in Engineering tool.
Protocols can be selected from the predefined protocol library offered or can be arbitrarily created and edited.
In addition, since the registered setting data is written to the CPU built-in memory, SD memory card, or flash ROM, the
program size in the CPU module can be reduced.
For an example of data communication using the predefined protocol, refer to the following manual.
 MELSEC iQ-R Serial Communication Module User's Manual (Startup)
Data communication using communication protocol
Ò Setting protocols
The setting can be easily configured with the Predefined
protocol support function of Engineering tool.
The number of protocols and packets that can be registered are as follows:
• Protocols: Up to 128
• Packets: Up to 256
Depending on the packet to be registered, the maximum numbers of packets above may not be registered.
The usage rate of the packet data area differs depending on the types of protocol.
It can be confirmed on the status bar of the "Protocol Setting" screen displayed by following the procedure as
follows:
• Select [Tool]  [Predefined Protocol Support Function] of Engineering tool, and set "Module Type" and
"Connection Destination CPU" on the "Predefined Protocol Support Function" window. And, add the
protocol on the "Predefined Protocol Support Function" screen.
2 DATA COMMUNICATION USING PREDEFINED PROTOCOL
26
Ó Writing protocols
The set protocols are written to the C24.
Ô Executing protocols
Protocols can be executed with a dedicated instruction.
One dedicated instruction can execute multiple protocols.
Send
Data
CR
Data
STX
Receive
Data communications using
protocols corresponding to the
target device are available.
ENQ
CR

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents