3 DATA COMMUNICATION USING NONPROCEDURAL PROTOCOL
3.2 Transmitting Data to Target Device
77
3
3.2 Transmitting Data to Target Device
This section explains data transmission from the CPU module to a target device.
Sending methods
The following shows how to send data in any format using the nonprocedural protocol.
Send data is stored in the device designated with the OUTPUT instruction.
Control data is stored in the device designated with the OUTPUT instruction.
When the OUTPUT instruction is executed, C24 transmits the amount of data designated by the send data quantity from
the send data area in ascending order of the send data area addresses.
10
STX
D
F
H
B
A
G
E
C
ETX
(00
H
)
(0A
H
)
(41
H
)
(02
H
)
(43
H
)
(42
H
)
(45
H
)
(44
H
)
(47
H
)
(46
H
)
(03
H
) (48
H
)
ABCDEFGH
(02
H
) (41
H
) (42
H
) (43
H
) (44
H
) (45
H
) (46
H
) (47
H
) (48
H
) (03
H
)
S
T
X
E
T
X
AH
(02
H
)(41
H
)(48
H
)(03
H
)
ETX STX
OUTPUT
CH1/CH2
C24
ÒÓ
Ô
CPU module
Transmission data
Transmission area
(buffer memory)
Transmission
data count
Transmission
data
designation
OUTPUT instruction
Transmission data
Target device
Contents Control timing
Transmission command
OUTPUT instruction
completion device
OUTPUT
instruction