Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
osie
Commits
c8cf66fa
Commit
c8cf66fa
authored
Jul 24, 2020
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup.
parent
1aae9ad9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
examples/modbus/modbus-client.py
examples/modbus/modbus-client.py
+0
-14
No files found.
examples/modbus/modbus-client.py
deleted
100644 → 0
View file @
1aae9ad9
from
pymodbus.client.sync
import
ModbusTcpClient
client
=
ModbusTcpClient
(
'localhost'
)
client
.
write_coil
(
1
,
True
)
client
.
write_coil
(
2
,
False
)
result
=
client
.
read_coils
(
1
,
1
)
print
(
result
.
bits
[
0
])
result
=
client
.
read_coils
(
2
,
1
)
print
(
result
.
bits
[
0
])
client
.
close
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment