![Panasonic FP2 Series User Manual Download Page 56](http://html.mh-extra.com/html/panasonic/fp2-series/fp2-series_user-manual_262311056.webp)
FP2 Serial Data Unit
Communication with External Devices
4
−
14
4.4
Sample Program
4.4
Sample Program
4.4.1
Sample Program <FP series PLC (MEWNETCOL
−
COM)>
Connect the serial data unit and the FP series PLC, using the RS232C interface, and
carry out communication using the MEWTOCOL
−
COM communication protocol.
FP2
FP series PLC
Data area read command
“%01#RDD00000 00001
**
C
R
” sent
Value of specified data register
SDU
SD RD ERR SD RD ERR AL
COM.1COM.2
COM.1(RS232C)
COM.2(RS232C)
When the data area read command “%01#RDD00000 00001
**
C
R
” is sent from the FP2
side, the values of the data register of the PLC connected to the system are sent as a
response. For example, if the value K100 is stored in DT0 and the value K200 is stored
in DT1 of the PLC, “%01$RD6400C800F1C
R
” is sent as a response to the command.
If there is an error, “%01! OO
**
C
R
” is returned (OO is the error code).
In addition to data area read and write commands, the MEWTOCOL
−
COM is also
provided with contact area reading and writing, and many other commands.
Wiring diagram
Connection with the FP0 COM port
1
Pin No.
Abbrev.
Symbol
FP2 serial data unit side (9 pins)
FP0 COM port side (3 pins)
2
3
4
5
6
7
8
9
FG
SD
RD
RS
CS
SG
CD
ER
S
R
G
Protective ground
Sent data
Received data
Request to send
Clear to send
Signal ground
Received line signal detector
Data terminal ready
Signal name
Not used
——
next page
Summary of Contents for FP2 Series
Page 1: ......
Page 6: ...FP2 Serial Data Unit Table of Contents iv ...
Page 18: ...FP2 Serial Data Unit Functions of Serial Data Unit 1 2 ...
Page 22: ...FP2 Serial Data Unit Functions of Serial Data Unit 1 6 1 3 Restrictions on Units Combination ...
Page 24: ...FP2 Serial Data Unit Parts and Functions 2 2 ...
Page 30: ...FP2 Serial Data Unit Confirming the Unit Settings and Design Contents 3 2 ...
Page 44: ...FP2 Serial Data Unit Communication with External Devices 4 2 ...
Page 66: ...FP2 Serial Data Unit Precautions Regarding Serial Data Unit Operation and Programs 5 2 ...
Page 72: ...FP2 Serial Data Unit Operation If an Error Occurs 6 2 ...
Page 78: ...FP2 Serial Data Unit Specifications 7 2 ...
Page 86: ...FP2 Serial Data Unit Specifications 7 10 7 4 Transmission Format ...
Page 88: ...FP2 Serial Data Unit Sample Programs 8 2 ...
Page 98: ...FP2 Serial Data Unit Sample Programs 8 12 8 2 Table of ASCII Codes ...
Page 100: ...Record of changes FP2 Serial Data Unit R 2 ...
Page 101: ......
Page 102: ......