ID Innovations Bar code Slot Reader - Visible Red and Infra Red User Manual

Page 19

Advertising
background image

Features

19

Macro #1: Active For: NONE
Use this option to specify the bar code types for which the Macro is active. You may choose a specific symbology or you may
choose to have the macro active for all bar code symbologies or all bar code symbologies always. For example, if you define a
macro as Active For CODE 39 and you read a CODE 128 bar code, the macro will not be executed. The following is a more
detailed description of each of the settings for this option:

ALL BAR CODE TYPES Will activate the macro for all bar code types except when another macro is defined for the specific bar

code type that was read. For example, if you have defined Macro #1 as Active For ALL BAR CODE
TYPES and Macro #2 as Active For CODE 39 and you read a CODE 39 bar code, then Macro #2 will be
executed and Macro #1 will be ignored.


ALL BAR CODE TYPES - ALWAYS Will activate the macro for all bar code types, whether another macro was defined for the

specific bar code type that was read or not. For example, if you defined Macro #1 as Active For ALL BAR
CODE TYPES - ALWAYS and Macro #2 as Active For CODE 39 and you read a CODE 39 bar code, both
Macro #1 and Macro #2 will be executed.


CODE 39, CODE 128, etc Setting the Active For to a specific bar code symbology will activate the macro for bar codes that

are read that match the symbology. If you define more than a single macro to be Active For the same bar
code type, each macro is executed in turn. For example, if you define macros #1 and #2 as Active For
CODE 39 and you read a CODE 39 bar code, then Macro #1 is executed and then Macro #2 is executed.





Note: If you define a Macro as Active For a specific symbology it will override any macros that are Active For ALL BAR CODE
TYPES.

Order of Precedence

When performing macros the decoder will follow a specific order of precedence. The decoder will make multiple passes
through the defined macros. The manner by which the decoder executes each of the macros is identical to that of the
Edits, for more information see Order of Precedence on page 15.

The following table is an example of the order of precedence for a sample set of Macros and the bar codes scanned. The
Macro # column is the number of the macro in the decoder. The Active For column is the setting for the Active For option
for the macro. The CODE 39 and CODE 128 columns represent the order that the decoder will execute the macros when
CODE 39 and CODE 128 bar codes are read respectively, those marked with NA are not executed.


Macro #1: Find String:





Enter the text that you are attempting to replace, any matches on this text in the bar code will be replaced with the Replace With
string below. The text that you enter here must exactly match the text in the bar code in order for the Replace With string to be
used. You may enter up to 15 characters of text.





Note: You may use any of the string special characters when entering the text for this field, for more information see Strings
page 20. For example, to Match on DEC 254 HEX FE, enter #FE as the Find String.


Macro #1: Replace With:







Enter the text that is to replace the Find String when found in the bar code. You may enter up to 15 characters of replacement
text in the field. If this is not enough you may include a unique character at the end of the text and have the next macro replace the
character with another 15 characters.





Note: You may use any of the string special characters when entering the text for this field, for more information see Strings
page 20.

Macro #

Active For

CODE 39 CODE 128

1

ALL BAR CODE TYPES

NA

1

2

CODE 39

1

NA

3

ALL BAR CODE TYPES - ALWAYS

3

3

4

ALL BAR CODE TYPES

NA

2

5

CODE 39

2

NA

6

CODABAR

NA

NA

7

ALL BAR CODE TYPES - ALWAYS

4

4

Advertising