Settings Of Send 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

Settings of send user frames

These settings are required for transmitting data to a target device using user frames by the nonprocedural protocol.
These settings are configured with Engineering tool or from the CPU module.
Settings with Engineering tool
• Configure the settings to transmit data in "Send user frame designation" of the parameter.
Navigation window  [Parameter]  [Module Information]  Module Name  [Module Parameter]  "Application
Settings"  "User frame specification"
Settings by the CPU module
■How to designate and write send data when transmitting with user frames
For arbitrary data portion when transmitting user frames and arbitrary data portion in combination, the send data quantity and
send data are written in the send area as is the case in transmitting them in an arbitrary format.
User frames are registered using Engineering tool. Or, the user frame registration number to be sent is written from the CPU
module to the send user frame designation area of the buffer memory as shown in the figure below.
After executing registration/write, C24 transmits the designated data in the designated order upon execution of the PRR
instruction.
Ex.
Sending data in the following order
Transmission order
Send data type
1
User frame
2
User frame
3
Arbitrary data
4
User frame
To the
target
device
(When the ASCII-BIN conversion is not performed)
User frame
Arbitrary data
(1st) (2nd)
S
E
T
T
(;)
A
B
C
D
X
X
02
01
3B
41
42
43
44
03
H
H
H
H
H
H
H
H
2H
3E8H
8000H
Corresponding frame No.
*1 When sending data that was written to the send area, 8000H is used as a temporary user frame number. (Page 316 Send user frame
designation)
User frame No.
2H (2)
3E8H (1000)
8000H (-32768)
400H ( 1024)
Address
Buffer memory
0 or the following frame designation No.
Un\G182
0
Un\G183
1
Un\G184
4
Un\G185
(1st)
2H
Un\G186
3E8H
(2nd)
Un\G187
8000H
(3rd)*1
Un\G188
400H
(4th)
Un\G189
0H
(5th)
Un\G190
0H
(6th)
Un\G191
2 or 4
Un\G1024
42H(B) , 41H(A)
Un\G1025
44H(D) , 43H(C)
Un\G1026
User frame
(4th)
Figure at left is for byte units.
C
L
For word units, the arbitrary data portion is sent in the sequence of "ABCD".
R
F
4B
0D
0A
H
H
H
400H
Contents of transmitted/registered data
02H (STX)
01H, 3BH (station No., ";")
41H, 42H, 43H, 44H ("ABCD")
03H, FFH, F6H, 0DH, 0AH (ETX, Sum check, CR, LF)
(Transmission user frame designation area)
User frame being transmitted designation No. area
CR/LF output designation area
Output head pointer designation area
Output count designation area
Transmission frame number designation area
(Transmission area)
Transmission data count (word unit/byte unit)
Transmitted data
15 DATA COMMUNICATIONS USING USER FRAMES
15.4 Data Transmission
15
315

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents