ProfiNet durch AIO Modul ersetzt

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

No files matched your search

+1 -1
View File
@@ -1 +1 @@
{"App":{"name": "PiCtory", "version": "1.4.2","saveTS": "20190928113540","language": "en","layout": {"north":{"size":70,"initClosed":false,"initHidden":false},"south":{"size":345,"initClosed":false,"initHidden":false,"children":{"layout1":{"east":{"size":500,"initClosed":false,"initHidden":false}}}},"east":{"size":70,"initClosed":true,"initHidden":false,"children":{}},"west":{"size":352,"initClosed":false,"initHidden":false,"children":{"layout1":{}}}}},"Summary":{"inpTotal": 620,"outTotal": 567},"Devices":[{"GUID": "16c3d38c-e01a-546b-53cb-7d3b485c70e6","id": "device_RevPiGateProfinet_20160916_1_0_001","type": "EDGE","productType": "79","position": "30","name": "pn01","bmk": "Gateway Profinet IRT","inpVariant": 0,"outVariant": 0,"comment": "","offset": 0,"inp": {"0": ["b_position1","0","8","0",false,"0000", "",""],"1": ["b_position2","0","8","1",false,"0001", "",""],"2": ["Input_3","0","8","2",false,"0002", "",""],"3": ["Input_4","0","8","3",false,"0003", "",""],"4": ["Input_5","0","8","4",false,"0004", "",""],"5": ["Input_6","0","8","5",false,"0005", "",""],"6": ["Input_7","0","8","6",false,"0006", "",""],"7": ["Input_8","0","8","7",false,"0007", "",""],"8": ["Input_9","0","8","8",false,"0008", "",""],"9": ["Input_10","0","8","9",false,"0009", "",""],"10": ["Input_11","0","8","10",false,"0010", "",""],"11": ["Input_12","0","8","11",false,"0011", "",""],"12": ["Input_13","0","8","12",false,"0012", "",""],"13": ["Input_14","0","8","13",false,"0013", "",""],"14": ["Input_15","0","8","14",false,"0014", "",""],"15": ["Input_16","0","8","15",false,"0015", "",""],"16": ["Input_17","0","8","16",false,"0016", "",""],"17": ["Input_18","0","8","17",false,"0017", "",""],"18": ["Input_19","0","8","18",false,"0018", "",""],"19": ["Input_20","0","8","19",false,"0019", "",""],"20": ["Dummy_in","not used","3936","20",false,"0040", "",""]},"out": {"0": ["Output_1","0","8","512",false,"0020", "",""],"1": ["Output_2","0","8","513",false,"0021", "",""],"2": ["Output_3","0","8","514",false,"0022", "",""],"3": ["Output_4","0","8","515",false,"0023", "",""],"4": ["Output_5","0","8","516",false,"0024", "",""],"5": ["Output_6","0","8","517",false,"0025", "",""],"6": ["Output_7","0","8","518",false,"0026", "",""],"7": ["Output_8","0","8","519",false,"0027", "",""],"8": ["Output_9","0","8","520",false,"0028", "",""],"9": ["Output_10","0","8","521",false,"0029", "",""],"10": ["Output_11","0","8","522",false,"0030", "",""],"11": ["Output_12","0","8","523",false,"0031", "",""],"12": ["Output_13","0","8","524",false,"0032", "",""],"13": ["Output_14","0","8","525",false,"0033", "",""],"14": ["Output_15","0","8","526",false,"0034", "",""],"15": ["Output_16","0","8","527",false,"0035", "",""],"16": ["Output_17","0","8","528",false,"0036", "",""],"17": ["Output_18","0","8","529",false,"0037", "",""],"18": ["Output_19","0","8","530",false,"0038", "",""],"19": ["Output_20","0","8","531",false,"0039", "",""],"20": ["Dummy_out","not used","3936","532",false,"0041", "",""]},"mem": {},"extend": {}},{"GUID": "40827b8e-e8da-4f35-8123-89103244a995","id": "device_RevPiDIO_20160818_1_0_001","type": "LEFT_RIGHT","productType": "96","position": "31","name": "dio01","bmk": "RevPi DIO","inpVariant": 0,"outVariant": 0,"comment": "","offset": 1024,"inp": {"0": ["t_forklift","0","1","0",true,"0000", "","0"],"1": ["I_2","0","1","0",true,"0001", "","1"],"2": ["I_3","0","1","0",true,"0002", "","2"],"3": ["I_4","0","1","0",true,"0003", "","3"],"4": ["I_5","0","1","0",true,"0004", "","4"],"5": ["I_6","0","1","0",true,"0005", "","5"],"6": ["I_7","0","1","0",true,"0006", "","6"],"7": ["I_8","0","1","0",true,"0007", "","7"],"8": ["I_9","0","1","0",true,"0008", "","8"],"9": ["I_10","0","1","0",true,"0009", "","9"],"10": ["I_11","0","1","0",true,"0010", "","10"],"11": ["I_12","0","1","0",true,"0011", "","11"],"12": ["I_13","0","1","0",true,"0012", "","12"],"13": ["I_14","0","1","0",true,"0013", "","13"],"14": ["I_15","0","1","0",true,"0014", "","14"],"15": ["I_16","0","1","0",true,"0015", "","15"],"16": ["Output_Status","0","16","2",false,"0016", "",""],"17": ["Status","0","16","4",false,"0017", "",""],"18": ["Counter_1","0","32","6",false,"0018", "",""],"19": ["Counter_2","0","32","10",false,"0019", "",""],"20": ["Counter_3","0","32","14",false,"0020", "",""],"21": ["Counter_4","0","32","18",false,"0021", "",""],"22": ["Counter_5","0","32","22",false,"0022", "",""],"23": ["Counter_6","0","32","26",false,"0023", "",""],"24": ["Counter_7","0","32","30",false,"0024", "",""],"25": ["Counter_8","0","32","34",false,"0025", "",""],"26": ["Counter_9","0","32","38",false,"0026", "",""],"27": ["Counter_10","0","32","42",false,"0027", "",""],"28": ["Counter_11","0","32","46",false,"0028", "",""],"29": ["Counter_12","0","32","50",false,"0029", "",""],"30": ["Counter_13","0","32","54",false,"0030", "",""],"31": ["Counter_14","0","32","58",false,"0031", "",""],"32": ["Counter_15","0","32","62",false,"0032", "",""],"33": ["Counter_16","0","32","66",false,"0033", "",""]},"out": {"0"Line truncated {"App":{"name": "PiCtory", "version": "1.4.2","saveTS": "20190929212400","language": "en","layout": {"north":{"size":70,"initClosed":false,"initHidden":false},"south":{"size":345,"initClosed":false,"initHidden":false,"children":{"layout1":{"east":{"size":500,"initClosed":false,"initHidden":false}}}},"east":{"size":70,"initClosed":true,"initHidden":false,"children":{}},"west":{"size":352,"initClosed":false,"initHidden":false,"children":{"layout1":{}}}}},"Summary":{"inpTotal": 128,"outTotal": 59},"Devices":[{"GUID": "7b4c4e57-d0e9-1057-1a34-eaf3db5d2148","id": "device_RevPiAIO_20170301_1_0_001","type": "LEFT_RIGHT","productType": "103","position": "30","name": "aio01","bmk": "RevPi AIO","inpVariant": 0,"outVariant": 0,"comment": "","offset": 0,"inp": {"0": ["InputValue_1","0","16","0",false,"0000", "",""],"1": ["position","0","16","2",false,"0001", "",""],"2": ["InputValue_3","0","16","4",false,"0002", "",""],"3": ["InputValue_4","0","16","6",false,"0003", "",""],"4": ["InputStatus_1","0","8","8",false,"0004", "",""],"5": ["InputStatus_2","0","8","9",false,"0005", "",""],"6": ["InputStatus_3","0","8","10",false,"0006", "",""],"7": ["InputStatus_4","0","8","11",false,"0007", "",""],"8": ["RTDValue_1","0","16","12",false,"0008", "",""],"9": ["RTDValue_2","0","16","14",false,"0009", "",""],"10": ["RTDStatus_1","0","8","16",false,"0010", "",""],"11": ["RTDStatus_2","0","8","17",false,"0011", "",""],"12": ["OutputStatus_1","0","8","18",false,"0012", "",""],"13": ["OutputStatus_2","0","8","19",false,"0013", "",""]},"out": {"0": ["OutputValue_1","0","16","20",false,"0014", "",""],"1": ["OutputValue_2","0","16","22",false,"0015", "",""]},"mem": {"0": ["Input1Range","2","8","24",false,"0016", "You must use wire bridges for current measurement!",""],"1": ["Input1Multiplier","1","16","25",false,"0017", "",""],"2": ["Input1Divisor","1","16","27",false,"0018", "",""],"3": ["Input1Offset","0","16","29",false,"0019", "",""],"4": ["Input2Range","2","8","31",false,"0020", "You must use wire bridges for current measurement!",""],"5": ["Input2Multiplier","1","16","32",false,"0021", "",""],"6": ["Input2Divisor","1","16","34",false,"0022", "",""],"7": ["Input2Offset","0","16","36",false,"0023", "",""],"8": ["Input3Range","1","8","38",false,"0024", "You must use wire bridges for current measurement!",""],"9": ["Input3Multiplier","1","16","39",false,"0025", "",""],"10": ["Input3Divisor","1","16","41",false,"0026", "",""],"11": ["Input3Offset","0","16","43",false,"0027", "",""],"12": ["Input4Range","1","8","45",false,"0028", "You must use wire bridges for current measurement!",""],"13": ["Input4Multiplier","1","16","46",false,"0029", "",""],"14": ["Input4Divisor","1","16","48",false,"0030", "",""],"15": ["Input4Offset","0","16","50",false,"0031", "",""],"16": ["ADC_DataRate","4","8","52",false,"0032", "Use lowest value for highest precision and a maximum 50 Hz suppression",""],"17": ["RTD1Type","0","8","53",false,"0033", "",""],"18": ["RTD1Wiring","0","8","54",false,"0034", "You must use wire bridges for 2-wire sensors!",""],"19": ["RTD1Multiplier","1","16","55",false,"0035", "",""],"20": ["RTD1Divisor","1","16","57",false,"0036", "",""],"21": ["RTD1Offset","0","16","59",false,"0037", "",""],"22": ["RTD2Type","0","8","61",false,"0038", "",""],"23": ["RTD2Wiring","0","8","62",false,"0039", "You must use wire bridges for 2-wire sensors!",""],"24": ["RTD2Multiplier","1","16","63",false,"0040", "",""],"25": ["RTD2Divisor","1","16","65",false,"0041", "",""],"26": ["RTD2Offset","0","16","67",false,"0042", "",""],"27": ["Output1Range","0","8","69",false,"0043", "",""],"28": ["Output1EnableSlew","0","8","70",false,"0044", "Enable slew rate deceleration",""],"29": ["Output1SlewStepSize","0","8","71",false,"0045", "Slew rate step size",""],"30": ["Output1SlewClock","0","8","72",false,"0046", "lock rate of slew rate deceleration in kHz",""],"31": ["Output1Multiplier","1","16","73",false,"0047", "",""],"32": ["Output1Divisor","1","16","75",false,"0048", "",""],"33": ["Output1Offset","0","16","77",false,"0049", "",""],"34": ["Output2Range","0","8","79",false,"0050", "",""],"35": ["Output2EnableSlew","0","8","80",false,"0051", "Enable slew rate deceleration",""],"36": ["Output2SlewStepSize","0","8","81",false,"0052", "Slew rate step size",""],"37": ["Output2SlewClock","0","8","82",false,"0053", "lock rate of slew rate deceleration in kHz",""],"38": ["Output2Multiplier","1","16","83",false,"0054", "",""],"39": ["Output2Divisor","1","16","85",false,"0055", "",""],"40": ["Output2Offset","0","16","87",false,"0056", "",""]},"extend": {}},{"GUID": "40827b8e-e8da-4f35-8123-89103244a995","id": "device_RevPiDIO_20160818_1_0_001","type": "LEFT_RIGHT","productType": "96","position": "31","name": "dio01","bmk": "RevPi DIO","inpVariant": 0,"outVariant": 0,"comment": "","offset": 89,"inp": {"0": ["t_forklift","0","1","0",true,"0000", "","0"],"1": ["I_2","0","1","0",true,"0001", "","1"],"2": ["I_3","0","1","0",true,"0002", "","2"],"3": ["I_4","0","1","0",true,Line truncated
+5 -3
View File
@@ -17,6 +17,8 @@ class PraeziPos(QtWidgets.QMainWindow, Ui_frm_main):
super(PraeziPos, self).__init__() super(PraeziPos, self).__init__()
self.setupUi(self) self.setupUi(self)
self.adj_load = 75
# Setup start positions # Setup start positions
take_back = 550 take_back = 550
self.wid_fork.move(self.wid_fork.x(), self.wid_fork.y() + take_back) 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 # Forklift is coming
self.wid_lift.move( 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() self.wid_lift.y()
) )
@@ -117,11 +119,11 @@ class PraeziPos(QtWidgets.QMainWindow, Ui_frm_main):
# Move load and fork # Move load and fork
self.wid_fork.move( 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_fork.y()
) )
self.wid_load.move( 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() self.wid_load.y()
) )
-3
View File
@@ -61,9 +61,6 @@ def cleanup():
# One global RevPiModIO instance for all modules and classes # One global RevPiModIO instance for all modules and classes
rpi = revpimodio2.RevPiModIO(autorefresh=True) 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 # Configure IO of panel device
rpi.io.p_byte1.replace_io("p_online", "?", bit=0) rpi.io.p_byte1.replace_io("p_online", "?", bit=0)
BIN
View File
Binary file not shown.