Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mimic barcode reader
Message
De
23/07/2008 12:35:20
 
 
À
22/07/2008 05:28:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01333054
Message ID:
01333468
Vues:
14
>Hello,
>
>here is a problem i have with serial communication:
>
>I have a wood machine that comes with a software that reads barcodes from a serial barcode reader (RS232) in order to get specific cutting information. This barcode has 26 characetrs. The barcode reader also send carriage return as suffix value. The program works ok with these settings. The change i must do is as follows:
>
>The barcode reader must be removed from this pc and an other pc will be installed right next to the first one. The new pc wil produce the 26 character information and send it to the original pc through serial ports. In this way normaly nothing need to be changed to the first pc.
>So i connect the two pc's with serial cable and the new pc runs this code:
>
>At the init event of a form i open serial port with MSCOMM ocx
>
>** Init Event
>
>thisform.olecontrol.CommPort = 1
>
>thisform.olecontrol.settings ='9600,n,8,1'
>thisform.olecontrol.portOpen =.t.
>
>** one button of the form has the following code:
>
>thisform.olecontrol.output = cStr +chr(13)+chr(10) && cStr stands for the 26 character barcode
>
>
>Even though i 've tested with hyperterminal and the receive string seem's ok, the original pc's program founds error in receiving.
>
>What could be the mistake here?

What errors are you seeing ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform