|
|
User Manual Chapter 25 GFK-1645M Dec 2019
Serial I/O, SNP & RTU Protocols 546 Port Status The port status consists of a status word and the number of characters in the input buffer word 1 Port status word (see below) word 2 Characters available in the input buffer The Port Status Word can be: Bit Name Definition Meaning 15 RI Read In Set Read Bytes or Read String invoked Cleared Previous Read bytes or String has timed out, been 14 RS Read Success Set Read Bytes or Read String has successfully Cleared New Read Bytes or Read String invoked 13 RT Read Time- Set Receive timeout occurred during Read Bytes or Read Cleared New Read Bytes or Read String invoked 12 WI Write In Set New Write Bytes invoked Cleared Previously invoked Write Bytes has timed out, been 11 WS Write Set Previously invoked Write Bytes has successfully Cleared New Write Bytes invoked 10 WT Write Time- Set Transmit timeout during Write Bytes Cleared New Write Bytes invoked 9 CA Character Set Unread characters are in the buffer Cleared No unread characters in the buffer 8 OF OverFlow Set Overflow error occurred on the serial port or internal Cleared Read Port Status invoked 7 FE Framing Error Set Framing error occurred on the serial port Cleared Read Port Status invoked 6 PE Parity Error Set Parity error occurred on the serial port Cleared Read Port Status invoked 5 CT CTS is active Set CTS line on the serial port is active or the serial port Cleared CTS line on the serial port is not active 4 - 0 U not used, should be 0
|