Mitsubishi Electric MELSEC iQ-R Series User Manual page 48

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

Advertisement

Check Code
Use this element when an element indicating check code data is included in a packet.
C24 automatically calculates a specified check code at timing of sending/receiving, and adds it to a send packet or detects an
error of a receive packet.
Item
Element Name
Processing Method
Code Type
Data Length
Data Flow
Complement Calculation
Calculating
Start
Range
End
Precautions
• When "Code Type" is "ASCII Hexadecimal", an ASCII  BIN conversion error (7F20H) may occur if a string except for '0' to
'9' 'A' to 'F' 'a' to 'f' is received.
• When "Code Type" is "ASCII Decimal", an ASCII  BIN conversion error (7F20H) may occur if a string except for '0' to '9' is
received.
• Only one check code can be placed in a packet.
• Packet elements placed behind a check code cannot be included in the calculating range.
• A check code cannot be included in the calculated range.
• When a calculated check code (Sum check/Horizontal parity/16-bit CRC) does not match a received check code, a sum
check error (7F24H) may occur.
• One or more elements are required before a check code.
2 DATA COMMUNICATION USING PREDEFINED PROTOCOL
46
2.3 Packet
Description
Set a name of the element.
Select a calculating method.
Horizontal parity/Sum check/16-bit CRC (for MODBUS)
ASCII Hexadecimal
• When sending: Select a format in which a calculated
ASCII Decimal
check code is sent.
HEX
• When receiving: Select a format in which data are
received.
Select the data length on the line (byte).
The range is 1 to 4.
Forward Direction
• When sending: Sends a calculated check code, from the
(Upper byte  Lower byte)
upper byte.
• When receiving: Handles received data as a check code,
from the upper byte.
Reverse Direction
• When sending: Sends a calculated check code, from the
(Lower byte  Upper byte)
upper byte.
• When receiving: Receives data from the lower byte.
Effective when the data length is 2 to 4 (bytes).
Byte Swap
• When sending: Sends a calculated check code by
(by word)
swapping the upper byte and lower byte by word. When
receiving: Receives data by swapping the upper byte
and lower byte by word, and handles as a check code.
Effective when the data length is 4 bytes.
Select the complement calculation.
No complement calculation/One's complement/Two's complement
Select the starting element number of the calculating range.
The range is 1 to 32.
Select the ending element number of the calculating range.
The range is 1 to 32.
Remarks
Not settable when "Processing
Method" is "16-bit CRC (for
MODBUS)"
Not settable when "Processing
Method" is "16-bit CRC (for
MODBUS)"
Not settable when "Processing
Method" is "16-bit CRC (for
MODBUS)", or when the "Data
Length" is set to "1 (byte)".
Not settable when "Processing
Method" is "16-bit CRC (for
MODBUS)"

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents