59ifm Programming Manual ecomatmobile BasicController (CR0403) Runtime System V03.02 2015-04-01ifm function elements ifm libraries for the device CR0403>5.1.1 Library ifm_CR0403_V03yyzz.LIB 14791This is the device library.This ifm library contains the following function blocks:Function element Short descriptionCURRENT_CONTROL (→ page 178) Current controller for a PWMi output channelFASTCOUNT (→ page 169) Counter block for fast input pulsesFLASH_INFO (→ page 185) Reads the information from the user flash memory:• name of the memory area (user defined),• software version,• start address (for simple reading with IEC structure)FLASH_READ (→ page 186) Transfers different data types directly from the flash memory to the RAMGET_APP_INFO (→ page 187) Delivers information about the application program stored in the device:• name of the application,• version of the application,• unique CODESYS build number,• CODESYS build dateGET_HW_INFO (→ page 188) Delivers information about the device hardware:• ifm article number (e.g. CR0403),• article designation,• unambiguous serial number,• hardware revision,• production dateGET_IDENTITY (→ page 189) Reads the identification of the application stored in the device(has previously been saved by means of SET_IDENTITY (→ page 197))GET_SW_INFO (→ page 190) Delivers information about the system software of the device:• software name,• software version,• build number,• build dateGET_SW_VERSION (→ page 191) Delivers information about the software versions stored in the device:• BasicSystem version,• bootloader version,• SIS version,• application program version,• user flash versionINC_ENCODER (→ page 171) Up/down counter function for the evaluation of encodersINPUT (→ page 173) Assigns an operating mode to an input channelProvides the current state of the selected channelMEM_ERROR (→ page 192) Signals errors in some parameters or in the memory(Re-)initialisation of system resourcesMEMCPY (→ page 193) Writes and reads different data types directly in the memoryOHC (→ page 195) Adjustable operating hours counter (0...3)OUTPUT (→ page 180) Assigns an operating mode to an output channelProvides the current state of the selected channelPERIOD (→ page 175) Measures the frequency and the cycle period (cycle time) in [μs] at the indicated channelPWM1000 (→ page 182) Initialises and configures a PWM-capable output channelthe mark-to-space ratio can be indicated in steps of 1 ‰SET_IDENTITY (→ page 197) Sets an application-specific program identificationSET_LED (→ page 198) Change the frequency and color of the status LED in the application programSET_PASSWORD (→ page 200) Sets a user password for access control to program and memory uploadTIMER_READ_US (→ page 201) Reads out the current system time in [μs]Max. value = 1h 11min 34s 967ms 295μs