FP2 Serial Data Unit
Communication with External Devices
4
−
16
4.4
Sample Program
Procedure of communication
Data register
Ladder program
R10
, K0
, DT0
, K7
, K1
F151 WRT
R10
M ABC123DEF456
, DT0
F95 ASC ,
, H D
, DT7
F0 MV
Shared memory
FP2 serial data unit
FP series PLC
FP2 CPU unit
Sending
Reception
Received buffer cleared (Y11: off)
Reception completed (X1: off)
Shared memory cleared
Received buffer cleared (Y11: on)
Reception completed (X1: on)
Data area read command
and end code set in data register
Data written with F151
Sending directive (Y10: on)
Data area read command
“%01#RDD00000 00001
**
C
R
” sent
Sending completed (X0: on)
Value of PLC data register
on other side received
If normal: “%01$RD6400C800 F1 C
R
”
If erroneous: “%01! OO
ϕ ϕ
**
C
R
”
Error code
Data read with F150
BCC
Communication setting
For COM.1 port
Setting contents
Valid (odd)
Invalid
Transmission speed
Data length (Character bit
)
Parity check
Stop bit length
Control signals CS and CD
Start code
Item
End code
19200bps
8 bits
1 bit
Invalid
C
R
(H0D)
Dip switch setting
FP2 serial data unit side
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: ......