beautypg.com

Rockwell Automation 2755-SNx Adaptascan Bar Code Readers User Manual

Page 94

background image

5–12

Communicating with a 1746-BAS BASIC Module

Publication 2755-6.8

8. Check (enable) the Match Exactly check box.

9. Click the Edit button to open the Message Field Edit dialog.

10. Under Replacement Strings, type nr in the Fail: box.

Bar code data is sent to the BASIC module at end of a trigger.
The Fail string sends “nr” to the BASIC module when a no read
occurs.

Note: Enter 4 in the Length field of the Data Format. The length
parameter must be set to the number of characters in the bar code
symbol. The number 4 is chosen because a 4 character I 2 of 5
symbol is being read.

11. Click OK to return to the Message Field dialog.

12. Click OK again to return to the Message dialog.

Define the Message Format

1. Click the Format button from the Message dialog.

2. In the Trailer text box, type \r\n.

3. Under Message Destination, select Serial Port.

4. Click OK to return to the Message dialog.