9.4 Receiving Operation9-99.4 Receiving Operation9.4.1 Overview of Receiving Operation InstructionsIn the general-purpose communication mode, data received from the partner device are savedin eight reception buffers for each COM port. When the GPRECV instruction is executed in auser program, data in the reception buffer can be copied into a given operation memory.External device・・・・・・ H 31 32 33 34 35・・・・・・ ・・・・・・・・・・・・・・ ・・・・・・・・・・・・・・ ・・・・・・・・PLC00001 2 100002 4 300003 ・・5・・・・・・ ・・・・・・・・1 2 3 4 5(CR)Receive message/dataDT200 U 5DT201 H 32 31DT202 H 34 33DT203 H ・・・35Reception buffer (eight for each COM port)Transfer the strings received based onGPRECV instruction to a given data registerOperationmemory Sample program When the reception done flag (X0) turns ON, the reception program is started up by theGPRECV instruction. In the UNITSEL instruction, specify the slot No. (U0) and the COM. port No. (U1). In the GPRECV instruction, specify and execute the header of the data table where thereceived message is saved (DT200) and the final address (DT209).GPRECV . US DT209DT200R100UNITSEL U1U0X0( )DFR100GPRECV processingS1: Header ofReceived Data (DT200)S2: Terminator ofReceived Data (DT209)GPRECV execution conditionsReception done flag: ONS1 S2S1 S2Settings for communication portS1: Slot 0 Built in CPU (U0)S2: COM1 (U1)(Note) The unit number and COM port number in the above program is applied when the COM.1 port of the CPU unitis used.Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: info@clrwtr.com