You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using CPPPO to simulate a PowerFlex 525. I am also using pycomm3 to craft the CIP Read/Write packets; (I found pycomm3 first). Pycomm3 has a CIP Discovery method, and it is able to see the simulated drive I created, but it seems to return 3 devices instead of 1
Screenshot of it happening:
My Simulated Drive Code:
import sys, logging
from Excel_Dump_Lables import Lables
from cpppo.server import enip
from cpppo.server.enip.main import main as enip_main
class DPI_Parameters( enip.Object ):
class_id = 0x93
def __init__( self, name=None, **kwds ):
super( DPI_Parameters, self ).__init__( name=name, **kwds )
if self.instance_id == 0:
pass
else:
self.attribute['9']= enip.Attribute( Lables[self.instance_id], enip.INT, default=self.instance_id )
def main( **kwds ):
enip.config_files += [ __file__.replace( '.py', '.cfg' ) ]
for x in range(1,731):
DPI_Parameters( name="DPI_Parameters", instance_id=x )
return enip_main( argv=sys.argv[1:])
sys.exit( main( attribute_class=main,argv=sys.argv[1:]))
It looks like 2 responses, not 3... Well, cpppo does bind to both the UDP and TCP port, so perhaps pycomm3 is finding the device on both UDP and TCP? I think Cpppo only does a broadcast request on either TCP or UDP, not both.
I am using CPPPO to simulate a PowerFlex 525. I am also using pycomm3 to craft the CIP Read/Write packets; (I found pycomm3 first). Pycomm3 has a CIP Discovery method, and it is able to see the simulated drive I created, but it seems to return 3 devices instead of 1
Screenshot of it happening:
My Simulated Drive Code:
Drive Config File:
My Question: Is there a way to check that I am not accidentally spawning more than one drive process?
Or if there is something glaringly wrong with my code
The text was updated successfully, but these errors were encountered: