Intermec 5055 Guía De Referencia

Descargar
Página de 216
Programming Guidelines
2-7
2
Example: Status Code Macros
/* This segment requests label input and then checks for success.  */
/* If successful, then retrieve the label symbology.              */
/* If an error occurs, then displays the error message            */
#include "im5055.h"
void main()
{
char input[1024];    // Input buffer (input from network must be 1024 characters)
IM_ORIGIN  source;   // Source(s) where input is to come from
IM_STATUS  status;   // Results of call
IM_DECTYPE symbol;
 // Symbology
status = im_receive_input(IM_LABEL_SELECT, IM_INFINITE_TIMEOUT,
         
  &source, input);
         
if ( IM_ISSUCCESS(status))
    
im_get_label_symbology( &symbol);
    
if ( IM_ISERROR(status))
    
im_message(status);
}
System Functions
Use the system functions to control the 5055 configuration or to set an event timer.
im_command
im_event_wait
im_set_time_event