Skip to content

Commit a405d90

Browse files
committed
Update README.pdf
1 parent 5859ae9 commit a405d90

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.org

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,10 +1455,11 @@
14551455
# Basic CIP I/O Test
14561456
#
14571457
# Target Simulator:
1458-
# python3 -m cpppo.server.enip -S -vv SCADA@0x4/0x96/3=INT[18
1458+
# python3 -m cpppo.server.enip -S -vv SCADA@0x4/0x96/3=INT[18]
14591459
#
14601460
import cpppo
1461-
from cpppo.server.enip.get_attribute import attribute_operations, proxy_simple as device
1461+
from cpppo.server.enip.get_attribute import (
1462+
attribute_operations, proxy_simple as device )
14621463
from cpppo.server.enip import client
14631464

14641465
import logging
@@ -1476,7 +1477,13 @@ print( "Raw operations: %r" % operations )
14761477
operations_parser = attribute_operations
14771478
operations_out = list( operations_parser( operations ))
14781479

1479-
assert operations_out == [{'method': 'set_attribute_single', 'path': [{'class': 4}, {'instance': 150}, {'attribute': 3}], 'tag_type': 195, 'data': [512, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'elements': 18}]
1480+
assert operations_out == [{
1481+
'method': 'set_attribute_single',
1482+
'path': [{'class': 4}, {'instance': 150}, {'attribute': 3}],
1483+
'tag_type': 195,
1484+
'data': [512, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
1485+
'elements': 18
1486+
}]
14801487

14811488
# Force basic CIP Get/Set Attribute I/O operations
14821489
via = device( hostname, operations_parser=operations_parser )

README.pdf

-34.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)