Mostra paginaDiscussioneRevisioni precedentiPuntano quiTorna su Questa pagina è in sola lettura. Puoi visualizzare il sorgente, ma non puoi modificarlo. Contatta l'amministratore se pensi che ci sia un errore. ====== PLC function "ntest_noi_>=n" - Funzione PLC "ntest_nio_>=_n" ====== //**Output 0 if number of inputs at 1 >= n**// (max 8 inputs) **Uscita 0 se numero di ingressi a 1 >= n** (massimo 8 ingressi) Funzione con uscita invertita rispetto alla funzione "test_noi_>=n". L'uscita OUT1 sarà 0 quando almeno 2 ingressi dei 3 previsti sono a livello logico 1: <code> "IO2": { "enable": 1, "logic_io": 12, "device_type": "DIGITAL_IN_PULLUP", "filter": 200, "time_refresh": 3000, "name": "IO2", "description": "Ingresso IO2" }, "IO3": { "enable": 1, "logic_io": 13, "device_type": "DIGITAL_IN_PULLUP", "filter": 200, "time_refresh": 3000, "name": "IO3", "description": "Ingresso IO3" }, "IO4": { "enable": 1, "logic_io": 14, "device_type": "DIGITAL_IN_PULLUP", "filter": 200, "time_refresh": 3000, "name": "IO4", "description": "Ingresso IO4" }, "OUT1": { "enable": 1, "logic_io": 4, "device_type": "DIGITAL_OUT", "filter": 200, "time_refresh": 3000, "default_startup_value": 0, "inverted": 0, "plc_function": "ntest_nio_>=_n", "plc_params": 2, // numero minimo di ingressi a 1 per uscita = 1 "plc_linked_board_id_logic_io": [ "*-12", "*-13", "*-14" ], "name": "OUT1", "description": "Uscita 1" } </code> ---- {{counter}} person(s) visited this page until now. ~~DISCUSSION~~ ntest_nio_gt_eq_n.txt Ultima modifica: 04/02/2020 11:22da admin