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
Martin Manchev
osie
Commits
05dedaf4
Commit
05dedaf4
authored
Jun 07, 2021
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if we actually are running on proper platform.
parent
193f7534
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
eggs/osie_coupler/osie_modbus.py
eggs/osie_coupler/osie_modbus.py
+7
-0
No files found.
eggs/osie_coupler/osie_modbus.py
View file @
05dedaf4
...
@@ -13,6 +13,8 @@ To switch OFF:
...
@@ -13,6 +13,8 @@ To switch OFF:
> client.write_registers address=0 values=0 unit=1
> client.write_registers address=0 values=0 unit=1
"""
"""
import
os
import
sys
from
pymodbus.server.asynchronous
import
StartTcpServer
from
pymodbus.server.asynchronous
import
StartTcpServer
from
pymodbus.server.asynchronous
import
StartUdpServer
from
pymodbus.server.asynchronous
import
StartUdpServer
from
pymodbus.server.asynchronous
import
StartSerialServer
from
pymodbus.server.asynchronous
import
StartSerialServer
...
@@ -176,6 +178,11 @@ def main():
...
@@ -176,6 +178,11 @@ def main():
"""
"""
Main OSIE-PLC entry point.
Main OSIE-PLC entry point.
"""
"""
# check if we actually are running on proper platform
if
os
.
uname
().
machine
!=
"armv7l"
:
log
.
error
(
"Not supported platform and / or CPU type."
)
sys
.
exit
(
1
)
# switch OFF all relays
# switch OFF all relays
mod_io
.
setRelayStateAllOff
()
mod_io
.
setRelayStateAllOff
()
...
...
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