No subject


Thu Oct 26 19:20:09 CEST 2017


To          : gambas-user at lists.sourceforge.net
Cc          :
Date      : Wed, 14 Sep 2005 15:45:58 +0800
Subject : Re: [Gambas-user] Modbus on serial port



 THANKS but the Rob Kudla's web site is down for a
 problem with the server's mather board .



> Werner wrote:
>
> > ariafrancesco at ...86... wrote:
> >
> >> I am trying to implement the serial modbus protocol on gambas.
> >> Bookcase was my intention to create a class that all could use but I
> >> have a problem that I do not succeed to resolve.
> >> The instrument with which I try to communicate seems that it
> >> understands what I send but does not answer to me .
> >> What you know version 1,0,3 of gambas has of the problems with the
> >> object of the serial port?
> >> In order to create the string to send to the instrument I use:
> >>
> >>  strOutput =3D Chr$(CByte(Val ("&H "& strNode))) & Chr$(3) &
> >> Chr$(CByte(Val ("&H" & Left$(varTemp, 2)))) & Chr$(CByte(Val ("&H "&
> >> Right$(varTemp, 2)))) & Chr$(0) & Chr$(1)
> >> in order then to send it with:
> >>=0D
> >> PRINT # Sport, (strOutput & Chr$(CByte(Val("&H "& Right$(strCRC, =0D
> >> 2)))) & Chr$(CByte(Val("&H" & Left$(strCRC, 2)))))
> >> Is possible that problem is the character set ?
> >> Gambas use UTF8 character set so is possible that using the Chr$
> >> function the instrument does not understand?
> >> P.S. I sure that the instrument receives the string , in fact it
> >> count the message and understand that it is for he (strNode =3D "1"
> >> node 1 of net modbus 485)
> >> HELP!!
> >>
> >> Is possible that I'm successful to write an OCX for the modbus in VB6 =
=0D
> >> and does not succeed to make of the porting on Gambas!!!!!
> >> P.S. 2 :-))  where I can find the rpm of last stable gambas for
> >> Mandriva?
> >> THANKS To ALL
> >>
> >>
> >>
> > The latest stable version is 1.0.11. The download for all
> > distributions starts here: http://gambas.sourceforge.net/download.html
> > To find out if there is a problem with character conversion you might
> > want to hook up with a second computer using a terminal emulator
> > program that can display SOH DEL ESC NUL and all the other control
> > characters. Alternatively you could write a small gambas program for
> > it simulating modbus simple replies.
> >
> > Just my 2 cents.
> >
> > Regards,
> >
> > Werner
> >
> > I just tried Rob Kudla's web site to look up Gambas for Mandriva but
> > the site just serves an empty page.  Tough luck.
>
> =0D
> Werner
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download it for free - -and be entered to win a 42" plasma tv or your very
> own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>





More information about the User mailing list