Hi all, That would fit to https://www.openplcproject.com/ as the Runtime is using MODBUS....
Maybe ask https://github.com/thiagoralves if we just could with his https://www.openplcproject.com/plcopen-editor ? The major question is it easier to collaborate and leverage the project? or check the relevant licences and work together? Lukas Am Mi., 16. Okt. 2019 um 07:46 Uhr schrieb Christofer Dutz < christofer.d...@c-ware.de>: > Hi Cesar, > > No they wouldn't. They would be exposed to the server implementation and > the ui. > > The thing is that the above structure s7 could probably automatically > translate into s7 addresses. However for Modbus an explicit mapping is > required (sort of mirroring reality with real plcs). > > I was thinking that perhaps the server/protocol would provide the means to > map the context into their address space (extra editor) and that the ui for > displaying the current context values, could have a column per installed > server, with plc4x addresses for addressing these resources. > > Just me brainstorming.... > > Chris > > Holen Sie sich Outlook für Android<https://aka.ms/ghei36> > > ________________________________ > From: Cesar Garcia <cesar.gar...@ceos.com.ve> > Sent: Wednesday, October 16, 2019 4:44:30 AM > To: Apache PLC4X <dev@plc4x.apache.org> > Subject: Re: [PLC-Simulator] Thoughts on the "Context" for our simulator > > Hi Christofer, > > How would these data structures be exposed to the user? An API? Or a > service? > > A simple way to see it would be to have the PLC data structures (DB, PEW, > M, etc.) as instances of ByteBuf from the Netty library. > > Best regards, > > El mar., 15 oct. 2019 a las 8:55, Christofer Dutz (< > christofer.d...@c-ware.de>) escribió: > > > Hi all, > > > > While implementing the S7Server part I noticed that my HelloPlc4x config > > is always set to get the values of the inputs and the outputs and not the > > internal memory of the S7 > > > > So this got me thinking … just having a Map<String, Object> as context > > might not be enough to really play around. > > > > For a S7 I would assume a context should be: > > > > * Map<String, Object> (Sorted map with an explicit order such as a > > TreeMap) > > * List<Input<Boolean>> (Digital Inputs) > > * List<Input<Long>> (Analog Inputs) > > * List<Output<Boolean>> (Digital Outputs) > > * List<Output<Long>> (Analog Outputs) > > > > Should this be enough for a somewhat realistic simulation? > > > > I know for Modbus there is not automatic mapping of any form of context & > > IO to the Modbus Coils (Boolean) and Registers (Short) > > But for the rest I do think that a PLC has the concept of an input and > > output and these in flavors: Analog and Digital. > > > > I know that my PLC knowledge is somewhat theoretical. You guys at least > > some of you work with them every day. So I would appreciate your input. > > > > Chris > > > > > -- > *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: 0416-681.03.99* > > *Cel: 0414-760.98.95* > > *Hotline Técnica SIEMENS: 0800 1005080* > > *Email: support.aan.automat...@siemens.com > <support.aan.automat...@siemens.com>* >