FP2 Serial Data UnitCommunication with External Devices4 − 144.4 Sample Program4.4 Sample Program4.4.1 Sample Program −COM)>Connect the serial data unit and the FP series PLC, using the RS232C interface, andcarry out communication using the MEWTOCOL−COM communication protocol.FP2FP series PLCData area read command“%01#RDD00000 00001** CR ” sentValue of specified data registerSDUSD RD ERR SD RD ERR ALCOM.1COM.2COM.1(RS232C)COM.2(RS232C)When the data area read command “%01#RDD00000 00001** CR ” is sent from the FP2side, the values of the data register of the PLC connected to the system are sent as aresponse. For example, if the value K100 is stored in DT0 and the value K200 is storedin DT1 of the PLC, “%01$RD6400C800F1C R ” is sent as a response to the command.If there is an error, “%01! OO ** CR ” is returned (OO is the error code).In addition to data area read and write commands, the MEWTOCOL−COM is alsoprovided with contact area reading and writing, and many other commands.Wiring diagramConnection with the FP0 COM port1Pin No. Abbrev.SymbolFP2 serial data unit side (9 pins)FP0 COM port side (3 pins)23456789FGSDRDRSCSSGCDERSRGProtective groundSent dataReceived dataRequest to sendClear to sendSignal groundReceived line signal detectorData terminal readySignal nameNot used ——next page