Skip to content

Commit 585d05d

Browse files
Ofloogijzelaerr
andauthored
Fixed typo area doesn't exist areas does (#306)
* Fixed typo area doesn't exist areas does * Fixed type to Areas and fixed documentation url Co-authored-by: Wouter Snels <[email protected]> Co-authored-by: Gijs Molenaar <[email protected]>
1 parent 7aea4f6 commit 585d05d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

example/boolean.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@
3030

3131
# NOTE you could also use the read_area and write_area functions.
3232
# then you can specify an area to read from:
33-
# https://github.com/gijzelaerr/python-snap7/blob/master/snap7/snap7types.py
33+
# https://github.com/gijzelaerr/python-snap7/blob/master/snap7/types.py
34+
35+
from snap7.types import areas
3436

35-
from snap7.types import area
3637

3738
# play with these functions.
38-
plc.read_area(area['MK'], dbnumber, start, size)
39-
plc.write_area(area['MK'], dbnumber, start, size)
39+
plc.read_area(areas['MK'], dbnumber, start, size)
40+
plc.write_area(areas['MK'], dbnumber, start, size)
4041
# read the client source code!
4142
# and official snap7 documentation

0 commit comments

Comments
 (0)