Intermec IP2L Basic Reader Interface Programmer's Reference Manual (BRI versio - Page 79
TRIGGERREADY, Example 2, Responses, Purpose, Command Shortcut, Syntax, Parameters
View all Intermec IP2L manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 79 highlights
Chapter 4 - BRI Commands Example 2: This example shows how to check how many trigger events are in the queue, remove all trigger events from the queue, and then check the queue again: TRIGGERQUEUE 3 OK> TRIGGERQUEUE FLUSH OK> Responses: TRIGGERQUEUE 0 OK> For details about EVENT messages, see "Understanding EVENT Messages" on page 110. TRIGGERREADY Purpose: Command Shortcut: Syntax: Parameters: Responses: Examples: This command is used by the application to transition the event queue for the reader to the READY state. When issued, this command enables the asynchronous reporting of the oldest trigger event in the event queue for the reader. Events are reported in the same order as they were originally queued. If you send a TRIGGERREADY command, but no trigger event has been configured, the BRI ignores the command and returns OK>. TRIGRDY TRIGGERREADY [CANCEL] [CANCEL] = This reserved keyword terminates a TRIGGERREADY command that was issued if no event has occurred yet. For details about EVENT messages, see "Understanding EVENT Messages" on page 110. These examples demonstrate how to use the TRIGGERREADY command. Example 1: In this example, the reported GPIO state 11 (8+2+1) indicates that when the trigger fired, inputs 0, 1, and 3 were all high, and input 2 was low: TRIGGERREADY OK> EVT:TRIGGER Dock door #43 GPIO 11 Example 2: In this example, you can use this command to terminate a TRIGGERREADY command that was issued if no event has occurred yet. TRIGGERREADY CANCEL Basic Reader Interface Programmer Reference Manual 67