Functions

IEC"International Electrotechnical Commission" IEC is a not-for-profit, non-governmental international standards organization that prepares and publishes International Standards for all electrical, electronic and related technologies has defined standard functions and also allows you to create your own functions (called user-defined functions). Typically, functions take several inputs and return a single output as the result of processing.

FUNCTION SIMPLE_FUN : REAL
	VAR_INPUT
		A, B : REAL;
		C : REAL := 1.0;
	END_VAR
	SIMPLE_FUN := A*B/C;
END FUNCTION

 


Stay Connected with Kollmorgen

Copyright © 2015 Kollmorgen™