Intermec PM43/PM43c Fingerprint Developer's Guide (PC23d, PC43d/t, PM23c, PM43 - Page 38
Breaking Program Execution, Using a BREAK Statement
View all Intermec PM43/PM43c manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 38 highlights
Chapter 2 - Understanding Fingerprint Syntax 5 Type RUN and press Enter. The printer executes the program and prints the text to the communications program window. 6 Type LIST and press Enter. The program is listed with line numbers. Breaking Program Execution You may write some programs that start automatically when the printer is turned on. Because there is no default break facility from the host via any communication channel, you should always include some break facilities in auto-start programs. Note: If the startup program is stored on an external device, you can disconnect the device and restart the printer. Four instructions can be used for providing a program with a break interrupt facility: • BREAK - Specifies an interrupt character. • BREAK...ON - Enables break interrupt. • BREAK...OFF - Disables break interrupt. • ON BREAK...GOSUB... - Branches the execution to a sub-routine when a break interrupt is executed. Note: A break interrupt character is saved in the printer temporary memory and is not removed until the printer is restarted, unless you specifically delete it using a BREAK...OFF statement for the device. In all break-related instructions, the serial communication channels and the keyboard are referred to by numbers: 0 = "console:" (the printer keyboard) 1 = "uart1:" 2 = "uart2:" 3 = "uart3:" BREAK does NOT work on the following channels: 4 "centronics:" 5 "net1:" 6 "usb1:" Always specify the interrupt character (BREAK) before enabling it in the program (BREAK...ON). Using a BREAK Statement The BREAK statement specifies an interrupt character by its decimal ASCII value. BREAK can be separately specified for each serial communication channel (except "net1:" and "usb1:") and for the printer keypad. 26 Fingerprint Developer's Guide