Example Of On-Demand Data Transmission Program Using User Frames - Mitsubishi Electric MELSEC iQ-R Series User Manual

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

Advertisement

14.4
Example of On-Demand Data Transmission
Program Using User Frames
The following shows a program example when transmitting on-demand data including user frames.
Configure the settings and perform registration with Engineering tool in advance.
On-demand data transmission program using user frames
■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
settings
specification
Application
User frame specification
settings
■Program example
Transmit the on-demand data with the on-demand function, and designate the two-word data to be transmitted with the
ONDEMAND instruction.
The data in the user frame portion of the on-demand data to be transmitted is the registered data of the user frame number
registered with Engineering tool.
Category
Label name
Module label
C24_1
Label to be defined
Define the global label as shown below.
For information on the module FB to be used, refer to the following manual.
MELSEC iQ-R Serial Communication Module Function Block Reference
14 ON-DEMAND DATA COMMUNICATIONS USING USER FRAMES
274

14.4 Example of On-Demand Data Transmission Program Using User Frames

Communication protocol setting
Communication speed setting
Transmission setting
Station number setting (CH1, 2 in common: 0 to 31)
Communication control specification
Send wait time specification
On-demand function specification
On-demand user frame specification
Data bit
Parity bit
Odd/even parity
Stop bit
Sum check code
Online change
Setting change
Word/byte units designation
Transmission wait time designation
Buffer memory start address
designation
Data length designation
Start frame No. designation (1st)
Start frame No. designation (2nd)
Final frame No. designation (1st)
Final frame No. designation (2nd)
Description
Target module
Setting value
MC protocol (format 1)
19200 bps
8 bits
None
Odd
1 bit
None
Disable
Disable
0
Word
0H
400H
0H
2H
3EBH
401H
0H
Device

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents