Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Content Contents Preliminary note Legal and copyright information ................... 6 Purpose of the document ..................... 6 Symbols and formats used ....................7 Overview: User documentation for CR1200 ................ 8 Overview: CODESYS documentation of 3S ................ 8 Modification history ......................
Page 3
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Content Setup: Start the application ....................69 Automatically restore system files..................70 Exit setup, reboot device ....................71 First steps Start CODESYS .........................73 Create CODESYS project ....................74 6.2.1 Create new project with CR1200 ....................75 6.2.2 Add visualisation to the project ....................
Page 4
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Content 8.6.2 Activate extensions for mobile cameras ................... 115 8.6.3 Use Ethernet camera in the project ..................116 8.6.4 Using analogue cameras in the project ..................120 Use CANopen ........................127 8.7.1 CANopen: Send and receive SDO ...................
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Preliminary note Legal and copyright information Preliminary note Legal and copyright information ....................... 6 Purpose of the document ......................... 6 Symbols and formats used ........................7 Overview: User documentation for CR1200 ..................... 8 Overview: CODESYS documentation of 3S .....................
→Microsoft Corporation, USA ® > Purpose of the document 7296 This document applies to the following products from ifm electronic: Dialogue module PDM360 NG (art. no.: CR1200), firmware version V3.2.0.1 or higher These instructions describe the following topics: ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Preliminary note Symbols and formats used > Symbols and formats used 15989 WARNING Death or serious irreversible injuries may result. CAUTION Slight reversible injuries may result. NOTICE Property damage is to be expected or may result. Important note Non-compliance can result in malfunction or interference Information...
Preliminary note Overview: User documentation for CR1200 > Overview: User documentation for CR1200 9193 ifm electronic provides the following user documentation for the models of the device class "dialogue modules PDM360 NG": Document Contents / Description Data sheet Technical data in a table ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Preliminary note Modification history > Modification history 18020 Version Topic Date New creation of the document 14.08.2016...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Safety instructions Modification history Safety instructions What previous knowledge is required? ....................11 Note! ...............................11 Start-up behaviour of the controller ......................12...
WARNING Non-observance of these instructions can lead to property damage or personal injury. ifm electronic gmbh does not assume any liability in this regard. ► The acting person must have read and understood the safety instructions and the corresponding chapters in this manual before working on and with this device.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Safety instructions Start-up behaviour of the controller NOTICE Danger of burn-in effects! If the device is operated with the same visualisation for many hours, the image may be burned into the screen.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 System requirements Start-up behaviour of the controller System requirements Hardware ..............................14 Software..............................14 Licensing..............................14 16903...
Function libraries for the programming of the device The features and functions warranted in this manual can only be obtained by using the software components in the versions stated here. On its website ifm electronic provides the software components for download: → www.ifm.com >...
Page 15
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Installation Licensing Installation CODESYS programming software ......................16 ifm package for PDM360 NG........................17 Update the runtime system of the device ....................20 19339...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Installation CODESYS programming software > CODESYS programming software 7282 The CODESYS Development System (short: CODESYS) serves as platform for the creation of PLC applications according to the standard IEC 61131-3. > 4.1.1 Install CODESYS Development System 18596...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Installation ifm package for PDM360 NG > ifm package for PDM360 NG Components of the package........................18 Install ifm package ..........................18 Update ifm package ..........................19 Uninstall ifm package ..........................19 9888 ► Familiarise yourself with the following CODESYS functions! ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Installation ifm package for PDM360 NG > 4.2.1 Components of the package 9889 ifm provides the CODESYS package CODESYS for ifm PDM360NG Products for the programming of the device-internal PLC. The package contains the following components: ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Installation ifm package for PDM360 NG > 4.2.3 Update ifm package 15219 To update the ifm package CODESYS for ifm PDM360NG Products: Uninstall the old version of the ifm package Uninstall ifm package ►...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Installation Update the runtime system of the device > Update the runtime system of the device Notes ..............................21 Enter the recovery mode ........................22 Update the runtime system........................22 Configure IP parameter of ethernet interface ..................25 Quit the recovery mode ..........................27 18159...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Installation Update the runtime system of the device > 4.3.1 Notes 18162 To update the runtime system the device needs to be in recovery mode. > Download the update file 18165 The user can download the current version of the runtime system from the ifm website.
► Do not interrupt the update process! The runtime system of the device can only be updated in the recovery mode. The current version of the runtime system can be downloaded from the ifm electronic website Download the update file (→...
Page 23
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Installation Update the runtime system of the device > Runtime system update via USB memory device 9382 Download current release of runtime system ► Download new release of runtime system from the ifm website (→ Download the update file (→...
Page 24
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Installation Update the runtime system of the device Runtime system update via web browser 9379 Neues Laufzeitsystem herunterladen ► Download new release of runtime system from the ifm website (→ Download the update file (→...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Installation Update the runtime system of the device > 4.3.4 Configure IP parameter of ethernet interface 11915 In order to update the runtime system of the CR1200 via a network infrastructure, the device's ethernet interface needs to be configured.
Page 26
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Installation Update the runtime system of the device > Configure the IP parameter manually 8906 Address Detailed information about the assignment of IP addresses in Ethernet networks: → assignment in Ethernet networks (→...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Installation Update the runtime system of the device > 4.3.5 Quit the recovery mode ► Select recovery screen. ► Use [] / [] to select the menu item [Reboot] and press [ENTER] to activate it. ►...
Page 28
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Installation Update the runtime system of the device >...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Enter the setup mode > Enter the setup mode 18152 If no valid application is stored in the device, the device passes automatically in the setup mode after power on. ►...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Operating instructions > 5.2.1 Key functionality 18155 The assignment of the function keys is context sensitive. The function of a key is described by the text label of the corresponding button on the screen. Only active function keys have a labeled button.
Page 33
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Operating instructions > Operation: Navigate in the setup menu 14674 To navigate in the setup menu: ► Use [SELECT] to select the next menu item (forward). Use [BACKSEL] tot select the previous menu item (backward). >...
Page 34
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Operating instructions > Operation: Navigate within a menu screen 14675 To navigate within a menu page: ► Use [SELECT] or [BACKSEL] to select the requested GUI element (i.e. number field, option field). >...
Page 35
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Operating instructions > Operation: Navigate in the file directory 14673 To navigate in the file directory: ► Use [SELECT] to select a specific window (i.e. [Name], [Places], [Favorites] and [UP]) >...
Page 36
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Operating instructions > Operation: Enter a text using the on-screen keyboard 11763 The user interface of the runtime system has an on-screen keyboard. It appears automatically as soon as the user is expected to enter characters. The on-screen keyboard shows the German character set (QWERTZ keyboard layout).
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Operating instructions > 5.2.2 Navigation key 18158 The navigation key consists of the following single keys: 4 direction keys (, , , ) 1 function key (center key) The keys of the navigation key can be used as an alternative as well as an equivalent to function keys.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Operating instructions > 5.2.3 Setup: Working with enabled password protection 11914 If the password protection is enabled, the operator has only accress to the following menu functions: [SETUP] > [System Information] ...
Page 39
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Operating instructions > Setup: Setup menu with restricted access rights 11729 Protected setup functions have the following characteristics: They are disabled in all setup submenus (greyed out). They cannot be selected with [SELECT] / [BACKSEL].
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: start screen 14556 ► Select [SETUP] and press [ENTER]. > [SETUP] menu appears: ► Select one of the following menu items: Name Description [SYSTEM SETTINGS] Access system settings Setup: System settings (→...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > 5.3.1 Setup: System settings 9603 The menu [SETUP] > [SYSTEM SETTINGS] provides access to the following functions: Menu item Function Setup: Configure the IP parameters manually →...
Page 42
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Configure the IP parameters manually 7408 IP address (factory settings) = 192.168.82.247 Login data to access the device via Telnet/SSH and FTP/SCP: USERNAME = root PASSWORD = pdm360ng ...
Page 43
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Configure the IP parameters automatically 13791 To use DHCP, the device must be connected to a DHCP server via the Ethernet interface. To set the IP parameters of the Ethernet interface by means of the Dynamic Host Configuration Protocol (DHCP).
Page 44
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Set the CAN interfaces 7413 To set the parameters of the CAN interfaces: Select menu page ► Navigation path: [SETUP] > [SYSTEM SETTINGS] > [CAN] >...
Page 45
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Set the real-time clock (RTC) 7414 To set the real-time clock. Select menu page ► Navigation path: [SETUP] > [SYSTEM SETTINGS] > [RTC] > Menu page displays the following informations: Name Description...
Page 46
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Set the display brightness 7405 The setup menu is always displayed with a 100 % brightness. The changed brightness will only become effective outside the setup menu. So set the display brightness: Select menu page ►...
Page 47
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Set the network services 11719 The secure network services Secure Shell (SSH) and Secure Copy (SCP) are always available. The user can therefore access the device via SSH and SCP if the network services Telnet and FTP are inactive.
Page 48
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Set the password protection 11720 The menu page [SETUP] > [SYSTEM SETTINGS] > [PASSWORD SETTINGS] provides access to the following options: Setup: Change the system password (→...
Page 49
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Enable / Disable password protection 11418 On delivery the password protection for the setup menu is deactivated. If the password protection is activated after the first setup, the password set at the factory is valid: pdm360ng ►...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > 5.3.2 Setup: Display system information 7407 To display the system information: Select menu page ► Navigation path: [SETUP] > [SYSTEM INFORMATION] > Menu page displays the following information: Name Description [Serial Number]...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > 5.3.3 Setup: More functions 7409 The submenu [SETUP] > [ACTIONS] provides access to the following functions: Menu item Function Setup: Reboot the device → [REBOOT] (→...
Page 52
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Reboot the device 7410 To reboot the device: Select menu page ► Navigation path: [SETUP] > [ACTIONS] > [REBOOT] > [Reboot] menu page appears. Reboot the device ►...
Page 53
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > CAN test: Transmit data 9625 To test transmitting CAN messages: Select menu page ► Navigation path: [SETUP] > [ACTIONS] > [CAN TEST] > Menu page [CAN Bus Selection] appears. Select CAN interface ►...
Page 54
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > CAN test: Receive data 9627 To test receiving CAN messages: Select menu page ► Navigation path: [SETUP] > [ACTIONS] > [CAN TEST] > [CAN Bus Selection] menu page appears. Select CAN interface ►...
Page 55
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Define the splash screen 9629 image properties Specifications for the image file, which is used as splash screen → (→ p. 107) To change the splash screen of the device: Select menu page ►...
Page 56
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Test input elements 13871 To test the function of the keys, the key LEDs and the navigation switch: Select menu page ► Navigation path: [SETUP] > [ACTIONS] > [KEYBOARD TEST] >...
Page 57
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Backup / Restore software components 7412 To backup data stored on the device as well as to restore data to the device, the following options are available: Name Description...
Page 58
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Backup: Save the system files 9637 WARNING If the backup and the restore device have different runtime versions, the restoration of a backup file can lead to an undefinable system behaviour of the device! The runtime versions on the backup and restore devices must be identical.
Page 59
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Menu page displays content of the selected memory location. Save backup file ► Optional: Select required target directory. ► Press [SAVE] to save the selected system files in a backup file (.bup). >...
Page 60
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Restore: Restore the system files 9636 WARNING If the backup and the restore device have different runtime versions, the restoration of a backup file can lead to an undefinable system behaviour of the device! The runtime versions on the backup and restore devices must be identical.
Page 61
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Safely remove the USB device 9631 NOTICE Risk of data loss on the USB device! ► Unmount USB devices before removing them from the runtime system! ►...
Page 62
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Manage fonts 14372 To manage font files (True Type Fonts) on the device, the following options are available: Name Description [LOAD FONT] Install font files on the device Fonts: Load the font (→...
Page 63
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: start screen > Setup: Format the internal storage 9643 NOTICE Risk of data loss! > When this action is confirmed, all user data in the directory /data of the storage medium is irretrievably deleted! ►...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration PDF file viewer > PDF file viewer PDF: Navigating in the PDF file ......................65 PDF-Viewer: Display PDF file in full-screen mode .................66 PDF-Viewer: Display extended menu ....................67 PDF-Viewer: Display the tabel of content of the PDF file ...............68 11416 The setup menu uitlises a PDF file viewer.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration PDF file viewer > 5.4.1 PDF: Navigating in the PDF file 11420 Operation: Navigate in the file ► Select requested PDF file and press [ENTER] to open the file (→ directory (→...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration PDF file viewer > 5.4.2 PDF-Viewer: Display PDF file in full-screen mode 11422 PDF file viewer ► Load PDF file (→ (→ p. 64)). ► Use [FULL] to change to the full-screen mode. >...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration PDF file viewer > 5.4.3 PDF-Viewer: Display extended menu 11424 PDF file viewer ► Start the PDF viewer (→ (→ p. 64)) ► Use [EXIT] to change to the extended menu. >...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration PDF file viewer > 5.4.4 PDF-Viewer: Display the tabel of content of the PDF file 11431 PDF-Viewer: Display PDF file in full-screen mode ► Display PDF file in full-screen mode (→ (→...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Setup: Start the application > Setup: Start the application 11438 ► Enter the setup mode (→ Enter the setup mode (→ p. 30)) ► Select [LOAD APPLICATION] button. ► Use [ENTER] to start the application. If a valid application program is saved: >...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Device configuration Automatically restore system files > Automatically restore system files 14065 The function "Auto Restore" automatically identifies backup files saved in the root directory of a USB memory device (*.bup) and restores their contents. Several devices can be easily and time-savingly provided with the same software configuration (e.g.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 First steps Exit setup, reboot device First steps Start CODESYS .............................73 Create CODESYS project ........................74 Use CODESYS user manual ........................77 Configure programming interface ......................78 Add ifm function libraries to the application ....................79 Activate the access protection for a project ....................79 Access the Linux system of the device ....................80 15858...
Manage a project → Online help > CODESYS Development System > Protect and save project ifm electronic provides a special profile for each model of the device class "Dialogue module PDM360 NG". The user can choose the suitable profile during project creation.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 First steps Create CODESYS project > CODESYS saves the project. > 6.2.2 Add visualisation to the project 2270 To add a visualisation for the representation of the user interface of the CR1200 to the project: ►...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 First steps Use CODESYS user manual Use CODESYS user manual 15221 This manual only describes the integration, configuration and the programming of the CR1200 using the CODESYS development system. For the description of user actions and user interface elements the CODESYS terminology will be used.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 First steps Configure programming interface > Configure programming interface 21784 Programming of the device-internal PLC is made via the Ethernet interface of the device (position of the connections: → Installaton instructions). Device and PC/laptop can be coupled directly or indirectly via an Ethernet network.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 First steps Add ifm function libraries to the application > Add ifm function libraries to the application 21775 ► Familiarise yourself with the following CODESYS functions! Library manager → Online help > CODESYS Development System > Use libraries > Adding a library to the application The ifm package includes function libraries for the programming of the device under CODESYS.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 First steps Access the Linux system of the device Access the Linux system of the device 21785 The user can access the Linux system of the device directly via the Ethernet interface. The following options are supported: Option Description...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 System configuration Access the Linux system of the device System configuration Configure PLC ............................82 Configure inputs and outputs .........................83 Configure device keys ..........................85 Configure CAN interfaces ........................87 11505 The device tree of the CODESYS project provides different possibilities to configure the properties of the device.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 System configuration Configure PLC > Configure PLC 22073 The configuration of the PLC of the CR1200 is made via the "Generic device editor" of the CODESYS programming system. ► Familiarise yourself with the following CODESYS functions! ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 System configuration Configure inputs and outputs > Configure inputs and outputs Set operating mode of the inputs ......................84 Set operating mode of the outputs ......................84 10378 On delivery the following default settings are preset: ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 System configuration Configure inputs and outputs > 7.2.1 Set operating mode of the inputs 10374 The input of the device can be operated in different operating modes. The user can set the operating mode of the input via the parameter [IN0000].
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 System configuration Configure device keys > Configure device keys Set the brightness of the key LEDs ......................86 Set key assignment (key mapping) ......................86 14626...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 System configuration Configure device keys > 7.3.1 Set the brightness of the key LEDs 11502 The user can set the brightness of the key LEDs via the following parameters: Parameter Description Possible values [LED bright] Brightness of the key LEDs in normal mode (values in %)
> Window [Add Device] appears. ► Set the following values: 1. [Vendor]: Select ifm electronic. 2. In the table: Select [ifmCANbus]. 3. [Name]: Enter unambiguous name for the CAN interface. ► Select [Add Device] to add a CAN interface to the device tree.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 System configuration Configure CAN interfaces > 7.4.2 RawCAN: Configure CANLayer 2 14646 No further actions are required to use a CAN interface as CANLayer 2 (RawCAN). The user can access the CAN interface directly in the application. More information about programming of the RawCAN interface: →...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 System configuration Configure CAN interfaces > 7.4.4 CANopen: Configure CANopen Device (slave) 14644 ► Familiarise yourself with the following CODESYS functions! CANopen Local Device → Online help > Fieldbus support > CAN-based fieldbuses > CANopen > CANopen Device The configuration of the CANopen Device is based on the CANopen Stack of the CODESYS 3.5 programming system.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 System configuration Configure CAN interfaces > 7.4.5 J1939: Configure J1939 Manager 11743 The configuration of the J1939 Manager is based on the J1939 Stack of the CODESYS 3.5 programming system. ► Familiarise yourself with the following CODESYS functions: ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Configure CAN interfaces Programming Objects of a PLC application ........................93 Create PLC application ...........................94 Use ifm function libraries ........................99 Use system flags ..........................102 Use visualisations ..........................106 Use mobile cameras ..........................114 Use CANopen ............................127 Use RawCAN (CAN Layer 2) .......................129 Configure task processing ........................131...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Objects of a PLC application > Objects of a PLC application 3084 All objects of a PLC application are listed as subelements of the node [Application] in the device tree. In the basic configuration a PLC application contains the following objects: [Application] is a container for objects of a PLC application [Library Manager] provides access to the standard and device-specific function libraries:...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Create PLC application > Create PLC application 14625 ► Familiarise yourself with the following CODESYS functions! → Online help > CODESYS Development System > Create application CODESYS automatically generates the function block PLC_PRG (PRG) during project creation. The function block is processed cyclically.
Page 95
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Create PLC application Available memory 21780 Memory area Size Total memory space* RAM: 128 Mbytes Flash: 128 Mbytes Reserved for program code 8 Mbytes Memory for retain data ** 32 Kbytes Memory for bitmap files (80 x 100pixels each, 24-bit colour depth) 45 Mbytes...
Page 96
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Create PLC application > Supported variable types 21762 ► Familiarise yourself with the following CODESYS functions! Local variables → Online help > CODESYS Development System > Reference programming > Variable types and special variables >...
Page 97
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Create PLC application > Symbol names of the operating elements 12652 Certain symbol names are assigned to the operating elements of the device. By means of these symbol names the programmer can define certain actions and functions to be triggered upon actuation Map functions to operating elements of the correspondent operating element (→...
Page 98
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Create PLC application > Operating sequence 7427 In principle, there are two options to create a project for display devices: Sequence Advantages Disadvantages Visualisation first, then the In the program it is possible to The PLC parameters and variables required in PLC program.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use ifm function libraries > Use ifm function libraries Configure system ..........................100 Configure Ethernet interface.........................100 Control device ............................100 Manage files ............................101 Manage CSV files ..........................101 Use help functions ..........................101 14624 ifm provides the following function libraries for the programming of the device under CODESYS 3.5: Name Description...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use ifm function libraries > 8.3.1 Configure system 14370 The following function elements are available to configure the device: Name Description Reference DisableTouchScreen → DisableTouchScreen* Activate /deactivate touch functionality of the (→...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use ifm function libraries > 8.3.4 Manage files 11507 The following function elements are available to manage (copy, delete) the files and directories: Name Description Reference Copy_PDM_To_USB Copy files from the device to a USB memory device → Copy_PDM_To_USB (→...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use system flags Use system flags 10373 System flags are factory-set global variables. They are coupled to the IEC addresses (%Ixx, %Qxx). Via symbol names, the user has access to the following elements from the application: ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use system flags > 8.4.2 Read diagnostic data of the device 10372 The user can use the following global variables to access the current diagnostic data of the device: Name Data type Access Description Possible values...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use system flags > 8.4.4 Control status LED 20939 The user can use the following global variable to control the status LED of the device: Name Data type Access Description Possible values LED0.Value BOOL...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use system flags > 8.4.6 Control key LEDs 14482 The user can use the following global variables to control the LEDs of the operating elements of the device: Name Data type Access Description Possible values xNightModeON...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use visualisations > 8.5.1 Notes about visualisations 21786 Observe the following notes when creating visualisations. > Drawing area 8392 The actual drawing area is equal to the resolution of the display. ...
Page 108
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use visualisations Use optical and acoustic feedback 14300 All operating elements are backlit withLEDs. The LEDs can be controlledin the application program. ► Only switch those key LEDs in the application which can be sensibly actuated in the current screen.
Page 109
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use visualisations The following text scripts are accepted: - Western (standard) - Other scripts on request...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use visualisations > 8.5.3 Use visualisation manager 15818 ► Familiarise yourself with the following CODESYS functions! Visualisation manager → Online help > CODESYS Visualization > Visualisation manager with clients > Visualisation manager The visualisation manager contains the general settings of the visualisations: Start visualisation manager...
Page 112
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use visualisations > Map functions to operating elements 20922 ► Familiarise yourself with the following CODESYS functions! Keyboard configuration → Online help > CODESYS Visualization > Reference, User interface > Objects > Tab 'Visualization manager' - 'Default Hotkeys' By using the CODESYS function [Default Hotkeys] the user can map certain function to the operating elements of the device (e.g.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use visualisations > 8.5.4 Configure visualisation 21576 To change the properties of the created visualisation: ► In the device tree: Double-click on [Visualization Manager] > [TargetVisu] > Editor window shows properties of the target visualisation ►...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use mobile cameras > Use mobile cameras Supported cameras ..........................115 Activate extensions for mobile cameras ....................115 Use Ethernet camera in the project ......................116 Using analogue cameras in the project ....................120 20928 The device supports the operation of mobile cameras.
> 8.6.2 Activate extensions for mobile cameras 20923 ifm electronic provides special visualisation extensions to add mobile cameras into a CODESYS project. The library ifmCameraElement.library is part of the "CODESYS for ifm PDM360NG Products". Install ifm package ► Install CODESYS for ifm PDM360NG Products (→...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use mobile cameras 8.6.3 Use Ethernet camera in the project 14292 The image data of a connected Ethernet camera is transferred to a placeholder graphic on a visualisation page. > Add Ethernet camera image to the project To add the image data of an Ethernet camera to a project: Prerequisite...
Page 117
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use mobile cameras > Configure Ethernet camera image 14078 To configure the Ethernet camera image: Open configuration dialogue ► Open the visualisation page with placeholder graphic. ► Double-click on placeholder graphic >...
Page 118
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use mobile cameras Select an alternative image ► Set the following parameters under [Bild-Variable]: Parameter Description Possible values [Bild-ID] Variable for the image from the image E.g. PLC_PRG.sImageNoCam collection displayed if no camera image is available ...
Page 119
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use mobile cameras Select general camera variables ► Set the following parameters under [Common camera variables]: Parameter Description Possible values [Display image] Variable for the control of the display E.g.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use mobile cameras > 8.6.4 Using analogue cameras in the project 20927 The image data of a connected analogue camera is transferred to a placeholder graphic on a visualisation page. >...
Page 121
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use mobile cameras > Example: Capture mode 9589 The original image can only be scaled in any manner as full-size image, also asymmetrically. Original image: Compressed image: Streched image:...
Page 122
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use mobile cameras > Example: Overlay mode 9560 The image cannot be scaled. The centre of the image section is identical with the centre of the original image. Original image: Image section 1: Image section 2:...
Page 123
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use mobile cameras > Add analogue camera image into the project 22075 To add an analogue camera image to a project: Prerequisite > The analogue camera is correctly connected to the device. >...
Page 124
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use mobile cameras > Configure analogue camera image 22076 To configure the analogue camera image: Open configuration dialogue ► Open the visualisation page with placeholder graphic. ► Double-click on placeholder graphic >...
Page 125
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use mobile cameras Select an alternative image ► Set the following parameters under [Bild-Variable]: Parameter Description Possible values [Bild-ID] Variable for the image from the image E.g. PLC_PRG.sImageNoCam collection displayed if no camera image is available ...
Page 126
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use mobile cameras Select general camera variables ► Set the following parameters under [Common camera variables]: Parameter Description Possible values [Display image] Variable for the control of the display E.g.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use CANopen > 8.7.1 CANopen: Send and receive SDO 7344 The following POUs are available to send or receive Service Data Objects (SDO): Name Description Reference COP_SDOread → COP_SDOread Read Service Data Object (SDO) (→...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use RawCAN (CAN Layer 2) > Use RawCAN (CAN Layer 2) RawCAN: Control CAN network nodes ....................130 RawCAN: Send and receive CAN messages ..................130 RawCAN: Request and send remote CAN messages .................130 9726 The following POUs are available to access a CAN interface configured for CANopen operation in an application.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Use RawCAN (CAN Layer 2) > 8.8.1 RawCAN: Control CAN network nodes 21776 The following POUs are available to control a node in a CAN network: Name Description Reference CAN_Enable →...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Configure task processing > Configure task processing Configure main task ..........................132 Configure visualisation task ........................132 11406 ► Familiarise yourself with the following CODESYS functions! Task configuration: → Online help > CODESYS Development System > Program application > Task configuration The processing of the tasks is controlled by parameters.The user can set the parameters of the tasks separately.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Programming Configure task processing > 8.9.1 Configure main task 22074 The main task controls the execution of the standard program PLC_PRG. The programmer can assign additional subprograms to the main task. To set the properties of the main task: ►...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Operation Configure task processing Operation Transfer CODESYS project to the device ....................135 Operating states of the PLC application ....................137 Reset ..............................139 Display system information........................142 7340...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Operation Transfer CODESYS project to the device > Transfer CODESYS project to the device Load application to CR1200 .........................136 Delete application from the device .......................136 14059 ► Familiarise yourself with the following CODESYS functions! ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Operation Transfer CODESYS project to the device > 9.1.1 Load application to CR1200 12330 To load the created application to the device and store it non-volatilely: Prerequisites: > Connection between PC/laptop and CR1200 established. >...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Operation Operating states of the PLC application > Operating states of the PLC application Display operating mode of the PLC application ...................137 Start PLC application ..........................138 Stop PLC application ..........................138 2688 The applications stored on the CR1200 are executed independently from each other in separate tasks.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Operation Operating states of the PLC application > 9.2.2 Start PLC application 19929 To start the execution of the PLC application: ► In the device tree: Right-click on [Application] and select [Aktive Applikation setzen]. ►...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Operation Reset > 9.3.1 Supported reset variants 18613 The following table shows the reset variants supported by the device-internal CODESYS PLC and the resulting system behaviour: Type of reset System behaviour Triggering actions →...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Operation Display system information > Display system information 14161 In the online mode the device tree displays the current values of the following system parameters: Parameter Description Possible values [IP Settings] IP settings ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix Display system information Appendix Address assignment in Ethernet networks ...................144 ifm function libraries ..........................145 10354...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix Address assignment in Ethernet networks > 10.1 Address assignment in Ethernet networks 14436 In the Ethernet network every IP address MUST be unique. The following IP addresses are reserved for network-internal purposes and are therefore not allowed as an address for participants: nnn.nnn.nnn.0 | nnn.nnn.nnn.255.
Bibliothek ifmFileUtil.library ........................165 Bibliothek ifmIOcommon.library ......................202 Bibliothek ifmPDM360NG.library ......................207 Bibliothek ifmPDM360NGutil.library .....................208 Bibliothek ifmRawCAN.library.......................225 Bibliothek ifmSysInfo.library .........................245 Bibliothek ifmUSBstorageUtil.library .....................249 7034 This chapter contains the detailed description of the function libraries provided by ifm electronic for programming the device under CODESYS 3.5.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > 10.2.1 Bibliothek ifmCANopenManager.library COP_GetNodeState ..........................147 COP_SDOread .............................149 COP_SDOwrite ............................151 COP_SendNMT ............................153 NMT_SERVICE (ENUM) ........................155 NMT_STATES (ENUM) ........................155 18443 The library contains program blocks (POU) and data structures for the programming of the functionality of a CANopen Manager.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries COP_GetNodeState 15956 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmCANopenManager.library Symbol in CODESYS: > Description 18445 The FB indicates the current state of a CANopen node. >...
Page 148
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 18447 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > COP_SDOread 18448 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmCANopenManager.library Symbol in CODESYS: > Description 7144 The FB reads the contents of a Service Data Object (SDO) and writes them into a buffer storage. The SDO is selected via the CAN interface, the ID of the CANopen node, as well as index and subindex of the object directory.
Page 150
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 11271 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > COP_SDOwrite 17128 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmCANopenManager.library Symbol in CODESYS: > Description 19833 The FB writes the contents of a Service Data Object (SDO). The SDO is selected via the CAN interface, the ID of the CANopen node, as well as index and subindex of the object directory.
Page 152
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 7005 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > COP_SendNMT 7006 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmCANopenManager.library Symbol in CODESYS: > Description 7001 The FB sends a command for the control of a CANopen node. >...
Page 154
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 7147 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > NMT_SERVICE (ENUM) 7132 Name Description Possible values Data type Value NMT_SERVICE Command for the INIT_NODE Initiate CAN node control of a CANopen SET_PRE_OPERATIONAL Set preoperational state node SET_OPERATIONAL Set operational state...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > 10.2.2 Bibliothek ifmDevicePDM360NG.library CAN_CHANNEL (ENUM) ........................157 CAN_BAUDRATE (ENUM) ........................157 LED_COLOUR (ENUM) ........................157 LED_FLASH_FREQ (ENUM) .......................158 IOchannel (GVL) ...........................158 CANconstants (GVL) ..........................158 SysInfo (GVL) ............................158 SysInfoStruct (STRUCT) ........................158 10340 The library contains all device-specific data structures, enumeration types, global variables and constants.
Page 157
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > CAN_CHANNEL (ENUM) 17131 Name Description Possible values Data type Value CAN_CHANNEL Identifier of the CAN Interface CHAN_0 CAN interface 0 CHAN_1 CAN interface 1 CHAN_2 CAN interface 2 CHAN_3 CAN interface 3 >...
Page 158
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > LED_FLASH_FREQ (ENUM) 21318 Name Description Possible values Data type Value LED_FLASH_FREQ Flashing frequency of the status LED FRQ_0Hz FRQ_05Hz 0,5 Hz FRQ_1Hz 1 Hz FRQ_2Hz 2 Hz FRQ_5Hz 5 Hz >...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries 10.2.3 Bibliothek ifmEthernet.library GetIPsettings ............................160 SetIPsettings ............................162 stIPv4Setting (STRUCT) ........................164 21213 The library contains program blocks (POU) and data structures for the management of the IP settings of the device.
Page 160
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > GetIPsettings 11473 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmEthernet.library Symbol in CODESYS: > Description 21209 The FB reads the following IP settings of the device: ...
Page 161
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21208 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB FALSE FB is executed has been successfully completed ...
Page 162
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > SetIPsettings 13779 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmEthernet.library Symbol in CODESYS: > Description 21216 The FB changes the following IP settings of the device: ...
Page 163
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries Output parameter 21217 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed TRUE FB successfully executed ...
Page 164
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > stIPv4Setting (STRUCT) 21210 Designation Data type Description Possible values sIpAddress STRING (15) IP address of the device (IPv4) E.g. 192.168.1.10 sSubnetMask STRING (15) Subnet mask E.g. 255.255.255.0 sDefaultGateway STRING (15) IP address of the network gateway...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Copy_PDM_To_USB 21645 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmFileUtil.library Symbol in CODESYS: > Description 21646 The FB copies one or several files from a source directory on the device to a destination directory on an USB memory device.
Page 167
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries There are the following options for file selection: Individual files (e. g. /home/values/sample.csv) Several files by means of wildcards (e. g. /home/values/*.csv) All files of a directory (e. g. /home/values/) The following combinations of source and target indications are valid: ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Copy_USB_To_PDM SYS_OBJECTID> Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmFileUtil.library Symbol in CODESYS: > Description 21652 The FB copies one or several files from a USB memory device to a destination directory on the device. The FB uses the Linux command "cp -rf <sUSBpath>...
Page 169
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries There are the following options for file selection: Individual files (e. g. /home/values/sample.csv) Several files by means of wildcards (e. g. /home/values/*.csv) All files of a directory (e. g. /home/values/) The following combinations of source and target indications are valid: ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > DeleteFile 21657 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmFileUtil.library Symbol in CODESYS: > Description 21658 The FB deletes a file from the FLASH memory of the device or the USB memory device. >...
Page 171
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21660 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > FileCopy 21661 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmFileUtil.library Symbol in CODESYS: > Description 21662 The FB copies one or several files from a source directory on the device to a destination directory on the device.
Page 173
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries There are the following options for file selection: Individual files (e. g. /home/values/sample.csv) Several files by means of wildcards (e. g. /home/values/*.csv) All files of a directory (e. g. /home/values/) The following combinations of source and target indications are valid: ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > SyncFileMemory 21667 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmFileUtil.library Symbol in CODESYS: > Description 21668 The FB synchronises the NAND flash memory with the working memory (RAM) of the device. ►...
Page 175
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21670 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > ReadCSV8Byte 21526 Function block type: Function block (FB) Behaviour model: EXECUTE with Trigger Library: ifmFileUtil.library Symbol in CODESYS: > Description 21527 The FB reads data sets of a CSV file and provides them. The FB assigns the value 0 to unused cells. The FB stores the time stamp of each data set.The CSV must have been created by means of the FB WriteCSV8Byte (→...
Page 177
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21529 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > WriteCSV8Byte 21550 Function block type: Function block (FB) Behaviour model: EXECUTE with Trigger Library: ifmFileUtil.library Symbol in CODESYS: > Description 21551 The FB reads the data of an array of 8 bytes and writes them into a CSV file as a data set. The FB stores a time stamp in addition to each data set (date, time).
Page 179
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries Input parameter 21552 Parameter Data type Description Possible values xExecute BOOL Control execution of the FB FALSE FB opens file TRUE TRUE FB closes file FALSE ...
Page 180
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21553 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > WriteCSV8ByteHeader 21562 Function block type: Function block (FB) Behaviour model: EXECUTE with Trigger Library: ifmFileUtil.library Symbol in CODESYS: > Description 21563 The FB writes the header into a CSV file. The header is always written in the bytes 0 to 53 of the file. >...
Page 182
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21565 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > ReadParmSingleAsync 19010 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmFileUtil.library Symbol in CODESYS: > Description 12763 The FB reads a single data set of the UINT type of a text file and provides it. The file must only contain this single data set.
Page 184
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 12677 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > WriteParmSingleAsync 11384 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmFileUtil.library Symbol in CODESYS: > Description 12732 The FB writes a single parameter of the UDINT type into a text file. The parameter is stored in the file as a 10-digit value and right-aligned.
Page 186
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 12733 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Buffer_To_String SYS_OBJECTID> Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmFileUtil.library Symbol in CODESYS: > Description 21496 The FB reads a BYTE array, concatenates the values and provides the result in a STRING array. ...
Page 188
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21498 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > GetFileSizeAsync 21700 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmFileUtil.library Symbol in CODESYS: > Description 3952 The FB determines the size of a file. >...
Page 190
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 2075 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > GetMemoryInfoAsync 21520 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmFileUtil.library Symbol in CODESYS: > Description 21521 The FB provides detailed information about the memory usage and the available memory of a directory (e.
Page 192
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21523 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB FALSE FB is executed has been successfully completed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > ByteArray_To_String 21578 Function block type: Function (FUN) Behaviour model: Library: ifmFileUtil.library Symbol in CODESYS: > Description 21579 The function reads a byte array, concatenates the values and provides them as a STRING. >...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > DW_To_4Byte 21584 Function block type: Function (FUN) Behaviour model: Library: ifmFileUtil.library Symbol in CODESYS: > Description 21585 The function converts a DWORD into an array of 4 bytes. Example: DWORD: 0xFFEEDDCC ARRAY [0...3] OF BYTE: 0xFF | 0xEE | 0xDD | 0xCC...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Pack2Byte_To_Word 21591 Function block type: Function (FUN) Behaviour model: Library: ifmFileUtil.library Symbol in CODESYS: > Description 21592 The function converts an array of 2 bytes into a word. Example: aInData[0] = 0x00 aInData[1] = 0xAA...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Pack4Byte_To_DW 21614 Function block type: Function (FUN) Behaviour model: Library: ifmFileUtil.library Symbol in CODESYS: > Description 21615 The function converts an array of 4 bytes into a double word. Example: aInData[0] = 0x00 aInData[1] = 0x11...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > RTC_To_String 21621 Function block type: Function (FUN) Behaviour model: Library: ifmFileUtil.library Symbol in CODESYS: > Description 21622 The function reads the device-internal real-time clock (RTC) and provides the operating time in seconds since the last system start as a string.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Word_To_2Byte 21634 Function block type: Function (FUN) Behaviour model: Library: ifmFileUtil.library Symbol in CODESYS: > Description 21635 The function converts a WORD into an array of 2 bytes. Example: wInData = 0xFFEE Word_To_2Byte[0] = 0xEE...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > _8Byte_To_CSV 21639 Function block type: Function (FUN) Behaviour model: Library: ifmFileUtil.library Symbol in CODESYS: > Description 21640 The function converts the data of an array of 8 bytes into a CSV string and provides this string. One-digit and two-digit numbers are supplemented with leading zeros.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > eCSVmode (ENUM) 21487 Name Description Possible values Data type Value eCSVmode Write mode for CSV file NONE LINEAR RING > eFileSystem (ENUM) 22611 Name Description Possible values Data type Value eFileSystem...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > 10.2.5 Bibliothek ifmIOcommon.library SupplySwitch ............................203 INPUT_FILTER (ENUM) ........................205 INPUT_MODE (ENUM) ........................205 21286 The library contains program blocks (POU) and enumeration types for the control of the inputs and outputs of the device.
Page 203
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > SupplySwitch 21288 Function block type: Function block (FB) Behaviour model: ENABLE Library: ifmIOcommon.library Symbol in CODESYS: > Description 21289 The FB stops all running applications and switches off the voltage supply latching (terminal 30) in order to shut down the device safely.
Page 204
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter SYS_OBJECTID> Parameter Data type Description Possible values xError BOOL Indication if an error occurred during the FB FALSE No error occurred or the FB is execution still being executed ...
Page 205
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > INPUT_FILTER (ENUM) 14409 Name Description Possible values INPUT_FILTER Valid filters for inputs of the FBs (in Hz) FILTER_OFF No filtering FILTER_120_HZ 120 Hz FILTER_47_HZ 47 Hz FILTER_22_HZ 22 Hz FILTER_10_HZ...
Page 206
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries Name Description Possible values IN_PERIOD_RATIO_CSI current sinking for absolute and ratiometcric period measurement. IN_PERIOD_RATIO_CSO current sourcing for absolute and ratiometric period measurement. IN_INC_ENCODER_CSI current sinking for incremental encoder evaluation.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > 10.2.6 Bibliothek ifmPDM360NG.library 10341 The library is a container library. It contains all function libraries required for the programming of the device. Bibliothek ifmCANopenManager.library (→ p. 146) ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > 10.2.7 Bibliothek ifmPDM360NGutil.library BuzzerOn ..............................209 DisableTouchScreen ..........................211 InitNANDflashAsync ..........................213 LinuxSysCallAsync ..........................215 LoadSplashScreen ..........................217 SetBootupBacklight ..........................219 SetKeyClick ............................221 BuzzerClick ............................223 21329 The library contains device-specific POUs for the programming of the device under CODESYS. For complex data types (STRUCT), enumeration types (ENUM) and gloabal constants (GVL) Bibliothek ifmDevicePDM360NG.library used: →...
Page 209
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > BuzzerOn 11533 Function block type: Function block (FB) Behaviour model: ENABLE Library: ifmPDM360NGutil.library Symbol in CODESYS: > Description 21190 The FB activates/deactivates the device-internal buzzer with the configured properties. Adjustable properties: ...
Page 210
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21193 Parameter Data type Description Possible values xError BOOL Indication if an error occurred during the FB FALSE No error occurred or the FB is execution still being executed ...
Page 211
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > DisableTouchScreen 21333 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmPDM360NGutil.library Symbol in CODESYS: > Description 21330 The FB activates/deactivates the touch screen functionality of the display. The POU is only available for the following devices: CR1082, CR1201.
Page 212
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21343 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Page 213
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > InitNANDflashAsync 21420 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmPDM360NGutil.library Symbol in CODESYS: > Description 21421 The FB initialises the device-internal NAND flash memory and adds it to the file system of the device under the path /data.
Page 214
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21423 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Page 215
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > LinuxSysCallAsync 20935 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmPDM360NGutil.library Symbol in CODESYS: > Description 21464 The FB transmits a Linux command with parameters (max. 255 characters) to the operating system of the device and provides the return value of the command.
Page 216
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21466 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Page 217
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > LoadSplashScreen 20934 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmPDM360NGutil.library Symbol in CODESYS: > Description 14533 The FB loads an image file in the flash memory of the device. The image file will be used as splash screen after the next reboot of the device.
Page 218
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter SYS_OBJECTID> Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Page 219
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > SetBootupBacklight 20933 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmPDM360NGutil.library Symbol in CODESYS: > Description 21428 The FB changes the brightness of the display for the duration of the start-up of the device. The new value is applied after the next reboot of the device.
Page 220
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21430 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Page 221
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > SetKeyClick 20931 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmPDM360NGutil.library Symbol in CODESYS: > Description 21471 The FB activates/deactivates the click sound function of the operating system. The click sound function confirms the actuation of a function key of the device by means of a sound.
Page 222
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21473 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Page 223
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > BuzzerClick 20932 Function block type: Function (FUN) Behaviour model: Library: ifmPDM360NGutil.library Symbol in CODESYS: > Description 18517 The function generates a sound via the device-internal buzzer. Adjustable properties: ...
Page 224
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 7984 Parameter Data type Description Possible values → List below (diagnostic codes:) BuzzerClick DIAG_INFO Diagnostic information Diagnostic codes: STAT_INACTIVE State: FB/Function is inactive. ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > 10.2.8 Bibliothek ifmRawCAN.library CAN_Enable ............................226 CAN_Recover ............................228 CAN_RemoteRequest ..........................230 CAN_RemoteResponse ........................232 CAN_Rx ..............................234 CAN_RxMask ............................236 CAN_RxRange .............................239 CAN_Tx ..............................242 CAN_Info (GVL) ...........................244 CAN_BUS_STATE (STRUCT) ......................244 8722 The library contains POUs and data structures for the programming of the CAN Layer 2 level of the CAN interfaces of the device under CODESYS.
Page 226
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > CAN_Enable 8709 Function block type: Function block (FB) Behaviour model: ENABLE Library: ifmRawCAN.library Symbol in CODESYS: > Description 7073 The FB activates the CAN Layer 2 functions of a CAN interface with a certain transmission rate. Simultaneously the FB writes information about the current state of the CAN interface into the global variable CAN State.
Page 227
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 7135 Parameter Data type Description Possible values xError BOOL Indication if an error occurred during the FB FALSE No error occurred or the FB is execution still being executed ...
Page 228
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > CAN_Recover 11765 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmRawCAN.library Symbol in CODESYS: > Description 11771 The FB controls the processing of a failure of the CAN channel. The call of the FB triggers the following actions: ...
Page 229
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 11769 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Page 230
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > CAN_RemoteRequest 10884 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmRawCAN.library Symbol in CODESYS: > Description 10886 The FB sends the request for a CAN Remote message into a CAN network. The FB provides the data of the response message in an array.
Page 231
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 10890 Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Page 232
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > CAN_RemoteResponse 19902 Function block type: Function block (FB) Behaviour model: ENABLE Library: ifmRawCAN.library Symbol in CODESYS: > Description 15962 The FB replies as reaction to the request of a CAN Remote message and sends the data required into a CAN network.
Page 233
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 11740 Parameter Data type Description Possible values xError BOOL Indication if an error occurred during the FB FALSE No error occurred or the FB is execution still being executed ...
Page 234
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > CAN_Rx 6939 Function block type: Function block (FB) Behaviour model: ENABLE Library: ifmRawCAN.library Symbol in CODESYS: > Description 11777 The FB receives CAN messages with a defined identifier. The FB receives all CAN messages with the indicated identifier between 2 FB calls and stores them in a FIFO buffer storage.
Page 235
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 14640 Parameter Data type Description Possible values xError BOOL Indication if an error occurred during the FB FALSE No error occurred or the FB is execution still being executed ...
Page 236
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > CAN_RxMask 14643 Function block type: Function block (FB) Behaviour model: ENABLE Library: ifmRawCAN.library Symbol in CODESYS: > Description 14641 The FB receives CAN messages of a non-coherent area. The area is defined by a bit pattern and a bit mask.
Page 237
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Input parameter 14638 Parameter Data type Description Possible values xEnable BOOL Control activity of the FB FALSE FB is deactivated TRUE FB is activated → CAN_CHANNEL (ENUM) eChannel CAN_ Identifier of the CAN Interface...
Page 238
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 11736 Parameter Data type Description Possible values xError BOOL Indication if an error occurred during the FB FALSE No error occurred or the FB is execution still being executed ...
Page 239
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > CAN_RxRange 11731 Function block type: Function block (FB) Behaviour model: ENABLE Library: ifmRawCAN.library Symbol in CODESYS: > Description 11732 The FB receives CAN messages of a coherent area. The area is defined by an upper and lower limit. The following rules apply to the definition of this area: ...
Page 240
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Input parameter 14639 Parameter Data type Description Possible values xEnable BOOL Control activity of the FB FALSE FB is deactivated TRUE FB is activated → CAN_CHANNEL (ENUM) eChannel CAN_ Identifier of the CAN Interface...
Page 241
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 14642 Parameter Data type Description Possible values xError BOOL Indication if an error occurred during the FB FALSE No error occurred or the FB is execution still being executed ...
Page 242
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > CAN_Tx 2269 Function block type: Function block (FB) Behaviour model: ENABLE Library: ifmRawCAN.library Symbol in CODESYS: > Description 7401 By means of this FB CAN messages can be sent asynchronously. The FB writes the configured CAN message into the buffer storage of the selected CAN channel.
Page 243
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries Output parameter 13821 Parameter Data type Description Possible values xError BOOL Indication if an error occurred during the FB FALSE No error occurred or the FB is execution still being executed ...
Page 244
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > CAN_Info (GVL) 12281 Name Description Data type Possible values CAN_BUS_STATE → eBusState Status of the CAN interface to CiA 11898 Undefined (STRUCT) (→ p. 244) uiBaudRate Current baud rate UINT 0* ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > 10.2.9 Bibliothek ifmSysInfo.library GetInfo ..............................246 aSysInfoList (GVL) ..........................248 SYS_INFO (STRUCT) ..........................248 21218 The library contains function block (FB) and data structures (STRUCT, ENUM) for the provision of the device information.
Page 246
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > GetInfo 20929 Function block type: Function block (FB) Behaviour model: EXECUTE Library: ifmSysInfo.library Symbol in CODESYS: > Description 21219 The FB reads the following information of the device: ...
Page 247
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter S_OBJECTID> Parameter Data type Description Possible values xDone BOOL Indication of whether execution of the FB has FALSE FB is executed been successfully completed ...
Page 248
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > aSysInfoList (GVL) 21470 Name Description Data type Value → SYS_INFO (STRUCT) FIRMWARE_DEVICE Firmware version of the device (→ p. 248) → SYS_INFO (STRUCT) FIRMWARE_KEYBOARD_1 Firmware version of key row 1 (→...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > 10.2.10 Bibliothek ifmUSBstorageUtil.library USBstorageHandler ..........................250 21402 The library contains function blocks (FB) for the control and management of USB memory devices.
Page 250
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > USBstorageHandler 21403 Function block type: Function block (FB) Behaviour model: ENABLE with Busy Extension Library: ifmUSBstorageUtil.library Symbol in CODESYS: > Description 21404 The FB manages the USB device connected to the device. The FB carries out the following functions: ...
Page 251
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Appendix ifm function libraries > Output parameter 21406 Parameter Data type Description Possible values xError BOOL Indication if an error occurred during the FB FALSE No error occurred or the FB is execution still being executed ...
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Glossary of Terms Glossary of Terms CAN = Controller Area Network Address CAN is a priority-controlled fieldbus system for large data volumes. There are several This is the "name" of the bus participant. All higher-level protocols that are based on CAN, participants need a unique address so that the e.g.
Page 253
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Glossary of Terms Depending on event-controlled branchings in CiA DS 406 the program this can take longer or shorter. DS = Draft Standard > CANopen device profile for encoders > Data type CiA DS 407 Depending on the data type, values of different DS = Draft Standard...
Page 254
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Glossary of Terms Dither Embedded software Dither is a component of the →PWM signals to System software, basic program in the device, virtually the →runtime system. control hydraulic valves. It has shown for electromagnetic drives of hydraulic valves that The firmware establishes the connection it is much easier for controlling the valves if the...
Page 255
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Glossary of Terms performed by one or more safety-related systems. > Heartbeat The participants regularly send short signals. FiFo In this way the other participants can verify if a participant has failed. FIFO (First In, First Out) = Operating principle >...
Page 256
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Glossary of Terms is written in 4 decimal values, e.g. 127.215.205.156. > MAC-ID ISO 11898 MAC = Manufacturer‘s Address Code Standard: Road vehicles – Controller area = manufacturer's serial number. network →ID = Identifier •...
Page 257
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Glossary of Terms The NMT master controls the operating states PCMCIA card of the NMT slaves. > PCMCIA = Personal Computer Memory Card Node International Association, a standard for expansion cards of mobile computers. This means a participant in the network.
Page 258
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Glossary of Terms > Pictogram PWM = pulse width modulation Pictograms are figurative symbols which The PWM output signal is a pulsed signal convey information by a simplified graphic What do the symbols between GND and supply voltage.
Page 259
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Glossary of Terms time. Frequent use for the storage of error Examples: • Automatic configuration of all slaves via message protocols. →SDOs at the system start, > • reading error messages from the →object Runtime system directory.
Page 260
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Glossary of Terms assumes the task of data protection, data flow control and takes measures in the event of data loss. (compare: →UDP) > Template A template can be filled with content. Here: A structure of pre-configured software elements as basis for an application program.
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Index CAN_Recover ..................228 Index CAN_RemoteRequest ................. 230 CAN_RemoteResponse ..............232 CAN_Rx ....................234 CAN_RxMask ..................236 _8Byte_To_CSV .................. 199 CAN_RxRange ..................239 CAN_Tx ....................242 CANconstants (GVL) ................158 Access inputs and outputs ..............102 CANopen Access the Linux system of the device ..........
Page 262
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Index Data type....................253 ID ......................255 DC ......................253 IEC 61131 .................... 255 Delete application from the device ............136 IEC user cycle ..................255 DeleteFile ..................... 170 ifm function libraries ................145 Device configuration ................
Page 263
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Index NMT_STATES (ENUM) ............... 155 RawCAN Node ....................257 Configure CANLayer 2 .................. 89 Control CAN network nodes ............... 130 Node Guarding ..................257 Request and send remote CAN messages ..........130 Note! ......................
Page 264
Programming Manual ecomatmobile PDM360 NG 12" (CR1200) V3.2.x 2017-01-10 Index Start the application ..................69 Use, intended ..................260 System settings ..................... 41 Using analogue cameras in the project ..........120 Test input elements ..................56 Test the CAN interfaces ................52 Working with enabled password protection ..........
Need help?
Do you have a question about the PDM360 NG-12 and is the answer not in the manual?
Questions and answers