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>*

Reply via email to