plc4x-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christofer Dutz <christofer.d...@c-ware.de>
Subject Re: Exploring Plc4x
Date Wed, 27 May 2020 06:34:01 GMT
Hi all,

to me "registerholder:34" isn't a valid Modbus address string (at least not for 0.7.0)
Please have a look at the documentation for modbus connections here:
https://plc4x.apache.org/users/protocols/modbus.html

Chris

Am 27.05.20, 06:41 schrieb "venki hadoop" <hadooponsite@gmail.com>:

    Thanks Cesar, will do the same. Not sure some one already tested Modbus
    driver to retrieve holding register data, if some one did plz let us know
    about this issue.        Regards,


    On Wednesday, May 27, 2020, Cesar Garcia <cesar.garcia@ceos.com.ve> wrote:

    > Ok,
    >
    > For tomorrow I will take the time to test the new version and I will take a
    > step by step.
    >
    > Best regards,
    >
    > El mar., 26 may. 2020 a las 23:42, venki hadoop (<hadooponsite@gmail.com>)
    > escribió:
    >
    > > Sure Cesar,
    > >                     was unable to attach my program due to size
    > > restrictions. But 1st am testing to retrieve holding resgister variable
    > > locally, then will in corporate into my logstash plugin I already
    > > implemented for OPC ua server signal simulator. Please find imp code:
    > > Builder.addItem("value","registerholder:34").
    > > Plcreadrequest req= builder.build().
    > >   plcreadresponse res=req.execute().get().
    > >  Val=res.getObject("value").
    > >  It's throwing me timeout exception while executing execute().get()
    > method.
    > > On Wednesday, May 27, 2020, Cesar Garcia <cesar.garcia@ceos.com.ve>
    > wrote:
    > >
    > > > Hello,
    > > >
    > > > I'm glad it worked.
    > > >
    > > > Sure if you put your example code, we can help you test it.
    > > >
    > > > Best regards,
    > > >
    > > >
    > > > El mar., 26 may. 2020 a las 22:53, venki hadoop (<
    > hadooponsite@gmail.com
    > > >)
    > > > escribió:
    > > >
    > > > > Hello Cesar,.
    > > > >                    Was able to configure device and signal function
    > > based
    > > > > on above instructions.
    > > > >  But am unable to retrieve value, am assuming due to version issue,
    > > today
    > > > > will update to 0.7.0 and test then will update you.
    > > > > Regards,
    > > > > On Tuesday, May 26, 2020, Cesar Garcia <cesar.garcia@ceos.com.ve>
    > > wrote:
    > > > >
    > > > > > Hi,
    > > > > >
    > > > > > Please, you can use "karaf.bat" for startup.
    > > > > >
    > > > > > This way the console start.
    > > > > >
    > > > > > __  __                 _           _
    > > > > > |  \/  |   ___   _ __  | |   ___   | |_
    > > > > > | |\/| |  / _ \ | '__| | |  / _ \  | __|
    > > > > > | |  | | |  __/ | |    | | | (_) | | |_
    > > > > > |_|  |_|  \___| |_|    |_|  \___/   \__|
    > > > > >
    > > > > > Merlot Industrial Gateway (0.0.1-SNAPSHOT)
    > > > > >
    > > > > > Hit '<tab>' for a list of available commands
    > > > > > and '[cmd] --help' for help on a specific command.
    > > > > > Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to
shutdown
    > > > Merlot.
    > > > > >
    > > > > > karaf@root()>
    > > > > >
    > > > > >
    > > > > > Karaf documentation can be found at https://karaf.apache.org
    > > > > >
    > > > > > If the console starts, the Modbus server is already active, so
    > Modbus
    > > > > > devices must be created.
    > > > > >
    > > > > > At the command line type
    > > > > >
    > > > > > karaf@root>modbus:new --help
    > > > > > karaf@root> modbus:new 10 test desc 1000 1000 1000 1000
    > > > > >
    > > > > > Then check the configuration file for the simulation of the records
    > > as
    > > > I
    > > > > > pointed out in the previous email.
    > > > > >
    > > > > > You must verify if the instance is active, since the option
    > > "start.bat"
    > > > > > starts as a service, which you must kill to avoid a problem with
    > the
    > > > > ports.
    > > > > >
    > > > > > Take a look at the concept here https://github.com/glcj/
    > Merlot/wiki,
    > > I
    > > > > > will
    > > > > > work on the documentation shortly.
    > > > > >
    > > > > > For tomorrow if you are online, we can use Google meet or other
    > tools
    > > > if
    > > > > > you follow the problems.
    > > > > >
    > > > > > Best regards,
    > > > > >
    > > > > >
    > > > > >
    > > > > >
    > > > > >
    > > > > > El mar., 26 may. 2020 a las 0:06, venki hadoop (<
    > > > hadooponsite@gmail.com
    > > > > >)
    > > > > > escribió:
    > > > > >
    > > > > > > Hello Cesar,.
    > > > > > >                  Can you please provide me some information
    > > regarding
    > > > > how
    > > > > > > to start device, it's bit confusing.
    > > > >  I
    > > > > > > made necessary config changes in windows, then started using
    > > > start.bat
    > > > > > file
    > > > > > > from command line prompt. But nothing is happening. Please
let me
    > > > know
    > > > > > what
    > > > > > > am doing is correct?
    > > > > > >                Thanks,
    > > > > > >
    > > > > > > On Tuesday, May 26, 2020, venki hadoop <hadooponsite@gmail.com>
    > > > wrote:
    > > > > > >
    > > > > > > > Thanks Cesar, will test today, update status here.
    > > > > > > >
    > > > > > > > On Tuesday, May 26, 2020, Cesar Garcia <
    > cesar.garcia@ceos.com.ve
    > > >
    > > > > > wrote:
    > > > > > > >
    > > > > > > >> Hi Venki,
    > > > > > > >>
    > > > > > > >> Sorry for the delay, the internet connection was
spectacular,
    > > the
    > > > > ADSL
    > > > > > > >> very
    > > > > > > >> slow to download and very very & very slow
to upload.
    > > > > > > >>
    > > > > > > >> Attach you will find the download links for the
application,
    > the
    > > > > > version
    > > > > > > >> .zip (Windows) and .tar.gz (Linux)...
    > > > > > > >>
    > > > > > > >>
    > > > > > > https://mega.nz/file/nhVgxAQZ#M11oLJc-N5qDnbeF_
    > > > > > AhhsQk5ow9B3rPsIT2bt1ZORLc
    > > > > > > >>
    > > > > > > https://mega.nz/file/zocg0CyT#Pk5E9nRdM-
    > xdGNDSjAY9hl27pUpWgPDjdsO_
    > > > > > apCE6WQ
    > > > > > > >>
    > > > > > > >> 1.  You can add a Modbus device through the command
line or
    > > > > > permanently
    > > > > > > in
    > > > > > > >> the configuration file *com.ceos.merlot.modbus.dev.cfg*.
You
    > > can
    > > > > > > specify
    > > > > > > >> the number of elements you require (Coils, Input
registers,
    > > etc.).
    > > > > > > >> 2. After creating the Modbus device, you can add
the
    > simulation
    > > > > > > services,
    > > > > > > >> you have three:
    > > > > > > >> Random: Which simulates bits and scalars in a given
range of
    > > > > > registers.
    > > > > > > >> Function: Perform simple math operations
    > > > > > > >> Signal: Generates continuous functions (Sinus,
square,
    > > triangular
    > > > > and
    > > > > > > >> sawtooth).
    > > > > > > >> You can do this in the configuration file *
    > > > > > > com.ceos.merlot.modbus.sim.cf
    > > > > > > >> g*.
    > > > > > > >>
    > > > > > > >> The configuration files can be found in the 'etc'
directory.
    > > > > > > >>
    > > > > > > >> In the case of the signals function, you can play
with the
    > > > frequency
    > > > > > and
    > > > > > > >> phase registers, to adjust the signal to your sampling
time.
    > > > Please
    > > > > > > don't
    > > > > > > >> forget our friend Nyquist.
    > > > > > > >>
    > > > > > > >> I'm going to spend some time on documentation.
    > > > > > > >>
    > > > > > > >> Chris, this is the tool I was telling you about
to incorporate
    > > > into
    > > > > > the
    > > > > > > >> PLC4X project, if It meet the requirements of course.
    > > > > > > >>
    > > > > > > >> I hope you find it useful in testing with Modbus
    > > > > > > >>
    > > > > > > >> Best regards,...
    > > > > > > >>
    > > > > > > >>
    > > > > > > >>
    > > > > > > >>
    > > > > > > >>
    > > > > > > >> El vie., 22 may. 2020 a las 2:27, venki hadoop
(<
    > > > > > hadooponsite@gmail.com
    > > > > > > >)
    > > > > > > >> escribió:
    > > > > > > >>
    > > > > > > >> > Thanks  Cesar,.
    > > > > > > >> >                 Sure, will try immediately
once it is
    > > available
    > > > > and
    > > > > > > will
    > > > > > > >> > give me feedback.
    > > > > > > >> >          Regards,
    > > > > > > >> >
    > > > > > > >> > On Friday, May 22, 2020, Cesar Garcia <
    > > cesar.garcia@ceos.com.ve
    > > > >
    > > > > > > wrote:
    > > > > > > >> >
    > > > > > > >> > > Hi,
    > > > > > > >> > >
    > > > > > > >> > > Sorry,
    > > > > > > >> > >
    > > > > > > >> > > I misunderstood your email.
    > > > > > > >> > >
    > > > > > > >> > > You already tried from an OPC server,
excellent.
    > > > > > > >> > >
    > > > > > > >> > > Remember me next week, I am going to
implement the signal
    > > > > > simulator
    > > > > > > in
    > > > > > > >> > > Modbus so you can do your tests with
the PLC4X driver.
    > > > > > > >> > >
    > > > > > > >> > > The important thing is that you give
us feedback, on any
    > > point
    > > > > of
    > > > > > > >> > > improvement of the driver.
    > > > > > > >> > >
    > > > > > > >> > > Best regards,
    > > > > > > >> > >
    > > > > > > >> > > El jue., 21 may. 2020 a las 12:59, venki
hadoop (<
    > > > > > > >> hadooponsite@gmail.com
    > > > > > > >> > >)
    > > > > > > >> > > escribió:
    > > > > > > >> > >
    > > > > > > >> > > > Hello  Cesar,
    > > > > > > >> > > >                    I already tested
with Modbus, but
    > want
    > > to
    > > > > > test
    > > > > > > >> with
    > > > > > > >> > > > streaming data ( data updated continuously)
like how I
    > > > tested
    > > > > > > using
    > > > > > > >> OPC
    > > > > > > >> > > UA
    > > > > > > >> > > > server.  Was unable to get streaming
data using Modbus
    > > > > > simulator.
    > > > > > > >> > > >                    Regards,
    > > > > > > >> > > >
    > > > > > > >> > > > On Thursday, May 21, 2020, Cesar
Garcia <
    > > > > > cesar.garcia@ceos.com.ve
    > > > > > > >
    > > > > > > >> > > wrote:
    > > > > > > >> > > >
    > > > > > > >> > > > >  Hello,
    > > > > > > >> > > > >
    > > > > > > >> > > > > Why don't you try Modbus first
to try out the
    > different
    > > > > PLC4X
    > > > > > > >> tools.
    > > > > > > >> > > > >
    > > > > > > >> > > > > It is one of the simplest and
most widely used
    > > protocols.
    > > > > > > >> > Additionally,
    > > > > > > >> > > > > Chris has made excellent documentation
of the tools.
    > > > > > > >> > > > >
    > > > > > > >> > > > >
    > > https://plc4x.apache.org/users/plc4j/virtual-modbus.html
    > > > > > > >> > > > >
    > > > > > > >> > > > > As for the Siemens Software,
you can use it for 15
    > days
    > > by
    > > > > > > >> > downloading
    > > > > > > >> > > it
    > > > > > > >> > > > > from its pages.
    > > > > > > >> > > > >
    > > > > > > >> > > > > My grain of sand,
    > > > > > > >> > > > >
    > > > > > > >> > > > > Happiness,
    > > > > > > >> > > > >
    > > > > > > >> > > > > El mié., 20 may. 2020 a las
12:13, venki hadoop (<
    > > > > > > >> > > hadooponsite@gmail.com
    > > > > > > >> > > > >)
    > > > > > > >> > > > > escribió:
    > > > > > > >> > > > >
    > > > > > > >> > > > > > Hi Lukas, went through
the video mentioned. But I
    > > didn't
    > > > > get
    > > > > > > >> which
    > > > > > > >> > > > > siemens
    > > > > > > >> > > > > > simulator they used for
demo? Can some one let me
    > know
    > > > > free
    > > > > > > >> siemens
    > > > > > > >> > > s7
    > > > > > > >> > > > > plc
    > > > > > > >> > > > > > simulator for poc purpose?
    > > > > > > >> > > > > >
    > > > > > > >> > > > > > On Monday, May 18, 2020,
Lukas Ott <
    > > > > ott.lukas.14@gmail.com>
    > > > > > > >> wrote:
    > > > > > > >> > > > > >
    > > > > > > >> > > > > > > Hi Venki welcome
to the PLC4X community,
    > > > > > > >> > > > > > >
    > > > > > > >> > > > > > > First direction we
can point you to is the webinar
    > > > from
    > > > > > > >> Julian:
    > > > > > > >> > > > > > > https://youtu.be/MIp_0OcDTr4
There he shows in
    > > detail
    > > > > how
    > > > > > > to
    > > > > > > >> > > connect
    > > > > > > >> > > > > > > Siemens PLCs to PLC4X.
    > > > > > > >> > > > > > > Additionally he shows
you how to connect to a
    > > > simulated
    > > > > > PLC
    > > > > > > >> > server
    > > > > > > >> > > > > which
    > > > > > > >> > > > > > is
    > > > > > > >> > > > > > > maybe what you are
looking for to test and develop
    > > > your
    > > > > > > >> > application
    > > > > > > >> > > > > with
    > > > > > > >> > > > > > > the Kafka connector.
    > > > > > > >> > > > > > >
    > > > > > > >> > > > > > > Best regards,
    > > > > > > >> > > > > > > Lukas
    > > > > > > >> > > > > > >
    > > > > > > >> > > > > > > Am Mo., 18. Mai 2020
um 16:04 Uhr schrieb venki
    > > > hadoop <
    > > > > > > >> > > > > > > hadooponsite@gmail.com>:
    > > > > > > >> > > > > > >
    > > > > > > >> > > > > > > > ---------- Forwarded
message ----------
    > > > > > > >> > > > > > > > From: *venki
hadoop* <hadooponsite@gmail.com>
    > > > > > > >> > > > > > > > Date: Saturday,
May 16, 2020
    > > > > > > >> > > > > > > > Subject: Exploring
Plc4x
    > > > > > > >> > > > > > > > To: dev-subscribe@plc4x.apache.org
    > > > > > > >> > > > > > > > Cc: chtistofer.dutz@c-ware.de
    > > > > > > >> > > > > > > >
    > > > > > > >> > > > > > > >
    > > > > > > >> > > > > > > > Hello Everyone,
    > > > > > > >> > > > > > > >            
     Am a big data/cloud architect
    > > > working
    > > > > > on
    > > > > > > >> > > analytics
    > > > > > > >> > > > > > from
    > > > > > > >> > > > > > > > India. Was working
in IOT industry since 2 years
    > > > with
    > > > > > > >> different
    > > > > > > >> > > > > clients
    > > > > > > >> > > > > > > but
    > > > > > > >> > > > > > > > mostly on analytics
side than machine side.
    > > Recently
    > > > > > when
    > > > > > > >> > > exploring
    > > > > > > >> > > > > > about
    > > > > > > >> > > > > > > > IIOT got to
know about plc4x tool. Since then
    > > trying
    > > > > to
    > > > > > > >> explore
    > > > > > > >> > > and
    > > > > > > >> > > > > > > present
    > > > > > > >> > > > > > > > to larger audience
in my company if it suits our
    > > > > > > >> requirements.
    > > > > > > >> > > > > > > >
    > > > > > > >> > So
    > > > > > > >> > > > > what
    > > > > > > >> > > > > > am
    > > > > > > >> > > > > > > > planning right
now is :
    > > > > > > >> > > > Read
    > > > > > > >> > > > > > > > streaming data
from siemens device and push it
    > > Kafka
    > > > > > from
    > > > > > > >> there
    > > > > > > >> > > > > > > dashboard.
    > > > > > > >> > > > > > > > From examples
provided in documentation was able
    > > to
    > > > > > easily
    > > > > > > >> > > > correlate
    > > > > > > >> > > > > > > > pushing data
into Kafka and afterwards.  But as
    > I
    > > > > don't
    > > > > > > have
    > > > > > > >> > any
    > > > > > > >> > > > > > > experience
    > > > > > > >> > > > > > > > it's hard to
understand for me about the device
    > > > > > > >> configuration
    > > > > > > >> > and
    > > > > > > >> > > > > > > > integrating
with plc4x( I know this are basic
    > plc
    > > > > > > questions,
    > > > > > > >> > > please
    > > > > > > >> > > > > > bear
    > > > > > > >> > > > > > > me
    > > > > > > >> > > > > > > > with me for
some time). Now in order to start my
    > > > poc,
    > > > > I
    > > > > > > need
    > > > > > > >> > > > > fallowing
    > > > > > > >> > > > > > > > information.
Can someone help me on this.
    > > > 1.
    > > > > > Any
    > > > > > > >> > siemens
    > > > > > > >> > > > plc
    > > > > > > >> > > > > > > > device simulator
for poc?
    >  2.
    > > > > What
    > > > > > > >> > > > configuration
    > > > > > > >> > > > > > we
    > > > > > > >> > > > > > > > need and we
have to check from plc side(
    > assuming
    > > I
    > > > > have
    > > > > > > >> some
    > > > > > > >> > > > > > temperature
    > > > > > > >> > > > > > > > kind of sensor).
    > > > > > > >> > > > > > > >            
          3. How to point to plc
    > > output
    > > > > data
    > > > > > > >> from
    > > > > > > >> > > Kafka
    > > > > > > >> > > > > > > > connect?( Was
confused with memory blocks,
    > fields,
    > > > etc
    > > > > > in
    > > > > > > >> the
    > > > > > > >> > > > code).
    > > > > > > >> > > > > > > >
    > > > > > > >> > > > > > > >      I know
this are very basic questions from
    > plc
    > > > > side,
    > > > > > > >> but my
    > > > > > > >> > > no
    > > > > > > >> > > > > > > > experience with
plc side make me hard to
    > > understand
    > > > > > using
    > > > > > > >> > Google.
    > > > > > > >> > > > > > > >
    > > Last
    > > > > but
    > > > > > > not
    > > > > > > >> > > least,
    > > > > > > >> > > > > > thanks
    > > > > > > >> > > > > > > > Christofer for
introducing me for this platform
    > > and
    > > > > > plc4x
    > > > > > > >> tool.
    > > > > > > >> > > > > > > >            
                       Best Regards,
    > > > > > > >> > > > > > > >
    > > > > > > >> > > > > > >
    > > > > > > >> > > > > >
    > > > > > > >> > > > >
    > > > > > > >> > > > >
    > > > > > > >> > > > > --
    > > > > > > >> > > > > *CEOS Automatización, C.A.*
    > > > > > > >> > > > > *GALPON SERVICIO INDUSTRIALES
Y NAVALES FA, C.A.,*
    > > > > > > >> > > > > *PISO 1, OFICINA 2, AV. RAUL
LEONI, SECTOR
    > GUAMACHITO,*
    > > > > > > >> > > > >
    > > > > > > >> > > > > *FRENTE A LA ASOCIACION DE
GANADEROS,BARCELONA,EDO.
    > > > > > ANZOATEGUI*
    > > > > > > >> > > > > *Ing. César García*
    > > > > > > >> > > > >
    > > > > > > >> > > > > *Cel: +58 414-760.98.95*
    > > > > > > >> > > > >
    > > > > > > >> > > > > *Hotline Técnica SIEMENS:
0800 1005080*
    > > > > > > >> > > > >
    > > > > > > >> > > > > *Email: support.aan.automation@siemens.com
    > > > > > > >> > > > > <support.aan.automation@siemens.com>*
    > > > > > > >> > > > >
    > > > > > > >> > > >
    > > > > > > >> > >
    > > > > > > >> > >
    > > > > > > >> > > --
    > > > > > > >> > > *CEOS Automatización, C.A.*
    > > > > > > >> > > *GALPON SERVICIO INDUSTRIALES Y NAVALES
FA, C.A.,*
    > > > > > > >> > > *PISO 1, OFICINA 2, AV. RAUL LEONI, SECTOR
GUAMACHITO,*
    > > > > > > >> > >
    > > > > > > >> > > *FRENTE A LA ASOCIACION DE GANADEROS,BARCELONA,EDO.
    > > > ANZOATEGUI*
    > > > > > > >> > > *Ing. César García*
    > > > > > > >> > >
    > > > > > > >> > > *Cel: +58 414-760.98.95*
    > > > > > > >> > >
    > > > > > > >> > > *Hotline Técnica SIEMENS: 0800 1005080*
    > > > > > > >> > >
    > > > > > > >> > > *Email: support.aan.automation@siemens.com
    > > > > > > >> > > <support.aan.automation@siemens.com>*
    > > > > > > >> > >
    > > > > > > >> >
    > > > > > > >>
    > > > > > > >>
    > > > > > > >> --
    > > > > > > >> *CEOS Automatización, C.A.*
    > > > > > > >> *GALPON SERVICIO INDUSTRIALES Y NAVALES FA, C.A.,*
    > > > > > > >> *PISO 1, OFICINA 2, AV. RAUL LEONI, SECTOR GUAMACHITO,*
    > > > > > > >>
    > > > > > > >> *FRENTE A LA ASOCIACION DE GANADEROS,BARCELONA,EDO.
    > ANZOATEGUI*
    > > > > > > >> *Ing. César García*
    > > > > > > >>
    > > > > > > >> *Cel: +58 414-760.98.95*
    > > > > > > >>
    > > > > > > >> *Hotline Técnica SIEMENS: 0800 1005080*
    > > > > > > >>
    > > > > > > >> *Email: support.aan.automation@siemens.com
    > > > > > > >> <support.aan.automation@siemens.com>*
    > > > > > > >>
    > > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > > > --
    > > > > > *CEOS Automatización, C.A.*
    > > > > > *GALPON SERVICIO INDUSTRIALES Y NAVALES FA, C.A.,*
    > > > > > *PISO 1, OFICINA 2, AV. RAUL LEONI, SECTOR GUAMACHITO,*
    > > > > >
    > > > > > *FRENTE A LA ASOCIACION DE GANADEROS,BARCELONA,EDO. ANZOATEGUI*
    > > > > > *Ing. César García*
    > > > > >
    > > > > > *Cel: +58 414-760.98.95*
    > > > > >
    > > > > > *Hotline Técnica SIEMENS: 0800 1005080*
    > > > > >
    > > > > > *Email: support.aan.automation@siemens.com
    > > > > > <support.aan.automation@siemens.com>*
    > > > > >
    > > > >
    > > >
    > > >
    > > > --
    > > > *CEOS Automatización, C.A.*
    > > > *GALPON SERVICIO INDUSTRIALES Y NAVALES FA, C.A.,*
    > > > *PISO 1, OFICINA 2, AV. RAUL LEONI, SECTOR GUAMACHITO,*
    > > >
    > > > *FRENTE A LA ASOCIACION DE GANADEROS,BARCELONA,EDO. ANZOATEGUI*
    > > > *Ing. César García*
    > > >
    > > > *Cel: +58 414-760.98.95*
    > > >
    > > > *Hotline Técnica SIEMENS: 0800 1005080*
    > > >
    > > > *Email: support.aan.automation@siemens.com
    > > > <support.aan.automation@siemens.com>*
    > > >
    > >
    >
    >
    > --
    > *CEOS Automatización, C.A.*
    > *GALPON SERVICIO INDUSTRIALES Y NAVALES FA, C.A.,*
    > *PISO 1, OFICINA 2, AV. RAUL LEONI, SECTOR GUAMACHITO,*
    >
    > *FRENTE A LA ASOCIACION DE GANADEROS,BARCELONA,EDO. ANZOATEGUI*
    > *Ing. César García*
    >
    > *Cel: +58 414-760.98.95*
    >
    > *Hotline Técnica SIEMENS: 0800 1005080*
    >
    > *Email: support.aan.automation@siemens.com
    > <support.aan.automation@siemens.com>*
    >

Mime
View raw message