![Panasonic FP2 Series Скачать руководство пользователя страница 62](http://html.mh-extra.com/html/panasonic/fp2-series/fp2-series_user-manual_262311062.webp)
FP2 Serial Data Unit
Communication with External Devices
4
−
20
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
R
” (carriage return) is
specified.
2) Data sent using the F95 (ASC) instruction should be converted
to ASCII code data.
“
”
1
2
3
4
5
C
R
31
(1)
32
(2)
33
(3)
34
(4)
35
(5)
0D
(C
R
)
H
Conversion of ASCII code
Conversion of ASCII code
(Data to be sent)
(Coded data)
next page
Содержание FP2 Series
Страница 1: ......
Страница 6: ...FP2 Serial Data Unit Table of Contents iv ...
Страница 18: ...FP2 Serial Data Unit Functions of Serial Data Unit 1 2 ...
Страница 22: ...FP2 Serial Data Unit Functions of Serial Data Unit 1 6 1 3 Restrictions on Units Combination ...
Страница 24: ...FP2 Serial Data Unit Parts and Functions 2 2 ...
Страница 30: ...FP2 Serial Data Unit Confirming the Unit Settings and Design Contents 3 2 ...
Страница 44: ...FP2 Serial Data Unit Communication with External Devices 4 2 ...
Страница 66: ...FP2 Serial Data Unit Precautions Regarding Serial Data Unit Operation and Programs 5 2 ...
Страница 72: ...FP2 Serial Data Unit Operation If an Error Occurs 6 2 ...
Страница 78: ...FP2 Serial Data Unit Specifications 7 2 ...
Страница 86: ...FP2 Serial Data Unit Specifications 7 10 7 4 Transmission Format ...
Страница 88: ...FP2 Serial Data Unit Sample Programs 8 2 ...
Страница 98: ...FP2 Serial Data Unit Sample Programs 8 12 8 2 Table of ASCII Codes ...
Страница 100: ...Record of changes FP2 Serial Data Unit R 2 ...
Страница 101: ......
Страница 102: ......