You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
780 B
45 lines
780 B
FUNCTION_BLOCK MBDI
|
|
|
|
|
|
VAR_INPUT
|
|
mbdi1 : bool ;
|
|
mbdi2 : bool ;
|
|
mbdi3 : bool ;
|
|
mbdi4 : bool ;
|
|
mbdi5 : bool ;
|
|
mbdi6 : bool ;
|
|
mbdi7 : bool ;
|
|
mbdi8 : bool ;
|
|
light1_in : bool ;
|
|
light2_in : bool ;
|
|
light3_in : bool ;
|
|
light4_in : bool ;
|
|
light5_in : bool ;
|
|
light6_in : bool ;
|
|
light7_in : bool ;
|
|
light8_in : bool ;
|
|
light9_in : bool ;
|
|
light10_in : bool ;
|
|
light11_in : bool ;
|
|
light12_in : bool ;
|
|
light_timer : time := t#5S ;
|
|
END_VAR
|
|
|
|
VAR_OUTPUT
|
|
light1_out : bool ;
|
|
light2_out : bool ;
|
|
light3_out : bool ;
|
|
light4_out : bool ;
|
|
light5_out : bool ;
|
|
light6_out : bool ;
|
|
light7_out : bool ;
|
|
light8_out : bool ;
|
|
light9_out : bool ;
|
|
light10_out : bool ;
|
|
light11_out : bool ;
|
|
light12_out : bool ;
|
|
END_VAR
|
|
|
|
|
|
|
|
END_FUNCTION_BLOCK
|
|
|