--- In "Don W. Carr" <> wrote:
>
> My code for modbus is C++ based right now, but I am thinking of
moving the
> basic protocol code to C so I can offer both C and C++ interfaces. I
do not
> support all of the opcodes, only the most common, but of course the
others
> could be added one at a time. I have both client and server code,
but have
> only used the server code for testing the client. The client code was
> running 24 hours a day polling remote counters over TCP/IP once per
second,
> before I put an RTU to save network traffic, and only send an event
when a
> train crossing was detected. Are you wanting Modbus serial or Modbus
TCP/IP?
> Finally, I only have Modbus RTU, but would be fairly simple to add
Modbus
> ascii.
>
> Well, if you want to be an early tester, I could send the modbus code to
> you. I would need to as a minimum separate it all out with it's own
> makefile, but I am sure your input would help me. I have it creating a
> shared object file so it can be installed as a library on the target
> computer. You just need to install the .so file and run ldconfig.
>
> To give you an idea of configuring my control engine, here is the text
> config file for Analog Inputs:
>
> AI0|Temp|Deg C|1|1|0|0.0|10.0|0.0|10.0|1|-10000.0|0|0|0|0|0|0|0|0|0|
> AI1|Input
Speed|RPM|1|1|1|0.0|4000.0|0.0|10.0|1|-10000.0|0|0|0|0|0|0|0|0|0|
> #FLM1|Fluormetro 0-1V|%|1|1|0|0.0|100.0|0.0|1.0|1|-
> 10000.0|0|0|0|0|0|0|0|0|0|
> #FLM2|Fluormetro 0-10V|%|1|1|1|0.0|100.0|0.0|10.0|1|-
> 10000.0|0|0|0|0|0|0|0|0|0|
> # Tag
> # Description
> # Engineering Units Label
> # Driver Number
> # Card
> # Channel
> # Engineering Units Low
> # Engineering Units High
> # Raw Value Low
> # Raw Value High
> # Decimal Places
> # Zero Cutoff
> # Alarm Low
> # Caution Low
> # Caution High
> # Alarm High
> # Alarm Deadband
> # Alarm Low Enable
> # Caution Low Enable
>
> Don.
>
Don:
I would be interested, but my schedule has been rearranged by some
problems with our prototype machine.... So I can't say I'll have a
chance to look at it until we resolve our other issues...
In any case, I am trying to avoid C++ since I am really not very good
at it... So I would prefer the C version.
Thanks,
--Yan
------------------------ Yahoo! Groups Sponsor --------------------~-->
Home is just a click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|