General-Purpose Communication9-49.3 Sending Operation9.3.1 Overview of Sending Operation InstructionsSending in the general-purpose communication is performed by formulating a data table forsending on the given operation memory, and subsequently executing GPSEND instruction.External deviceABCDE (CR)Send message/dataDT100 U 5DT101 B ADT102 D CDT103 ・・E00001 ・・・・・・・・00002 ・・・・・・・・・・・・・・ ・・・・・・・・・・・・・・ ・・・・・・・・PLCSend data based on GPSENDinstruction Sample program Confirm that the unit is in the general-purpose communication mode (X8), and that thegeneral-purpose sending process is not in progress for the same port (Y8), and start up thesending program. In the SSET instruction, convert a given message into an ASCII text string, and specify thenumber of strings to be sent in the data register DT100, and the message to be sent fromthe data register DT101. In the UNITSEL instruction, specify the slot No. (U0) and the COM. port No. (U1). In the GPSEND instruction, specify and execute the header of the table where the messageto be sent is saved (DT101) and the No. of characters (DT100).R0( )DFSSET DT100“ABCDE”R100R100R100UNITSEL U1U0GPSEND . US DT101 DT0DT100X8 Y8 GPSEND execution conditionsClear to send flag: ONSending active flag: OFFSettings for communication portS1: Slot 0 (U0)S2: COM1 (U1)SEND processingS: Header of Sent Data (DT101)n: No. of Sent Characters (DT100)D: Execution Result Code (DT0)General purposecommunicationClear to send flagGeneral-purposecommunicationSending active flagR100Data conversionS1: Sent DataS2: Save Sent DataDT100: No. of Sent CharactersDT101 onward: Sent DataR101( )DFY8 R101( )DF /Confirm sending completionReset GPSEND executionconditionsS1 S2S1 S2S n D(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