EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-RJ71C24-R4 - Page 359

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...
17 COMMUNICATING WITH ASCII CODE (ASCII-BIN CONVERSION)
17.4 Data Communication Using Nonprocedural Protocol
357
17
Transmission using user frame
When C24 transmits data to the target device with ASCII-BIN conversion used (Transmitting given data and user frame
combined with PRR 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
C24_1.stnCH1.wnSet_TransmissionData_D[0] CH1_Send data specification U0\G1025
C24_1.wnForUserRegistrationNo8001H_D[0] For user registration number 8001H [0] U0\G6912
C24_1.wnForUserRegistrationNo8001H_D[1] For user registration number 8001H [1] U0\G6913
Label to be defined Define the global label as shown below.
*
PRR
X50
ON
ON
M0
M1
0AH
T
54H4FH 54H
(012 DH)
41H 4CH02H 51H DH3BH 03H00H
OT A L
01H
3
A7H33H 34H
4
31H
1
32H
2 A
41H 42H
B
35H
5
36H
6
S
T
X
E
T
X
3BH
0H
1H
5H
43F2H
43F3H
C001H
8000H
441BH
0H
00H , 02H
1H
(1234H)
12H , 34H
(56ABH)
56H , ABH
*1
*1
Target
device
Sum
check code
Station No. of
C24
Station No. of
target device
Data in transmission area
(arbitrary data)
Eight characters of data
in the transmission area
are sent in two characters
per byte through
ASCII-BIN conversion.
;
;
(Total number)Q
C24
Corresponds to 3F2H
(for first designated frame)
Corresponds to 3F3H
(for second designated
frame)
Corresponds to
8001H (for third
designated
frame)
8000H
(for fourth designated frame)
Corresponds to 41BH
(for fifth designated
frame)
registration No. of
corresponding user
frame
(Not sent)(Sending)
Un\G182
User frame No. being
transmitted
Transmission
command
0H/Other than 0H
(Do not send)
Un\G183
CR/LF output designation
CPU module
(1st)
Un\G184
Output head pointer
designation
Completion device
Un\G185
Output count designation
Abnormal
completion
Status display device
at completion
Un\G186
Transmission frame no.
designation (1st)
Normal
completion
Un\G187
(2nd)
1 scan
Un\G188
(3rd)
Un\G189
(4th)
Un\G190
(5th)
Un\G191
(6th)
(Convert)
Un\G289
ASCII-BIN conversion
designation
Un\G1024
Transmission area
(Designation of no. of data sent)
Un\G1025
(Transmission data)
Un\G1026
Buffer memory
0004H in byte units

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-RJ71C24-R4

Related product manuals