Data Sent And Received With The Serial Data Unit - Panasonic FP2 User Manual

Serial data unit
Hide thumbs Also See for FP2:
Table of Contents

Advertisement

Communication with External Devices
4.5

Data Sent and Received with the Serial Data Unit

4.5
Data Sent and Received with the Serial Data Unit
The three precautions should be observed when accessing the shared memory of the
serial data unit.
Sent and received data stored in the shared memory is ASCII code
data. However, the codes set as the start and end codes cannot be
used for any purpose other than as start and end codes.
If "Yes" is selected for "start code" in the transmission format
settings, the STX (H02) must always be added at the beginning of
the data being sent.
The end code specified in the transmission format must always be
added at the end of the data being sent.
When sending data:
The data written to the sent buffer of the shared memory is sent just as it is. Also, data
is written to the shared memory in 1−byte units, starting from the lowest byte of the word
data.
Example:
When the data "12345" is sent as an ASCII code to an RS232C
device
1) The end code specified in the transmission format should be
added at the end of the data. Here, "C
specified.
2) Data sent using the F95 (ASC) instruction should be converted
to ASCII code data.
4 − 20
Conversion of ASCII code
"
1
2
3
4
H
31
32
33
34
(1)
(2)
(3)
(4)
FP2 Serial Data Unit
" (carriage return) is
R
5
C
"
(Data to be sent)
R
Conversion of ASCII code
(Coded data)
35
0D
(5)
(C
)
R
next page

Advertisement

Table of Contents
loading

Table of Contents