Information générale
Catégorie:
Produits tierce partie
Ken
You can use the mscomm control in vfp. The sample code is very similar to what you would use with vfp.
#define DISPLAYRESET CHR(31)+CHR(17)
* add the mscomm control to your form.
with thisform.MsComm1
.Comport=1
.PortOpen=.t.
.Settings="9600,N,8,1"
.Output=DISPLAYRESET
.Output=CHR(67)+"1222"
.PortOpen=.F.
endwith
>Hi,
>
>Customer purchased LOGIC CONTROLS PD3000 pole displays to be used in conjunction with our POS system. We have never used one of these before. Anyone have experience and or sample code?
>
>LOGIC CONTROLS web site includes the following VB sample code and I am trying to decipher it but would appreciate any pointers.
>
> MSComm1.Comport=1
> MSComm1.PortOpen=True
> MSComm1.Settings="9600,N,8,1"
> MSComm1.Output=CHR$(31)+CHR$(17) (Restest the display)
> MSComm1.Output=CHR$(67) (send a sample character)
> MSComm1.PortOpen=False
>
>The device is connected via com port 1. 2 line display with 20 characters per line.
>
>Thanks,
>
>Ken
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement