$INCLUDE_FILE


(* GLOBALE TYPEN *)



(* PROJEKT TYPEN *)



(* GLOBALE PROTOTYPEN *)

FUNCTION_BLOCK MODBUS_SLAVE_CTRL
    VAR_INPUT
	EN_IN:BOOL;
    	PORT : USINT;
      DO_ENABLE : BOOL;
      DO_PTR : POINTER;
	  	DO_LENGTH : INT; 
	  	DI_ENABLE : BOOL;
      DI_PTR : POINTER;
	  	DI_LENGTH : INT; 
		  AI_ENABLE : BOOL;
      AI_PTR : POINTER;
	  	AI_LENGTH : INT; 
	  	REG_ENABLE : BOOL;
      REG_PTR : POINTER;
	  	REG_LENGTH : INT;
    END_VAR
    VAR_OUTPUT
      DONE: BOOL;
      ERROR : USINT;
    END_VAR
  END_FUNCTION_BLOCK

FUNCTION_BLOCK MODBUS_SLAVE_INIT
    VAR_INPUT
      ENABLE : BOOL;
			MODE : BOOL; 
			ADDRESS : USINT;
			PORT : USINT;
      BAUD : UDINT;
      DATABITS : USINT;
      PARITY : USINT;
      STOPBITS : USINT;
    END_VAR
    VAR_OUTPUT
      ERROR : USINT;
    END_VAR
  END_FUNCTION_BLOCK



(* PROJEKT PROTOTYPEN *)



(* EXTERNE POEs *)



$END_INCLUDE_FILE
