Example Of Data Transmission - Mitsubishi Electric MELSEC iQ-R Series User Manual

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

Advertisement

Example of data transmission

The following shows an example of data transmission.
Transmission of arbitrary data
When C24 transmits data to the target device with ASCII-BIN conversion used (Transmitting given data with OUTPUT
dedicated instruction)
Ex.
Target
device
C24
Transmission
X50
command
CPU module
Completion device
M0
Status display
M1
device
at completion
■Program example
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
(arbitrary data)
3
4
1
2
A
B
5
6
33H
34H
31H
32H
41H
42H
35H
36H
OUTPUT
ON
ON
1 scan
17 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION)
*
Eight characters of data
in the transmission area
are sent in two characters
per byte through
ASCII-BIN conversion.
Abnormal
completion
Normal
completion
(Convert)
Un\G289
1H
Un\G1024
00H , 02H
(1234H)
*1
Un\G1025
12H , 34H
(56ABH)
Un\G1026
56H , ABH
Buffer memory
Description
Target module
17.4 Data Communication Using Nonprocedural Protocol
ASCII-BIN conversion
designation
Transmission area
(Designation of no. of data sent)
(Transmission data)
*1
0004H in byte units
Device
355
17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents