15 DATA COMMUNICATIONS USING USER FRAMES
15.4 Data Transmission
315
15
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.
Sending data in the following order
*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)
Transmission order Send data type User frame No. Contents of transmitted/registered data
1 User frame 2H (2) 02H (STX)
2 User frame 3E8H (1000) 01H, 3BH (station No., ";")
3 Arbitrary data 8000H (-32768) 41H, 42H, 43H, 44H ("ABCD")
4 User frame 400H ( 1024) 03H, FFH, F6H, 0DH, 0AH (ETX, Sum check, CR, LF)
0
400H
0H
0H
42H(B) , 41H(A)
44H(D) , 43H(C)
S
T
X
(;) A B C D
E
T
X
C
R
L
F
02
H
01
H
3B
H
41
H
42
H
43
H
44
H
03
H
4B
H
0D
H
0A
H
2H 8000H3E8H 400H
3E8H
8000H
1
4
2H
Address
Buffer memory
(Transmission user frame designation area)
0 or the following frame designation No.
User frame being transmitted designation No. area
Un\G182
CR/LF output designation area
Un\G183
Output head pointer designation area
Un\G184
Output count designation area
Un\G185
(1st)
Un\G186
(2nd)
Un\G187
(3rd)*1
Un\G188
Transmission frame number designation area
To the
target
device
(4th)
Un\G189
(5th)
Un\G190
(6th)
Un\G191
(Transmission area)
Transmission data count (word unit/byte unit)
2 or 4
Un\G1024
Un\G1025
Transmitted data
Un\G1026
(When the ASCII-BIN conversion is not performed)
User frame User frame
Arbitrary data
(4th)
(1st)
(2nd)
Figure at left is for byte units.
Station No.
Sum check code
For word units, the arbitrary data portion is sent in the sequence of "ABCD".
Corresponding frame No.