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

Reply via email to