EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-RJ71C24-R4 - Program for Data Reception with User Frame

Mitsubishi Electric MELSEC iQ-RJ71C24-R4
574 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
15 DATA COMMUNICATIONS USING USER FRAMES
15.3 Program for Data Reception with User Frame
295
15
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 content of buffer memory
For other than the following items, use default values.
*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)
Setting item Setting value
Basic
settings
Vari ous co ntro l
specification
Test mode setting
Communication protocol setting Nonprocedural protocol
Communication speed setting 19200 bps
Transmission
setting
Operation setting Independent
Data bit 8
Parity bit None
Odd/even parity Odd
Stop bit 1
Sum check code None
Online change Disable
Setting change Disable
Address DEC (HEX) Name Setting value
CH1
173 (ADH) User frame use enable/disable designation 1H: Use
174 (AEH) Start frame No. designation, 1st
*1
3E8H
*2
8001H
*3
175 (AFH) Start frame No. designation, 2nd
*1
3E9H
*2
8002H
*3
176 (B0H) Start frame No. designation, 3rd
*1
6H
177 (B1H) Start frame No. designation, 4th
*1
15H
178 (B2H) Final frame No. designation, 1st
*1
41BH
*2
8005H
*3
179 (B3H) Final frame No. designation, 2nd 0H: None
180 (B4H) Final frame No. designation, 3rd 0H: None
181 (B5H) Final frame No. designation, 4th 0H: None
8224 (2020H) User frame receiving method designation, 1st 0H: Method 0
8225 (2021H) User frame receiving method designation, 2nd 1H: Method 1
8226 (2022H) User frame receiving method designation, 3rd 1H: Method 1
8227 (2023H) User frame receiving method designation, 4th 1H: Method 1
8229 (2025H) Method 1 dedicated receive end data quantity designation, 2nd 12 words
8230 (2026H) Method 1 dedicated receive end data quantity designation, 3rd 0 word
8231 (2027H) Method 1 dedicated receive end data quantity designation, 4th 2 words

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-RJ71C24-R4

Related product manuals