Packet; Packet Elements - 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.3

Packet

A packet consists of packet elements.
Up to 32 elements can be set in a packet, and the maximum data length is 2048 bytes per packet.

Packet elements

The following explains the details of the packet elements.
For data examples on packet elements, refer to the following section.
Page 527 Data examples of packet elements
Header
Use this element when a specific code or character string exists at the head of a packet.
• When sending: Sends a specified code and character string.
• When receiving: Verifies a header and received data.
Item
Description
Element Name
Set a name of the element.
Code Type
Select a data type of the setting value.
ASCII String/ASCII Control Code/HEX
Setting Value
Set data within 1 to 50 bytes.
The setting ranges that can be set for each code type are as follows:
• ASCII String: 20H to 7EH
• ASCII Control Code: 00H to 1FH, and control code of 7FH
• HEX: hexadecimal data of 00H to FFH
• Only one header can be used in a packet.
• A header can be set only at the head of a packet.
2 DATA COMMUNICATION USING PREDEFINED PROTOCOL
Remarks
Setting example
• ASCII String: 'ABC'
• ASCII Control Code: STX
• HEX : FFFF
2.3 Packet
2
35

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents