Delta Electronics — 6.19.2 Explanation of Communication Instructions

Chapter 6 Applied Instructions Symbol S 1 : Communication port number (1–2, 11–12) 6_ S 2 : Source of the data to be sent S 3 : Length of the data to be sent D 1 : First device where communication data received is stored D 2 Condition for ending receiving data Explanation 1. S 1 is a communication port number: COM1 is number 1, COM 2 is number 2, Card 1 is number 11 and Card 2 is number 12. If the data is out of the communication port range, the instruction does not execute any sending or receiving. 2. If you use a specific character or characters to end receiving data, it is suggested that you apply the instruction to ASCII data.

If you do not apply the instruction to ASCII data, it is suggested that you use a timeout period to end receiving data. 3. S 2 is the source of the data to be sent. S 3 is the length of the data to be sent. 6-563 API Instruction code Operand Function 1812 COMRS S1, S2, S3, D1, D2 Sending and receiving communication data Device X Y M S T C HC D FR SM SR E K 16# “$” F S1     S2   S3     D1  D2  BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1    S2    S3    D1    D2    Pulse instruction 16-bit instruction 32-bit instruction - AS -