Table of Contents

Advertisement

Quick Links

Kuhnke FIO Controller
Produkthandbuch: FIO Controller 116
E 844 GB
19.03.2025

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FIO Controller 116 and is the answer not in the manual?

Questions and answers

Summary of Contents for Kendrion FIO Controller 116

  • Page 1 Kuhnke FIO Controller Produkthandbuch: FIO Controller 116 E 844 GB 19.03.2025...
  • Page 2: Table Of Contents

    3.3.1 Intended Use ............................ 17 3.3.1 Foreseeable Misuse ......................... 17 Technical Data ........................... 18 3.4.1 Kuhnke FIO Controller 116 - General Specifications ............... 18 3.4.2 Specifications PROFINET IO Device Extension ................19 3.4.3 Specifications EtherCAT Slave Extension ..................19 3.4.4 Specifications Ethernet Extension ....................19 4 Construction and Functionality ........................
  • Page 3 6.1.1 Installing the Device Description in CODESYS V3 ................60 6.1.2 Installing Device-specific Libraries ....................61 6.1.3 CODESYS licensing ......................... 62 FIO Controller 116 and CODESYS ....................63 6.2.1 Digital Input ............................63 6.2.2 EtherCAT Master ..........................65 6.2.3 CANopen Master ..........................66 6.2.4 Modbus RTU Master ........................
  • Page 4 Kendrion Kuhnke Automation GmbH Table of Contents Retain Variables ..........................89 6.4.1 Declaration of retain variables ......................89 6.4.2 Using the Persistence Manager ....................... 90 7 Appendix ................................ 97 Order Specifications ......................... 101 7.1.1 Basic Units ............................. 101 7.1.2 Accessories ............................ 101...
  • Page 5: Preface

    Kendrion Kuhnke Automation GmbH Preface 1 Preface 1.1 Legal Notice Contact Details Kendrion Kuhnke Automation GmbH Industrial Control Systems Lütjenburger Straße 101 D-23714 Malente Deutschland Tel. Support +49 4523 402-300 E-Mail Support controltechnology-ics@kendrion.com Tel. +49 4523 402-0 E-Mail Sales sales-ics@kendrion.com Internet www.kendrion.com...
  • Page 6: Terms Of Delivery

    License Agreement (EULA), of CODESYS GmbH, which can be viewed on the CODESYS website. 1.2.5 Warranty Warranty is subject to the provisions of the conditions of sale of Kendrion Kuhnke Automation GmbH or any contractual agreements between the parties. 1.3 Reliability, Safety 1.3.1 Applicability...
  • Page 7: Reliability

    Kendrion Kuhnke Automation GmbH Preface mounted, installed, put into service, operated, and serviced correctly. Ambient conditions must be within the admissible limits. Notes and information in the associated documentation apply at all times. 1.3.4 Reliability Reliability of Kuhnke products is brought to the highest possible standards by extensive and cost-effective means in their design and manufacture.
  • Page 8: Other Notices

    Kendrion Kuhnke Automation GmbH Preface Every alert and hazard warning is made up as follows: Type and source of risk Potential consequences of non-observance  Preventive measures DANGER A DANGER warning makes you aware of an immediately hazardous situation which WILL cause a serious or fatal accident if not observed.
  • Page 9: Safety

    Kendrion Kuhnke Automation GmbH Preface 1.3.7 Safety Our products normally become part of larger systems or installations. The information below is intended to help you integrate the product into its environment without dangers to humans or material/equipment. DANGER Non-observance of the instruction manual Measures for the prevention of dangerous faults or errors may be rendered ineffective or new hazard sources created.
  • Page 10: Security

    Preface 1.3.8 IT Security Kendrion Kuhnke products are designed for operation within closed industrial networks. If the industrial networks are publicly accessible, e.g. through freely accessible network interfaces, or publicly accessible, e.g. through data connections via public data traffic (Internet), then suitable organisational and technical security measures must be taken by the integrator and operator to protect the internal network and ensure IT security.
  • Page 11 Kendrion Kuhnke Automation GmbH Preface Electrical immission safeguard To eliminate electromagnetic interference, connect the control system to the protective earth or functional earth conductor. Practice best cable routing. Cable routing and wiring Keep power circuits separate from control circuits: ▪...
  • Page 12: System Description

    Kuhnke FIO consists of the Kuhnke FIO controller, Kuhnke FIO bus coupler and various Kuhnke FIO I/O modules. Kunke FIO Controller 116 is a PLC equipped with a CODESYS V3 runtime system. It also supplies the system voltage to the FIO modules directly connected to it.
  • Page 13 Kendrion Kuhnke Automation GmbH System Description Fieldbus technology The CODESYS programming system allows the direct configuration of the CANopen and EtherCAT fieldbuses. Protocol stacks can be separately installed as CODESYS libraries for some systems. CODESYS Control CODESYS Control is a soft PLC runtime system installed in Kuhnke Controller 116 and adapted to its hardware.
  • Page 14 Kendrion Kuhnke Automation GmbH System Description Software Releases Various software options or combined software options are available for installation in the devices. Please ask product management for the combination that best fits your needs. Software Options Option Identification Function CODESYS Control...
  • Page 15: Product Description

    3 Product Description 3.1 General Description of FIO Controller 116 Kuhnke FIO Controller 116 is an ARM-based mini-IPC plus CODESYS PLC which is programmed by means of CODESYS V3. Its SD card slot plus USB port provide a local storage volume for process and other data and the interchange of control programs.
  • Page 16: Front View

    Kendrion Kuhnke Automation GmbH Construction and Functionality 3.2 Front View Ventilation slots Grip Label clip Status LEDs Module lock and E- EtherCAT Run/Stop Error USB host Status LEDs DIN rail mount and operative earth Ethernet link Ethernet activity LAN port...
  • Page 17: Application

    3.3 Application 3.3.1 Intended Use Kuhnke FIO Controller 116 is a mini-IPC and a CODESYS PLC providing EtherCAT master functions for KUHNKE FIO system I/O modules which allow process signals to be directly attached to the control unit. 3.3.1 Foreseeable Misuse Place of installation The unit is solely permitted for use in fully enclosed control cubicles or rooms.
  • Page 18: Technical Data

    Kendrion Kuhnke Automation GmbH Construction and Functionality 3.4 Technical Data 3.4.1 Kuhnke FIO Controller 116 - General Specifications General Specifications Product name FIO Controller 116 Article number 694 300 16 Processor i.MX6 SoloX Freescale 1 GHz RAM / remanent memory...
  • Page 19: Specifications Profinet Io Device Extension

    Kendrion Kuhnke Automation GmbH Construction and Functionality 3.4.2 Specifications PROFINET IO Device Extension Additional Specifications Product name FIO Controller 116 PROFINET IRT Article number 694 xx2 16 00x Interfaces 2x Ethernet (Switch) PROFINET® Fieldbus PROFINET IO Device PROFINET Chip Renesas TPS-1...
  • Page 20: Construction And Functionality

    Laser marking on the front and the right side wall Label with serial number on aluminium frame Label with software licence on aluminium frame 4.3 Contents of Package The Kuhnke FIO Controller 116 package includes: ▪ Kuhnke FIO Controller 116 ▪...
  • Page 21: Connectors

    Kendrion Kuhnke Automation GmbH Construction and Functionality 4.4 Connectors While all external connectors plug in at the front of the unit, the modules of the FIO EtherCAT IO system connect to the EtherCAT E-bus interface on the side Extension Standard...
  • Page 22: General Data

    Kendrion Kuhnke Automation GmbH Construction and Functionality 4.4.1 General data The spring-assisted PUSH-IN connector allows you to quickly attach the wires by direct insertion without any tools. Just insert the connector sleeve end of the stripped solid or fine wire in the correct opening.
  • Page 23: X1 Usb 2.0 (Host)

    Kendrion Kuhnke Automation GmbH Construction and Functionality 4.4.2 X1 USB 2.0 (host) The USB host port is made for attaching USB peripherals. Pin wiring: Connector Function NOTE USB port overload by excessive power consumption Machine failure and/or data loss  Only attach USB peripherals whose total power needs do not exceed 0.5 A or supply external power to the USB peripherals by adding an active hub to the line, for example.
  • Page 24: X2 Ethernet "Lan

    Kendrion Kuhnke Automation GmbH Construction and Functionality 4.4.3 X2 Ethernet "LAN" The on-board 10/100 Mbit base-T Ethernet adapter attaches the unit to a network through its RJ-45 connector. The LAN configuration of the operating system lists this connector as eth0. The LEDs labelled "LNK"...
  • Page 25: X3 Serial Communication Rs-232 / 'Can

    Kendrion Kuhnke Automation GmbH Construction and Functionality 4.4.4 X3 Serial Communication RS-232 / 'CAN The system uses COM1 for access to the RS-232 port. The RS-232 port is not electrically insulated. Pin Wiring RS 232 interface Function RS 232 Shield Shield The CAN interface complies with standard ISO 11898 and supports baud rates of up to 1 Mbps.
  • Page 26: X4 Digital Input And Power Supply

    Kendrion Kuhnke Automation GmbH Construction and Functionality Connector PUSH IN connector with release lever PUSH IN connector with release lever Number of poles: 10 Number of poles: 10 Weidmüller Best.-Nr. 1460190000 Weidmüller Best.-Nr. 1277890000 4.4.5 X4 Digital Input and Power Supply...
  • Page 27: Extension Moduls

    Connect operative earth to the protective earth conductor of the switching cabinet or the system that Kuhnke FIO Controller 116 is installed in. Connection is made via the earthed DIN rail. In special cases you may attach the earth wire straight to the module.
  • Page 28: Sd Card

    4.4.8 SD Card Kuhnke FIO Controller 116 features a SD card slot at its front. The slot is marked with a SD icon. The SD card slot has a push-in/push-out plug & eject mechanism. You may use a flat object to help you plug in or eject the card.
  • Page 29: Indicators And Controls

    Kendrion Kuhnke Automation GmbH Construction and Functionality 4.5 Indicators and Controls 4.5.1 Status LEDs The status LEDs indicate the state of the FIO Controller's modules. RUN / STOP is indicative of the soft PLC status Indicators: Description Designation Explanation Initialising, no data exchange...
  • Page 30: Status Leds Profinet Io Device Extension

    Kendrion Kuhnke Automation GmbH Construction and Functionality 4.5.2 Status LEDs PROFINET IO Device extension Designation Explanation No physical connection Link green Physical connection No data exchange Activity yellow Data exchange No PROFINET Diagnosis existing PROFINET Diagnosis existing Active communication between...
  • Page 31: Status Leds Ethercat Extension

    Kendrion Kuhnke Automation GmbH Construction and Functionality 4.5.3 Status LEDs EtherCAT extension Bezeichnung Bedeutung No physical connection Link/Activity green Physical connection flashing Data exchange Supply voltage missing Power green Supply voltage OK Initialising, no data exchange off/green, 1:1 Pre-operational, no data exchange...
  • Page 32: Stop/Reset Button

     Check the parameterization of the reset function for the stop/reset button. Service mode Service mode is enabled by turning off FIO Controller 116. Now press and hold the button to restart FIO Controller 116. Keep pressing the button until Run/Stop lights up yellow every 2 seconds.
  • Page 33: Operation

    Kendrion Kuhnke Automation GmbH Operation 5 Operation 5.1 Installation 5.1.1 Mechanical Installation  Kuhnke FIO I/O modules are intended for mounting rail installation (DIN EN 50022, 35 mm x 7.5 mm). To snap on a single module  Push up the module against the mounting rail from below, allowing the metal spring to snap in between mounting rail and mounting area as illustrated.
  • Page 34 Kendrion Kuhnke Automation GmbH Operation Position Mount with rail horizontally with the modules' multiple socket connectors pointing away from the wall. To ensure that enough air gets in through the ventilation slots, leave at least 20 mm to the top and 35 mm to adjacent devices or cabinet surfaces.
  • Page 35: Electrical Installation

    Kendrion Kuhnke Automation GmbH Operation 5.1.2 Electrical Installation WARNING Potentially hazardous failures due to wrong voltages supplied Supplying the wrong voltages may damage or destroy the unit and may provoke potentially hazardous failures. Preventive measures:  We recommend to use PELV/SELV-ready power supply units to EN50178 or EN60950-1 to supply 24 VDC to bus couplers or compact PLCs.
  • Page 36 EtherCAT bus system and supplies power to the EtherCAT communication modules. FIO Controller 116 is always the first module of a FIO I/O block. Please note that the power supplied by FIO Controller 116 limits the number of FIO modules you may connect to a single block.
  • Page 37 Kendrion Kuhnke Automation GmbH Operation Logic power supply (24 VDC) Power to the logic circuitry is supplied through lines L+ and L- of the module plug. NOTE Risk of electric voltage Supply voltages outside of the admissible range may destroy the unit.
  • Page 38: Configuration

    IP address: 192.168.0.116 Subnet mask: 255.255.255.0 Before you connect to FIO Controller 116 for the first time, verify that your PC is set to the same IP address range as FIO Controller 116. This many involve changing your PC's IP address.
  • Page 39: Web Interface

    5.3 Web Interface 5.3.1 Login First of all run a browser application on your PC to launch the web interface of FIO Controller 116. Internet Explorer, Chrome and Firefox are the current choice of browsers. Type the following IP address of FIO Controller 116 into your browser's address bar: http://<IP address>...
  • Page 40: Menu - Configuration

    Kendrion Kuhnke Automation GmbH Operation 5.3.2 Menu – Configuration 5.3.2.1 "Network" menu item Use this page to change various of the control unit's network settings. The new network settings will be enabled when you restart the unit. Host Name The host name identifies the control unit in a unique manner. In CODESYS V3, the host name is called device name and computer name in Windows.
  • Page 41 EtherCAT™ device (mode: ethercat). ETH2 These settings are only visible if the FIO Controller 116 is equipped with the Ethernet extension module. ETH2 is the device name of the third network interface in the operating system. This interface supports various modes (inactive, static, dhcp, ethercat, profinet device) The factory setting is a static IP address for the first network interface (mode: static).
  • Page 42 Kendrion Kuhnke Automation GmbH Operation 5.3.2.2 "CAN" Menu Item The settings on this page allow you to omit CODESYS V3 and still operate the CAN interfaces at a specific baud rate. By default ("set by codesys"), the interface remains inactive until initialised by the CODESYS V3 application.
  • Page 43 Kendrion Kuhnke Automation GmbH Operation 5.3.2.5 "FTP server" Menu Item Use this page to enable or disable the control unit's on-board FTP server which uses TCP port 21. The following users are privileged to log in to the FTP server:...
  • Page 44: Menu - System

    Kendrion Kuhnke Automation GmbH Operation 5.3.3 Menu – System 5.3.3.1 "Info" Menu Item This page displays all major details of the control unit. Übersicht Option Example Explanation Part-Name FIO Controller 116 Name of control unit Firmware-Version X.XX.X.X (z.B. 1.21.1.0) Release of the firmware currently...
  • Page 45 Kendrion Kuhnke Automation GmbH Operation 5.3.3.3 "Update" Menu Item Use this page to upload various files to the control unit in order to install firmware updates or further licences. Remember to stop all CODESYS V3 applications on the control unit before installing an update. First of all, pick the required file (e.g.
  • Page 46: Menu - Plc Manager

    Kendrion Kuhnke Automation GmbH Operation 5.3.4 Menu – PLC Manager 5.3.4.1 Control Use this page to control the CODESYS V3 applications hosted by the control unit. Kuhnke Controller 116 19/03/2025...
  • Page 47 Kendrion Kuhnke Automation GmbH Operation Panel 1 displays the status of all applications hosted by the control unit. Status Erklärung AS_PARTIALLY_STOPPED The status of at least one application is "AS_STOP" AS_RUN The status of all control unit applications is "AS_RUN"...
  • Page 48: Application Info

    Kendrion Kuhnke Automation GmbH Operation 5.3.4.2 Config Use this page to change some special control unit settings.  PLC application on SD-Card. This option links in the SD memory card such that the control unit is able to run applications directly from the card.
  • Page 49 Kendrion Kuhnke Automation GmbH Operation 5.3.4.5 Font Files This page lists all fonts currently installed in the control unit. Fonts are distinguished as "System Fonts" and "PLC Fonts". Section 8.3 explains how to install new fonts in the control unit.
  • Page 50: Menu - Diagnostics

    Kendrion Kuhnke Automation GmbH Operation 5.3.5 Menu – Diagnostics 5.3.5.1 PLC Log This page shows the log of CODESYS V3 Runtime. Log details include: ▪ The CODESYS V3 release installed and active licences. ▪ The system libraries you are using plus their version.
  • Page 51: System Dump

    It may take several minutes to create the image file. Once it is available, the browser will provide it for download. Save this file and send it to Kendrion Kuhnke Support for analysis. 5.3.6 Logout Find the logout link in the bottom right corner of the screen.
  • Page 52: System Functions

    5.4 System Functions 5.4.1 FTP Server Run the FTP server of FIO Controller 116 to allow an FTP client to access the controller. Refer to section 5.3.2.5 "FTP server" Menu Item FTP lets you exchange recipe data with the control unit, for example.
  • Page 53: Installing More Fonts

    Kendrion Kuhnke Automation GmbH Operation 5.4.3 Installing More Fonts By default, DejaVu series fonts are installed. If you wish to use other fonts such as Windows fonts for your WebVisu or TargetVisu visualisations, you may copy any set of Truetype fonts (*.ttf) to folder "/flash/plc/applications/fonts/"...
  • Page 54: Update- Function

    Kendrion Kuhnke Automation GmbH Operation 5.4.4 Update- Function The FIO Controller 116 can be updated via USB stick or SD card. ▪ USB stick: The update must be saved in the directory "usbupdate-mx6" on a USB stick. ▪ SD- card: The update must be saved in the directory "sdupdate-mx6" on a SD- card.
  • Page 55 Kendrion Kuhnke Automation GmbH Operation 5.4.4.1 Update: section [firmware] The firmware section consists of the following keys: Overview value area description do_update yes / no firmware_name File name The file must be located in the "firmware" subfolder. Example: firmware_mx6-plc_1.5.0.tgz 5.4.4.2 Update: section [webtheme]...
  • Page 56 Kendrion Kuhnke Automation GmbH Operation 5.4.4.4 Update: section [plcapp] The Plcapp section consists of the following keys: Overview value area description do_clean_plcfolder yes / no This key specifies whether the application folder on the controller (/flash/plc/applications/) is to be deleted completely.
  • Page 57 Kendrion Kuhnke Automation GmbH Operation 5.4.4.5 Update: Change control settings via the "configuration.ini" file All control settings that can be set via the web interface can be changed automatically via a USB update. The file "configuration.ini" in the folder "sysconfig" serves as a basis.
  • Page 58: Maintenance / Servicing

     Verify that the unit's ventilation slots are not covered and that air is able to circulate. 5.5.2 Servicing Kuhnke FIO Controller 116 requires neither servicing for the specified service life nor any action if it is kept and operated at the admissible ambient conditions specified in section3.4 Technical Data.
  • Page 59: Error Handling

    5.7 Taking out of Service 5.7.1 Disposal Before disposing of Kuhnke FIO Controller 116 you must disassemble it and completely take it apart. All metal components can be given to metal recycling. Electronic scrap Sort and dispose of electronic components by type. For details on proper disposal please check your national laws and regulations making sure that your method of disposal complies with them.
  • Page 60: Codesys V3 Development Environment

    Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6 CODESYS V3 Development Environment 6.1 Installing CODESYS on the Project Engineering PC CODESYS is a device-independent system for programming control units. It conforms to standard IEC 61131-3 and supports all standardised IEC programming languages plus the integration of C code routines and object-orientated programming.
  • Page 61: Installing Device-Specific Libraries

    6.1.2 Installing Device-specific Libraries Similar to the device description files, CODESYS keeps libraries in a dedicated repository, i.e. the Library Repository in this case. The following device-specific libraries are available for FIO Controller 116: • Kuhnke System Library iMX6 Library providing access to the system settings •...
  • Page 62: Codesys Licensing

    Workstation licenses or single device licenses are installed using the CODESYS License Manager. Detailed information can be found in the CODESYS online help: Licensing of products (helpme-codesys.com) The FIO Controller 116 supports the licensing of SL products via the CODESYS key and from version 3.5.19.70 also via the soft container. Information When using the soft container, please note that it is deleted via various operating system functions and the installed licenses are lost.
  • Page 63: Fio Controller 116 And Codesys

    FIO Controller 116 supports various CODESYS options of capturing and processing signals. The signals can be provided locally or by various bus systems. This requires you to first of all add the devices concerned to the device list by right-clicking on "Device (FIO Controller 116)" and picking "Add device …" from the popup menu.
  • Page 64 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.2.1.2 Ereigniseingang To process fast signals, the digital input can also be configured as an event input. Activate this under "Internal Parameter". Information In case the input should be used as event input the library „KICSOnboardIo_1.0.0.0“ has to be added to the library repository.
  • Page 65: Ethercat Master

    CODESYS V3 Development Environment 6.2.2 EtherCAT Master Now append the "EtherCAT Master" to FIO Controller 116. Double-click to configure it. Go to the general settings and enter "eth1" as the interface: Now append the FIO Controller (Internal E-Bus) to the EtherCAT Master. The device is the starting point of appending all further Kuhnke FIO EtherCAT-series modules, e.g.
  • Page 66: Canopen Master

    CODESYS V3 Development Environment 6.2.3 CANopen Master Append the "CAN Bus" to FIO Controller 116. Double-click to configure it. Go to the general settings and pick the appropriate baud rate. Do not change the Network (0): Now append the CANopen_Manager to the CAN Bus. Its settings depend on and may have to be adapted to all later bus stations.
  • Page 67 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment Devices explorer with CAN bus Kuhnke Controller 116 19/03/2025...
  • Page 68: Modbus Rtu Master

    6.2.4 Modbus RTU Master Append the "Modbus COM Port" to FIO Controller 116. Double-click to configure it. Go to the general settings and set up the COM Port (1). Its other settings such as the baud rate, parity, data bits and stop bits depend on and may have to be adapted to all later bus stations.
  • Page 69 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment Devices explorer with Modbus RTU Kuhnke Controller 116 19/03/2025...
  • Page 70: Modbus Tcp Master

    CODESYS V3 Development Environment 6.2.5 Modbus TCP Master Append the "Ethernet" device to FIO Controller 116. Double-click to configure it. Go to the general settings and enter "eth0" as the interface. If the device is connected to the control unit, click on and pick interface "eth0".
  • Page 71 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment Devices explorer with Modbus TCP Kuhnke Controller 116 19/03/2025...
  • Page 72: Profinet Io Device Extension

    CODESYS V3 Development Environment 6.2.6 PROFINET IO Device extension The FIO Controller 116 communicates with the PROFINET IO Device extension via a shared memory. The system function SYF_GetAuxCoreMem is used to identify the start address of the shared memory. The following dta are available for the Master: Cyclic data (process data) ▪...
  • Page 73: Programming Example

    Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment Programming example: At first, a data type has to be defined as described above TYPE tProfinetSharedMemory : STRUCT bDataToMaster: ARRAY[0..255] OF BYTE; (* cyclic output data *) bDataFromMaster: ARRAY[0..255] OF BYTE; (* cyclic intput data *)
  • Page 74: Ethercat Slave Extension

    CODESYS V3 Development Environment 6.2.7 EtherCAT Slave extension The FIO controller 116 communicates with the EtherCAT slave extension via a shared memory. The start address of the shared memory is determined via the system function SYF_GetAuxCoreMem. The following data are available for the master: Cyclic data (process data): ▪...
  • Page 75 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment Programming example: At first, a data type has to be defined as described above TYPE tEtherCATSharedMemory : STRUCT bDataToMaster: ARRAY[0..255] OF BYTE; (* cyclic output data *) bDataFromMaster: ARRAY[0..255] OF BYTE; (* cyclic intput data *)
  • Page 76: Device-Specific Libraries

    Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.3 Device-specific Libraries 6.3.1 Kuhnke System Library iMX6 Kuhnke System Library iMX6 provides you with various diagnostic and control unit configuration functions. 6.3.1.1 Configuration 6.3.1.1.1 FUNCTION CNFRTS_GetOperatorButtonDisable Tells you whether the Stop / Reset button function is enabled or disabled.
  • Page 77 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.3.1.1.4 FUNCTION CNFRTS_SetOperatorButtonResetMode Sets the Stop / Reset button's reset mode Input parameters: eButtonMode: ButtonResetMode 0: COLD (cold reset) 1: WARM (warm reset) Output parameters: CNFRTS_SetOperatorButtonResetMode: UDINT 0: done 1: failed 6.3.1.1.5 FUNCTION CNF_ApplySettings Stores all configuration settings on the control unit's non-volatile memory.
  • Page 78 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.3.1.1.8 FUNCTION CNF_GetEthMode Retrieves the current mode setting from the system configuration. Input parameters: sInterface: STRING Values: eth0/eth1/... Input / output parameters: eMode: EthMode Output parameters: CNF_GetEthMode: UDINT 0: done 1: failed 6.3.1.1.9 FUNCTION CNF_GetGatewayAddress...
  • Page 79 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.3.1.1.11 FUNCTION CNF_GetHostName Retrieves the HostName from the control unit. Input / output parameters: sHostname: STRING Output parameters: CNF_GetHostName: UDINT 0: done 1: failed 6.3.1.1.12 FUNCTION CNF_GetIpAddress Input parameters: sInterface: STRING Values: eth0, eth1 Input / output parameters: abyIpAddress: ARRAY [0..3] OF BYTE...
  • Page 80 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.3.1.1.14 FUNCTION CNF_GetModuleName Retrieves the name of the control unit module from the web interface. Input / output parameters: sModulName: STRING Output parameters: CNF_GetModuleName: UDINT 0: done 1: failed 6.3.1.1.15 FUNCTION CNF_GetModuleNumberString Retrieves the article number of the control unit from the web interface.
  • Page 81 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.3.1.1.18 FUNCTION CNF_GetSkipUsbUpdateFlag Checks whether or not the USB is to be updated automatically. Output parameters: CNF_GetSkipUsbUpdateFlag: UDINT 0: runs (does not skip) the USB update 1: skips the USB update 2: an error occurred 6.3.1.1.19 FUNCTION CNF_GetTimezone...
  • Page 82 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.3.1.1.22 FUNCTION CNF_SetGatewayAddress Lets you set the gateway address. Use CNF_ApplySettings to permanently store the parameters. Input parameters: sInterface: STRING eth0, eth1 abyGatewayAddress: ARRAY [0..3] OF BYTE gateway address Output parameters: CNF_SetGatewayAddress: UDINT...
  • Page 83 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.3.1.1.25 FUNCTION CNF_SetNetMask Lets you set the net mask. Use CNF_ApplySettings to permanently store the parameters. Input parameters: sInterface: STRING eth0, eth1 abyNetMask: ARRAY [0..3] OF BYTE net mask Output parameters: CNF_SetNetMask: UDINT...
  • Page 84 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.3.1.2 Diagnosis 6.3.1.2.1 FUNCTION DGN_GetDieTemperature Takes a processor temperature reading and retrieves the minimum and maximum temperatures plus their time stamps. Input parameters: pTempValues: POINTER TO TempValues Output parameters: DGN_GetDieTemperature: UDINT 0: done 1: failed 6.3.1.2.2 FUNCTION DGN_GetOperationHours...
  • Page 85 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.3.1.4.3 FUNCTION USB_GetMountStatus Tells you whether a USB device has been properly mounted on the system. If not mounted properly, the USB device cannot be used. Input parameters: nUSBDevice: UINT 0..n (0=USB1, 1=USB2, …)
  • Page 86 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.3.1.5 Library Information 6.3.1.5.1 FUNCTION GetLibVersion 6.3.1.5.2 FUNCTION GetLibVersionNumber 6.3.1.5.3 FUNCTION IsLibReleased Kuhnke Controller 116 19/03/2025...
  • Page 87 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.3.1.6 Data Types 6.3.1.6.1 ENUM ButtonResetMode COLD cold reset when button is triggered WARM warm reset when button is triggered 6.3.1.6.2 ENUM Errors ERR_OK No error ERR_FAILED ERR_PARAMETER Parameter invalid ERR_NODEV Device invalid...
  • Page 88: Kuhnke Imx6 Onboard Io Library

    Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.3.2 Kuhnke iMX6 Onboard IO Library 6.3.2.1 Datentypen 6.3.2.1.1 STRUCT EVTPARAM_OnboardIo xVal BOOL Internal input current state uLiUsTimestamp ULINT Timestamp [µs] of the last edge 6.3.2.1.2 VAR_GLOBAL CONSTANT EventIDs Internal parameters CMPID_CmpOnboardIo...
  • Page 89: Retain Variables

    Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.4 Retain Variables With version 1.25.0 (CODESYS 3.5 SP16 Patch40) retain variables can be declared on this controller with the keywords "RETAIN" or "PERSISTENT". In older versions, the Persistence Manager of CODESYS must be used, see 6.4.2 6.4.1 Declaration of retain variables...
  • Page 90: Using The Persistence Manager

    Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.4.2 Using the Persistence Manager To store remanent variables the Pesistence Manager from the CODESYS application Composer can be used. General information about the Persistence Manager can be found in the CODESYS Help: https://help.codesys.com/webapp/f_application_composer_persistence_manager;product=core_Application_...
  • Page 91 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.4.2.4 Define Persistence Channel Now define a persistence channel under the PersistenceManager by right-clicking on "Channels" and selecting "Add submodule instance" from the context menu The name can be adapted if necessary. If you use different persistence channels, we recommend to use a descriptive name.
  • Page 92 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.4.2.5 Parameterization of the Persistence Channel To parameterize the persistence channel, double-click on the desired entry in the module view: The module is opened in the Editing Area. In the "Parameters" tab you can adjust the settings to your needs.
  • Page 93 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.4.2.6 Configure data storage Define the desired storage format of the Persistent Variables in the Data Storage submodule by right-clicking on "Data Storage" and selecting "Add Submodule Instance" from the context menu.
  • Page 94 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.4.2.7 Declaration of variables Set the following attribute before each variable that should be retentive: {attribute 'ac_persist' := 'PersistenceChannel'} The name, here 'PersistenceChannel' must match the persistence channel defined in 3. Example declaration of a variable:...
  • Page 95 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment 6.4.2.8 Persistent variables as data structure We recommend to create a data structure for the persistent data when using the PersistenceManager. Then you have to set the attribute {attribute 'ac_persist' := 'PersistenceChannel'} only once in the variable declaration, so that all data from the data structure is remanent.
  • Page 96 Kendrion Kuhnke Automation GmbH CODESYS V3 Development Environment Add a global variable list Right-click on the application -> Add Objects -> Global Variable List to add a variable list for the retain variables. Declaration of the retain data structure Create a declaration for the data structure.
  • Page 97: Appendix

    Kendrion Kuhnke Automation GmbH Security 7 Security Due to the increasing networking of control systems and systems, the threat potential is also increasing rapidly! Therefore, take a close look at the possible security measures! Security measures are essential to protect data and communication channels from unauthorized access.
  • Page 98 To minimize the risk of data security breaches, CODESYS device user management is activated from 09/2023 and FTP and SSH are deactivated when the Kendrion devices are delivered. When connecting to a new device for the first time, you will be prompted to create a device user with a new user password.
  • Page 99 Kendrion Kuhnke Automation GmbH Security The selected data is then requested each time you log in with the device. Deactivating the device user management NOTE After deactivating user management, your control unit is accessible to everyone in the control network. For this reason, user management should only be deactivated in justified exceptional cases.
  • Page 100 Kendrion Kuhnke Automation GmbH Security ▪ Use the security functions supported by CODESYS and the relevant control device, such as encryption of communication with the control device and specifically restricted user access. CODESYS offers the user a variety of security settings and tools which are described in the online help of the development system.
  • Page 101: Order Specifications

    Kendrion Kuhnke Automation GmbH Appendix 8 Appendix 8.1 Order Specifications 8.1.1 Basic Units 694: FIO Baureihe x = 3: without Motion x = 5: CODESYS Softmotion x = 6: CODESYS Softmotion CNC & Robotics *1) y = 0: without Visualisization...

Table of Contents