Intermec Janus 2010 Reference Manual page 134

Intermec janus 2010: reference guide
Hide thumbs Also See for Janus 2010:
Table of Contents

Advertisement

im_receive_buffer_noprot
If IM_INFINITE_TIMEOUT is selected, the function will not return until the
end of message character has been received.
The term_char parameter is the end of message character needed to
terminate input from the communications port. The character is normally a
carriage return, but you can set it to any other character.
OUT Parameter:
The comm_length parameter retrieves the actual number of characters
received.
The status_code parameter is one of the standard status codes defined in
Appendix A, "Status Codes."
Return Value:
None.
You must install the PHIMEC.EXE protocol handler. This procedure will
Notes:
not work if linked.
The difference between this procedure and im_receive_buffer_no_wait is
that when im_receive_buffer_noprot returns from the procedure call, the
data has been read, the timeout has expired, or an error was encountered.
im_receive_buffer_no_wait, im_cancel_rx_buffer
See Also:
Example
With System, Intrmecd_IO, Intrmecp_IO, Text_IO;
Use
System, Intrmecd_IO, Intrmecp_IO, Text_IO;
procedure exnoprot Is
package SYSWORD_IO is new INTEGER_IO (System.Word);
status
: System.Word;
comm_length
: System.Word := 0;
timeout
: System.Word := 20000;
eom_char
: System.Byte := 16#0D#;
RX_data_buffer : String (1..300) := (others => Ascii.NUL);
TX_data_buffer : String (1..300) := (others => Ascii.NUL);
RX_buff_length : System.Word := System.Word(RX_data_buffer'Length);
TX_buff_length : System.Word;
RX_data_ptr
: System.Address := RX_data_buffer'Address;
TX_data_ptr
: System.Address := TX_data_buffer'Address;
done
: Boolean := FALSE;
3-94
-- 20 seconds
-- CR for terminating char

Advertisement

Table of Contents
loading

This manual is also suitable for:

Janus 2050Janus 2020Janus psk for ada

Table of Contents