1
0
mirror of https://github.com/naruxde/revpi-revpiday2019.git synced 2025-11-08 15:03:51 +01:00

ProfiNet durch AIO Modul ersetzt

This commit is contained in:
Sven Sager
2019-09-30 21:09:59 +02:00
parent 759fd81141
commit 11054a3b1c
4 changed files with 6 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@@ -17,6 +17,8 @@ class PraeziPos(QtWidgets.QMainWindow, Ui_frm_main):
super(PraeziPos, self).__init__()
self.setupUi(self)
self.adj_load = 75
# Setup start positions
take_back = 550
self.wid_fork.move(self.wid_fork.x(), self.wid_fork.y() + take_back)
@@ -79,7 +81,7 @@ class PraeziPos(QtWidgets.QMainWindow, Ui_frm_main):
# Forklift is coming
self.wid_lift.move(
self.wid_lift_geo.x() + int(self.rm.rpi.io.load_pos.value / 100),
self.wid_lift_geo.x() + int(self.rm.rpi.io.load_pos.value / self.adj_load),
self.wid_lift.y()
)
@@ -117,11 +119,11 @@ class PraeziPos(QtWidgets.QMainWindow, Ui_frm_main):
# Move load and fork
self.wid_fork.move(
self.wid_fork_geo.x() + int(position / 100),
self.wid_fork_geo.x() + int(position / self.adj_load),
self.wid_fork.y()
)
self.wid_load.move(
self.wid_load_geo.x() + int(position / 100),
self.wid_load_geo.x() + int(position / self.adj_load),
self.wid_load.y()
)

View File

@@ -61,9 +61,6 @@ def cleanup():
# One global RevPiModIO instance for all modules and classes
rpi = revpimodio2.RevPiModIO(autorefresh=True)
# Configure IO of profinet device
rpi.io.b_position1.replace_io("position", "H", byteorder="big")
# Configure IO of panel device
rpi.io.p_byte1.replace_io("p_online", "?", bit=0)

BIN
proc.img

Binary file not shown.