Program For Data Reception With User Frame - Mitsubishi Electric MELSEC iQ-R Series User Manual

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

Advertisement

15.3

Program for Data Reception with User Frame

This section shows examples of the program to read the received data stored in C24 buffer memory to the CPU module, when
data including the user frame is received.
Reception program example
Data reception using a user frame in the following conditions and settings is shown below.
■Input/output signal of C24
Install C24 in the position where the I/O signal is X/Y00 to X/Y1F.
■C24 interface used for communication with target device
CH1 side RS-232 interface of C24
■Parameter settings
Setting item
Basic
Various control
Test mode setting
settings
specification
Communication protocol setting
Communication speed setting
Transmission
setting
■Setting content of buffer memory
For other than the following items, use default values.
Address DEC (HEX)
CH1
173 (ADH)
174 (AEH)
175 (AFH)
176 (B0H)
177 (B1H)
178 (B2H)
179 (B3H)
180 (B4H)
181 (B5H)
8224 (2020H)
8225 (2021H)
8226 (2022H)
8227 (2023H)
8229 (2025H)
8230 (2026H)
8231 (2027H)
*1 It indicates the registered contents of the user frame No. specified to the start and final frame No., respectively.
*2 When the setting is configured with Engineering tool. (Page 296 Program example when setting with Engineering tool)
*3 When the setting is configured by a program. (Page 299 Program example when setting by a program)
Operation setting
Data bit
Parity bit
Odd/even parity
Stop bit
Sum check code
Online change
Setting change
Name
User frame use enable/disable designation
*1
Start frame No. designation, 1st
*1
Start frame No. designation, 2nd
*1
Start frame No. designation, 3rd
*1
Start frame No. designation, 4th
*1
Final frame No. designation, 1st
Final frame No. designation, 2nd
Final frame No. designation, 3rd
Final frame No. designation, 4th
User frame receiving method designation, 1st
User frame receiving method designation, 2nd
User frame receiving method designation, 3rd
User frame receiving method designation, 4th
Method 1 dedicated receive end data quantity designation, 2nd
Method 1 dedicated receive end data quantity designation, 3rd
Method 1 dedicated receive end data quantity designation, 4th
Setting value
Nonprocedural protocol
19200 bps
Independent
8
None
Odd
1
None
Disable
Disable
Setting value
1H: Use
*2
3E8H
*3
8001H
*2
3E9H
*3
8002H
6H
15H
*2
41BH
*3
8005H
0H: None
0H: None
0H: None
0H: Method 0
1H: Method 1
1H: Method 1
1H: Method 1
12 words
0 word
2 words
15 DATA COMMUNICATIONS USING USER FRAMES
15.3 Program for Data Reception with User Frame
15
295

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents