How to use 1746-bas module

yang1216

Member
Join Date
Jun 2009
Location
BeiJing
Posts
84
Hi all,
We have a old machine with SLC control system, which communicates with barcode scanner through 1746-BAS module. And it works very well for years.
Now we want the scanner to scan some QR code, which is much longer than our old barcode. The SLC can only read a part of the string.
So we have to change the basic code of the 1746-BAS module to transfer more characters. And I have change to code like this:
>1 REM EXAMPLE PROGRAM
>10 REM ENABLE CALL 22 INTERRUPTS
>20 PUSH 1 : REM PRT1 ACTIVE FOR CALL 22
>30 PUSH 100 : REM RECEIVING 100 BYTES OF DATA MAXIMUM
(the old code is 30)

>40 PUSH 13 : REM <CR> USED AS TERMINATION CHARACTER
>50 PUSH 1 : REM SEND DATA TO M1 FILE
>60 PUSH 0 : REM OFFSET INTO M1 FILE
>70 PUSH 0 : REM STRING NUMBER - NOT USED
>80 PUSH 1 : REM BYTE SWAPPING ENABLED
>90 CALL 22
>100 POP S : REM STATUS OF CALL 22 SETUP
>110 IF (S<>0) THEN PRINT “UNSUCCESSFUL CALL 22 SETUP”
>120 END

But it do not worked. Can anyone help me?
Thanks very much.
 
You will want to make sure the QR reader is putting the <CR> character after the barcode information. One way to check this is with it connected to a terminal program on a PC (e.g., Hyperterm), or maybe with the QR reader configuration program.
 

Similar Topics

Hello, We have an older SLC500 controlled system that is using a BASIC module to communicate to a third party device. Looking into converting the...
Replies
4
Views
1,281
Hi, I am upgrading a AB PLc to Siemens PLC logic and everything is ready for siemens but the problem is the existing PLC is communicating to DCS...
Replies
7
Views
4,771
I'll admit that in all these years I have only encountered M0/M1 files one other time, and it was used to communicate with Eurodrives. In a SLC...
Replies
6
Views
1,728
Please I need to know how to add an image into a paper label, Im using a 1746-BAS module to send the data to a printer. thanks
Replies
2
Views
1,828
Hello everyone, I need help with programming 1746-BAS module. I am able to connect to PRN1 port via Hyperterminal and execute commands, even...
Replies
20
Views
5,443
Back
Top Bottom