EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-RJ71C24-R2 - Example of Data Transmission

Mitsubishi Electric MELSEC iQ-RJ71C24-R2
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...
17 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION)
17.4 Data Communication Using Nonprocedural Protocol
355
17
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.
Program example
For information on the module FB to be used, refer to the following manual.
MELSEC iQ-R Serial Communication Module Function Block Reference
Category Label name Description Device
Module label C24_1 Target module
Label to be defined Define the global label as shown below.
*
X50
M0
M1
1H
(1234H)
12H , 34H
OUTPUT
ON
ON
33H
3
34H
4
31H
1
32H
2
41H
A
42H
B
35H
5
36H
6
00H , 02H
(56ABH)
56H , ABH
*1
*1
Target
device
(arbitrary data)
Eight characters of data
in the transmission area
are sent in two characters
per byte through
ASCII-BIN conversion.
C24
Transmission
command
CPU module
Completion device
Abnormal
completion
Status display
device
at completion
Normal
completion
ASCII-BIN conversion
designation
(Convert)
Un\G289
1 scan
Transmission area
(Designation of no. of data sent)
Un\G1024
(Transmission data)
Un\G1025
Un\G1026
Buffer memory
0004H in byte units

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-RJ71C24-R2

Related product manuals