Mitsubishi Electric MELSEC iQ-R Series User Manual page 359

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

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents