cpppo icon indicating copy to clipboard operation
cpppo copied to clipboard

How to handle minimal "simulated" CompactLogix PLC array

Open bobbuilder123 opened this issue 6 years ago • 0 comments

We can run the minimal server with this command line.

python.exe -m cpppo.server.enip Scada=DINT[5]

Is it possible to call a function when the array gets modified and return the state of the array? E.G:

$ python -m cpppo.server.enip.client -v --print Scada[1]=99

will result in the server calling a function with the array as argument :

Scada = [25, 99, -51, 110, 25]

The problem is the minimal server only outputs on screen which part of the array got modified :

Scada[1] [ 1-1] <= [99] 'OK'

Thanks

bobbuilder123 avatar Jun 26 '19 21:06 bobbuilder123