"type": "output",
"address": 56,
"pins":
- [ [ "A1-1", "T1-1", "Motorschütz" ], [ "A1-2", "T1-2" ],
+ [ [ "A1-1", "T1-1", "Motorschütz" ], [ "A1-2", "T1-2", "Steckdosen 400V" ],
[ "A1-3", "T1-3", "Zentralschmierung" ], [ "A1-4", "T1-4", "Ölpumpe" ],
- [ "A1-5", "T1-5" ], [ "A1-6", "T1-6", "Notaus Schaltschrank Lampe" ],
+ [ "A1-5", "T1-5", "Steckdosen 230V" ], [ "A1-6", "T1-6", "Notaus Schaltschrank Lampe" ],
[ "A1-7", "T1-7", "Lüfter Schaltschrank" ], [ "A1-8", "T1-8", "Notaus Maschine Lampe" ] ] },
{ "name": "A2",
"type": "output",
"address": 32,
"interrupt pin": 4,
"pins":
- [ [ "E1-1", "T1-18", "Motorschütz Rückmeldung" ], [ "E1-2", "T1-19" ],
+ [ [ "E1-1", "T1-18", "Motorschütz Rückmeldung" ], [ "E1-2", "T1-19", "Steckdosen 400V Rückmeldung" ],
[ "E1-3", "T1-20", "Zentralschmierung Rückmeldung" ], [ "E1-4", "T1-21", "Ölpumpe Rückmeldung" ],
- [ "E1-5", "T1-22" ], [ "E1-6", "T1-23", "Notaus Schaltschrank" ],
+ [ "E1-5", "T1-22", "Steckdosen 230V Rückmeldung" ], [ "E1-6", "T1-23", "Notaus Schaltschrank" ],
[ "E1-7", "T1-24" ], [ "E1-8", "T1-25", "Notaus Maschine" ] ] },
{ "name": "E2",
"type": "input",
"Schwungrad", "Öldruck", "Bruchplatte Einzug" ] } ],
"modbus":
{ "serial device": "/dev/serial0",
- "baudrate": 9600,
+ "baudrate": 19200,
"slave id": 1 },
"statemachines":
[ { "name": "Notaus Schaltschrank",
"value": false,
"state": "aus" } ] } },
"init": "aus" },
+ { "name": "Steckdosen",
+ "states":
+ { "aus":
+ { "commands":
+ [ { "name": "setpin",
+ "pin": "Steckdosen 400V",
+ "value": false },
+ { "name": "setpin",
+ "pin": "Steckdosen 230V",
+ "value": false } ],
+ "events":
+ [ { "name": "pinstate",
+ "pin": "Notaus",
+ "value": true,
+ "state": "an" } ] },
+ "an":
+ { "commands":
+ [ { "name": "setpin",
+ "pin": "Steckdosen 400V",
+ "value": true },
+ { "name": "setpin",
+ "pin": "Steckdosen 230V",
+ "value": true } ],
+ "events":
+ [ { "name": "pinstate",
+ "pin": "Notaus",
+ "value": false,
+ "state": "aus" } ] } },
+ "init": "an" },
{ "name": "Motor",
"states":
{ "notaus":
[ { "name": "pinstate",
"pin": "Notaus",
"value": true,
- "state": "nichtokay" } ] },
+ "state": "nichtokay" },
+ { "name": "pinstate",
+ "pin": "Stop",
+ "value": true,
+ "state": "notaus" } ] },
"nichtokay":
{ "commands":
[ { "name": "motorstop" },
+ { "name": "motorcheck" },
{ "name": "setpin",
"pin": "Motorschütz",
"value": true },
"pin": "Notaus",
"value": false,
"state": "notaus" },
+ { "name": "pinstate",
+ "pin": "Stop",
+ "value": true,
+ "state": "nichtokay" },
{ "name": "pinstate",
"pin": "Okay",
"value": true,
"pin": "Notaus",
"value": false,
"state": "notaus" },
+ { "name": "pinstate",
+ "pin": "Stop",
+ "value": true,
+ "state": "tippenokay" },
{ "name": "pinstate",
"pin": "Okay",
"value": false,
"pin": "Notaus",
"value": false,
"state": "notaus" },
+ { "name": "pinstate",
+ "pin": "Stop",
+ "value": true,
+ "state": "tippenokay" },
{ "name": "pinstate",
"pin": "Okay",
"value": false,
"state": "nichtokay" },
{ "name": "tippenfertig",
- "state": "tippenokay" },
- { "name": "pinstate",
- "pin": "Stop",
- "value": true,
"state": "tippenokay" } ] },
"tippenrück":
{ "commands":
"pin": "Notaus",
"value": false,
"state": "notaus" },
+ { "name": "pinstate",
+ "pin": "Stop",
+ "value": true,
+ "state": "tippenokay" },
{ "name": "pinstate",
"pin": "Okay",
"value": false,
"state": "nichtokay" },
{ "name": "tippenfertig",
- "state": "tippenokay" },
- { "name": "pinstate",
- "pin": "Stop",
- "value": true,
"state": "tippenokay" } ] },
"dauerokay":
{ "commands":
"pin": "Notaus",
"value": false,
"state": "notaus" },
+ { "name": "pinstate",
+ "pin": "Stop",
+ "value": true,
+ "state": "dauerokay" },
{ "name": "pinstate",
"pin": "Okay",
"value": false,
"pin": "Notaus",
"value": false,
"state": "notaus" },
- { "name": "pinstate",
- "pin": "Okay",
- "value": false,
- "state": "nichtokay" },
{ "name": "pinstate",
"pin": "Stop",
"value": true,
"state": "dauerokay" },
+ { "name": "pinstate",
+ "pin": "Okay",
+ "value": false,
+ "state": "nichtokay" },
{ "name": "pinstate",
"pin": "Prozesskraftüberwachung aus",
"value": false,
self.__protocol = DatatypesProtocol(client, SJP1FU_COILS, SJP1FU_REGISTERS)
registers = [12015, 12220, 12222, 13015, 13021, 13022, 13023, 13024, 13026,
- 13027, 13101, 13210, 13221, 14140, 15102, 15103, 15110, 15112,
- 15114, 15116, 15118]
+ 13027, 13101, 13210, 13221, 14140, 14501, 15102, 15103, 15110,
+ 15112, 15114, 15116, 15118]
async def check_parameters(self) -> None:
for register in self.registers:
},
},
},
+ 14501: {
+ 'code': 'CF-01',
+ 'name': 'Communication transmission spped selection',
+ 'rw': 'rw',
+ 'type': 'enum',
+ 'conf': {
+ 'values': {
+ 3: '2400 bps',
+ 4: '4800 bps',
+ 5: '9600 bps',
+ 6: '19200 bps',
+ 7: '38400 bps',
+ 8: '57600 bps',
+ 9: '76800 bps',
+ 10: '115200 bps',
+ },
+ },
+ },
15102: {
'code': 'Hb102',
'name': 'First IM motor capacity selection',