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.
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.