IFM CR0452 Programming Manual

IFM CR0452 Programming Manual

Basicdisplay, runtime system v03 codesys v2.3
Table of Contents

Advertisement

Programming Manual
BasicDisplay
CR0452
Runtime system v03
®
CODESYS
v2.3
English

Advertisement

Table of Contents
loading

Summary of Contents for IFM CR0452

  • Page 1 Programming Manual BasicDisplay CR0452 Runtime system v03 ® CODESYS v2.3 English...
  • Page 2: Table Of Contents

    Contents Contents About this manual Copyright ..........................4 Overview: documentation modules for CR0452 ..............5 What do the symbols and formats mean? ................6 How is this documentation structured? ................7 History of the instructions (CR0452) .................. 7 Safety instructions Please note ..........................
  • Page 3 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Contents ifm function elements for the device CR0452 ..............50 5.2.1 Function element outputs ......................51 5.2.2 Function elements: RAW-CAN (Layer 2) ..................52 5.2.3 Function elements: CANopen ..................... 80 5.2.4 Function elements: SAE J1939 ....................126 5.2.5...
  • Page 4: About This Manual

    About this manual Copyright About this manual Copyright ..............................4 Overview: documentation modules for CR0452 ..................5 What do the symbols and formats mean? ....................6 How is this documentation structured? ....................7 History of the instructions (CR0452) ...................... 7 >...
  • Page 5: Overview: Documentation Modules For Cr0452

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 About this manual Overview: documentation modules for CR0452 > Overview: documentation modules for CR0452 22853 The documentation for this devices consists of the following modules: (Downloads from ifm's website → www.ifm.com Document...
  • Page 6: What Do The Symbols And Formats Mean

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 About this manual What do the symbols and formats mean? > What do the symbols and formats mean? The following symbols or pictograms illustrate the notes in our instructions: WARNING Death or serious irreversible injuries may result.
  • Page 7: How Is This Documentation Structured

    "Know-How" • error codes, EMCY codes: Error tables now in the appendix, chapter 2015-03-10 Available memory Description improved 2017-01-13 Software manual for CODESYS 2.3 hint to download from the ifm homepage removed 2018-07-09 List of the ifm branch offices removed...
  • Page 8: Safety Instructions

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Safety instructions Please note Safety instructions Please note ............................... 8 What previous knowledge is required? ....................8 Start-up behaviour of the controller ......................9 Notes: serial number ..........................9 > Please note...
  • Page 9: Start-Up Behaviour Of The Controller

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Safety instructions Start-up behaviour of the controller > Start-up behaviour of the controller 6827 15233 11575 WARNING Danger due to unintentional and dangerous start of machine or plant sections! ► When creating the program, the programmer must ensure that no unintentional and dangerous start of machines or plant sections after a fault (e.g.
  • Page 10: System Description

    A wide range of accessories is available for the BasicDisplay. Examples: EC0404 Frame for front panel mounting of CR0452 EC0406 RAMmount set for using CR0452 as a desktop unit EC0452 Cable for power supply and CAN between the display and the BasicController when the cover EC0402 is used...
  • Page 11: Hardware Description

    Hardware setup ............................11 Status-LED .............................14 14081 3.2.1 Hardware setup Available memory ...........................12 Colour display of the CR0452 ........................13 Operating elements of CR0452 ......................13 Key LEDs dimmable ..........................13 Connection on the rear panel of the housing ..................13 15269 Protection IP 65...
  • Page 12: Available Memory

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Hardware description > Available memory 13736 > FLASH memory 13053 FLASH memory (non-volatile, slow memory) 1 536 kByte overall existing in the device Thereof the following memory areas are reserved for ...
  • Page 13: Colour Display Of The Cr0452

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Hardware description > Colour display of the CR0452 15258 Designation Data Technology Screen diagonal 4.3" (10.9 cm) Aspect ratio 16:9 Resolution 480 x 272 pixels Colour depth 8 bits = 256 colours via defined colour palette ►...
  • Page 14: Status-Led

     Reload the BasicSystem into the device  Reload the application into the device If without success:  Hardware error: send device to ifm! The status LED can be changed by the programming system for the operating states STOP and RUN. >...
  • Page 15: Interface Description

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Interface description > Interface description CAN interfaces ............................15 14098 3.3.1 CAN interfaces CAN: interfaces and protocols ........................15 14101 Connections and data → data sheet > CAN: interfaces and protocols 15270 15271 The device is equipped with only one CAN interface.
  • Page 16: Software Description

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > Software description Software modules for the device ......................16 Programming notes for CODESYS projects ...................19 Operating states .............................22 Performance limits of the device ......................25 14107 3.4.1 Software modules for the device Bootloader ..............................17...
  • Page 17: Bootloader

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > Bootloader 14111 On delivery ecomatmobile controllers only contain the boot loader. The boot loader is a start program that allows to reload the runtime system and the application program on the device.
  • Page 18: Libraries

    CAN interface of the device is to be operated as CANopen master or CANopen slave ifm_J1939_NT_Vxxyyzz.LIB (optional) when a CAN interface of the device is to communicate with a motor control ifm libraries for the device CR0452 Details: → chapter (→ p. 44)
  • Page 19: Programming Notes For Codesys Projects

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > 3.4.2 Programming notes for CODESYS projects FB, FUN, PRG in CODESYS .........................19 Note the cycle time! ..........................20 Important note to program the device ....................20 Creating application program .........................21 Using ifm maintenance tool ........................22...
  • Page 20 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > Note the cycle time! 8006 For the programmable devices from the controller family ecomatmobile numerous functions are available which enable use of the devices in a wide range of applications.
  • Page 21 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > Creating application program 8007 The application program is generated by the CODESYS 2.3 programming system and loaded in the controller several times during the program development for testing: In CODESYS: [Online] >...
  • Page 22: Operating States

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > Using ifm maintenance tool 8492 Maintenance Tool serves for easy transfer of the program code from the programming station to the controller. As a matter of principle each application software can be copied to the controllers using the Maintenance Tool.
  • Page 23 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > STOP state 8288 A transition into this state is possible in the following cases: • from the INIT state if no application program is loaded. • From the RUN state if the following condition is met: •...
  • Page 24 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > ERROR state 8290 A transition into this state is possible in the following cases: • if the supply voltage is too low. In the ERROR state: >...
  • Page 25: Performance Limits Of The Device

    > the status LED lights red Eliminate the fault:  PowerOn Reset If unsuccessful:  Goto Bootloader  PowerOn Reset  Reload the runtime system into the device  Reload the application program into the device If unsuccessful:  Hardware error: return device to ifm!
  • Page 26 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > Visualisation limits 8337 Embedded displays, used e.g. in ecomatmobile devices, cannot provide the full colour scope of bitmap graphics because the available power reserves are restricted. Nevertheless, the following preparations enable bitmap images in the device: ...
  • Page 27 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > Limitations for visualisations 8319 Designation Limitation Length of character strings < 80 characters Length of path names not relevant Number of visualisation pages < 15 Number of graphical objects per visualisation page <...
  • Page 28 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > CODESYS visualisation elements Bitmap graphics (BMP)  chapter Visualisation limits (→ p. 26) Not all CODESYS functions can be executed successfully on this device: Visualisation element Functional safety for the PDM A polyline is to consist of maximum 5 anchor points;...
  • Page 29 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > Drawing area 15987  The left upper corner marks the home position (0,0) of the virtual and physical drawing area.  Virtual drawing area (X/Y coordinates) = -32768...+32767 (enlarges the physical drawing area) ...
  • Page 30 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > Movement of elements 7392 Image and text elements can be moved on the display in a defined manner. Element movement Description Rotate Rotate the element around a defined pivot point Indicate the angle of rotation ...
  • Page 31 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 System description Software description > Limitations for CANopen in this device 17976 The following limitations of the devices are valid: Device BasicController: CR040n, CR041n, CR043n Criterion BasicDisplay: CR045n PDM360 NG: CR108n, CR120n...
  • Page 32: Configurations

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Configurations Set up the runtime system Configurations Set up the runtime system ........................32 Set up the programming system ......................35 Function configuration in general ......................40 Variables ..............................41 1016 Appendix The device configurations described in the corresponding installation instructions or in the (→...
  • Page 33: Reinstall The Runtime System

    00...99 patch number The basic file name (e.g. "CR0452") and the software version number "xx" (e.g. "01") must always have the same value! Otherwise the device goes to the STOP mode. The values for "yy" (release number) and "zz" (patch number) do not have to match.
  • Page 34: Update The Runtime System

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Configurations Set up the runtime system > 4.1.2 Update the runtime system 13269 An older runtime system is already installed on the device. Now, you would like to update the runtime system on the device?
  • Page 35: Set Up The Programming System

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Configurations Set up the programming system > Set up the programming system Set up the programming system manually .....................35 Set up the programming system via templates ..................39 14461 4.2.1 Set up the programming system manually Set up the target .............................36...
  • Page 36 00...99 patch number The basic file name (e.g. "CR0452") and the software version number "xx" (e.g. "01") must always have the same value! Otherwise the device goes to the STOP mode. The values for "yy" (release number) and "zz" (patch number) do not have to match.
  • Page 37 The PLC configuration is automatically loaded with the target system. The PLC configuration maps the contents of the file CR0452.cfg in CODESYS. Like this, the programmer has easy access to predefined system and error flags, inputs and outputs as well as to the CAN interfaces of the device.
  • Page 38 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Configurations Set up the programming system > CAN declaration (e.g. CR1080) 10080 In the CODESYS PLC configuration you now have to declare the CAN interface(s). ► Right-click on the name of the PLC configuration. [CANopen Interface [FIX]] of the desired CAN interface.
  • Page 39: Set Up The Programming System Via Templates

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Configurations Set up the programming system ► In the menu [File] > [Save as ...] give a sensible name to the project and save it in the requested directory. CANOPEN_ENABLE ► In the application program always call an own instance of the FB (→...
  • Page 40: Function Configuration In General

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Configurations Function configuration in general > Function configuration in general 3971 > 4.3.1 System variables 15576 System flags All system variables (→ chapter (→ p. 188)) have defined addresses which cannot be...
  • Page 41: Variables

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Configurations Variables > Variables Retain variables ............................42 Network variables ...........................43 3130 In this chapter you will learn more about how to handle variables. 14486 The device supports the following types of variables:...
  • Page 42: Retain Variables

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Configurations Variables > 4.4.1 Retain variables 8672 Retain variables can be saved automatically in a protected memory area and be reloaded automatically during a reboot. 14166 Typical applications for retain variables are for example: •...
  • Page 43: Network Variables

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Configurations Variables > 4.4.2 Network variables 15242 9856 Global network variables are used for data exchange between controllers in the network. The values of global network variables are available to all CODESYS projects in the whole network if the variables are contained in their declaration lists.
  • Page 44: Ifm Function Elements

    CR0452 ifm function elements ifm libraries for the device CR0452 ......................44 ifm function elements for the device CR0452..................50 13586 All CODESYS function elements (FBs, PRGs, FUNs) are stored in libraries. Below you will find a list of all the libraries you can use with this device.
  • Page 45: Library Ifm_Cr0452_Vxxyyzz.lib

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm libraries for the device CR0452 > 5.1.2 Library ifm_CR0452_Vxxyyzz.LIB 15284 This is the device library. This library contains the following function blocks: Function element Short description FLASH_INFO (→ p. 159) Reads the information from the user flash memory: •...
  • Page 46: Library Ifm_Cr0452_Init_Vxxyyzz.lib

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm libraries for the device CR0452 > 5.1.3 Library ifm_CR0452_Init_Vxxyyzz.LIB 15286 This library contains the following function blocks: Function element Short description BASICDISPLAY_INIT (→ p. 183) Initialises the screen of the BasicDisplay in the first PLC cycle >...
  • Page 47: Library Ifm_Canopen_Nt_Vxxyyzz.lib

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm libraries for the device CR0452 Function element Short description CAN_TX_ENH (→ p. 71) Transfers a CAN data object (message) to the configured CAN interface for transmission at each...
  • Page 48: Library Ifm_J1939_Nt_Vxxyyzz.lib

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm libraries for the device CR0452 Function element Short description CANOPEN_SDOWRITE (→ p. 105) = SDO write Writes an "Expedited SDO" = Expedited Service Data Object CANOPEN_SDOWRITEBLOCK (→ p. 107)
  • Page 49 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm libraries for the device CR0452 Function element Short description J1939_TX_ENH_MULTI (→ p. 148) = J1939 TX enhanced Multiframe Message Sends individual multiframe messages...
  • Page 50: Ifm Function Elements For The Device Cr0452

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > ifm function elements for the device CR0452 Function element outputs ........................51 Function elements: RAW-CAN (Layer 2) ....................52 Function elements: CANopen ........................80 Function elements: SAE J1939 ......................126...
  • Page 51: Function Element Outputs

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > 5.2.1 Function element outputs 8354 7556 Some function elements return a RESULT message. Possible results for RESULT: Value Description dec | hex FB is inactive 1...31...
  • Page 52: Function Elements: Raw-Can (Layer 2)

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > 5.2.2 Function elements: RAW-CAN (Layer 2) Function elements: RAW-CAN status ....................52 Function elements: receive RAW-CAN data ..................58 Function elements: transmit RAW-CAN data ..................68 Function elements: RAW-CAN remote ....................75...
  • Page 53 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > CAN_ENABLE 7492 Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: > Description 7494 With CAN_ENABLE the CAN hardware is initialised.
  • Page 54 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CAN_RECOVER 7512 Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: > Description 7513 CAN_RECOVER has the following tasks: ...
  • Page 55 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CAN_SETDOWNLOADID 7516 = Set download ID Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 56 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CAN_STATUS 7499 Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: > Description 7501 CAN_STATUS provides information on the chosen CAN bus.
  • Page 57 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7504 Parameter Data type Description BAUDRATE WORD current baudrate of the CANopen node in [kBaud] DOWNLOAD_ID BYTE...
  • Page 58 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: receive RAW-CAN data CAN_RX ..............................59 CAN_RX_ENH ............................60 CAN_RX_ENH_FIFO ..........................62 CAN_RX_RANGE ..........................64 CAN_RX_RANGE_FIFO ........................66 15050...
  • Page 59: Can_Rx

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CAN_RX 7586 Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: > Description 7588 CAN_RX is used for receiving a message.
  • Page 60: Can_Rx_Enh

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CAN_RX_ENH 7606 = CAN RX enhanced Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 61 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7613 Parameter Data type Description MATCHED_ID DWORD number of the data object identifier DATALENGTHCOUNT BYTE = Data Length Count...
  • Page 62: Can_Rx_Enh_Fifo

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CAN_RX_ENH_FIFO 7615 = CAN RX enhanced with FiFo Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 63 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7617 Parameter Data type Description MATCHED_ID DWORD number of the data object identifier DATALENGTHCOUNT BYTE = Data Length Count...
  • Page 64: Can_Rx_Range

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CAN_RX_RANGE 7592 Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: > Description 7594 CAN_RX_RANGE provides the following settings: ...
  • Page 65: Protection Ip

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7598 Parameter Data type Description DWORD Number of the data object identifier: normal frame (2 048 IDs): 0...2 047 = 0x0000 0000...0x0000 07FF...
  • Page 66: Can_Rx_Range_Fifo

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CAN_RX_RANGE_FIFO 7601 = CAN RX range with FiFo Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 67: On The Front Panel When Mounted: Protection Ip

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7604 Parameter Data type Description DWORD Number of the data object identifier: normal frame (2 048 IDs): 0...2 047 = 0x0000 0000...0x0000 07FF...
  • Page 68 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: transmit RAW-CAN data CAN_TX..............................69 CAN_TX_ENH ............................71 CAN_TX_ENH_CYCLIC .........................73 15055...
  • Page 69 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CAN_TX 7522 Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: > Description 7523 CAN_TX sends a standard message per cycle.
  • Page 70 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7527 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 71 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CAN_TX_ENH 7558 = CAN TX enhanced Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 72 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7527 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 73 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CAN_TX_ENH_CYCLIC 7568 = CAN TX enhanced cyclic Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 74 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7510 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 75 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: RAW-CAN remote CAN_REMOTE_REQUEST ........................76 CAN_REMOTE_RESPONSE.........................78 15057...
  • Page 76 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CAN_REMOTE_REQUEST 7625 Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: > Description 7627 In order to request a remote message, an according requirement is dispatched via CAN_REMOTE_REQUEST and the response of the other device is sent back as result.
  • Page 77 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7629 Parameter Data type Description DATALENGTHCOUNT BYTE = Data Length Count number of the data bytes received DATA ARRAY [0..7] OF BYTE...
  • Page 78 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CAN_REMOTE_RESPONSE 7631 Unit type = function block (FB) Unit is contained in the library ifm_RawCAN_NT_Vxxyyzz.LIB Symbol in CODESYS: > Description 7633 CAN_REMOTE_RESPONSE provides data to the CAN controller in the device which is automatically sent upon the request of a remote message.
  • Page 79 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7636 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 80: Function Elements: Canopen

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 5.2.3 Function elements: CANopen Function elements: CANopen status ......................80 Function elements: CANopen network management ................89 Function elements: CANopen object directory ..................93 Function elements: CANopen SDOs ......................98 Function elements: CANopen SYNC ....................111...
  • Page 81 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > CANOPEN_ENABLE 7785 Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: > Description 7787 CANOPEN_ENABLE allows to switch the CANopen master on or off.
  • Page 82 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7789 Parameters Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 83 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_GETBUFFERFLAGS 7890 = Get buffer flags Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 84 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7894 Parameter Data type Description RXOVFL BOOL condition of the RX overflow flag TRUE: overflow in the receive buffer...
  • Page 85 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_GETSTATE 7865 = Get state Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 86 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7869 Parameter Data type Description MASTERSTATE BYTE Master state = internal state of the master: 0 = 0x00 = master starts up...
  • Page 87 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_SETSTATE 7858 = Set state Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 88 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the inputs 7861 Parameter Data type Description EXECUTE BOOL := FALSE FALSE  TRUE (edge): execute function element once otherwise: function element is not active A function element already started is processed.
  • Page 89 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: CANopen network management CANOPEN_GETNMTSTATESLAVE .....................90 CANOPEN_NMTSERVICES ........................91 15063...
  • Page 90 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_GETNMTSTATESLAVE 7851 = Get network management state slave Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 91 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_NMTSERVICES 7843 = Network management services Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 92 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7848 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 93 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: CANopen object directory CANOPEN_GETODCHANGEDFLAG ....................94 CANOPEN_READOBJECTDICT ......................95 CANOPEN_WRITEOBJECTDICT ......................96 15065...
  • Page 94 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_GETODCHANGEDFLAG 7927 = Get object directory changed flag Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 95 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_READOBJECTDICT 7933 = Read object directory Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 96 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_WRITEOBJECTDICT 7940 = Write object directory Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 97 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7945 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 98 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: CANopen SDOs CANOPEN_SDOREAD ..........................99 CANOPEN_SDOREADBLOCK ......................101 CANOPEN_SDOREADMULTI ......................103 CANOPEN_SDOWRITE ........................105 CANOPEN_SDOWRITEBLOCK ......................107 CANOPEN_SDOWRITEMULTI ......................109 2071 Here you will find function elements for CANopen handling of Service Data Objects (SDOs).
  • Page 99: Canopen_Sdoread

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_SDOREAD 7791 = SDO read Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 100 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7795 Parameter Data type Description BYTE number of the bytes received (1...4) DATA DWORD the received data value (up to 4 bytes)
  • Page 101: Canopen_Sdoreadblock

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_SDOREADBLOCK 14942 = SDO Read Block Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 102 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the inputs 14945 Parameter Data type Description EXECUTE BOOL := FALSE FALSE  TRUE (edge): execute function element once otherwise: function element is not active A function element already started is processed.
  • Page 103: Canopen_Sdoreadmulti

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > CANOPEN_SDOREADMULTI 7806 = SDO read multi Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 104 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7810 Parameter Data type Description DWORD number of the bytes received permissible values = 1...2 048 = 0x0000 0001...0x0000 0800 DATA ARRAY [0..SDOMAXDATA] OF...
  • Page 105: Canopen_Sdowrite

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_SDOWRITE 7825 = SDO write Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 106 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7829 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 107: Canopen_Sdowriteblock

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_SDOWRITEBLOCK 14961 = SDO Write Block Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 108 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the inputs 14964 Parameter Data type Description EXECUTE BOOL := FALSE FALSE  TRUE (edge): execute function element once otherwise: function element is not active A function element already started is processed.
  • Page 109: Canopen_Sdowritemulti

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_SDOWRITEMULTI 7832 = SDO write multi Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 110 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7836 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 111 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: CANopen SYNC CANOPEN_GETSYNCSTATE ......................112 CANOPEN_SETSYNCSTATE ......................114 15069...
  • Page 112 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_GETSYNCSTATE 7871 = Get SYNC state Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 113 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7875 Parameter Data type Description SYNC BOOL status of the SYNC functionality TRUE: SYNC is activated: In the master mode SYNC telegrams are generated according to the settings in the configuration, and synchronous PDOs are transmitted and received.
  • Page 114 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_SETSYNCSTATE 7883 = Set SYNC state Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 115 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: CANopen guarding CANOPEN_GETGUARDHBERRLIST ....................116 CANOPEN_GETGUARDHBSTATSLV ....................117 15071...
  • Page 116 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_GETGUARDHBERRLIST 7896 = Get guard and heartbeat error list Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 117 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_GETGUARDHBSTATSLV 7902 = Get guard and heartbeat state slave Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 118 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7906 Parameter Data type Description GUARDSTATE BYTE Status of node guarding: 0 = 0x00 = no error (or: not active)
  • Page 119 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: CANopen emergency CANOPEN_GETEMCYMESSAGES ....................120 CANOPEN_GETERRORREGISTER ....................122 CANOPEN_SENDEMCYMESSAGE ....................124 15073...
  • Page 120 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_GETEMCYMESSAGES 7921 = Get emergency messages Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 121 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7925 Parameter Data type Description N_MSGS DWORD Number of accumulated messages EMCY ARRAY [0..MAXEMCYMSGS] Emergency messages OF T_EMCY The most recent entry is in index 0.
  • Page 122 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_GETERRORREGISTER 7915 = Get error register Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 123 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7919 Parameter Data type Description BYTE Content of the error register 0x1001 ERROR_FIELD ARRAY [0..MAXERR] OF Content of the error register 0x1003...
  • Page 124 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 CANOPEN_SENDEMCYMESSAGE 7908 = Send emergency message Unit type = function block (FB) Unit is contained in the library ifm_CANopen_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 125 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7912 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 126: Function Elements: Sae J1939

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 5.2.4 Function elements: SAE J1939 Function elements: SAE J1939 status ....................126 Function elements: SAE J1939 request ....................134 Function elements: receive SAE J1939 ....................137 Function elements: transmit SAE J1939 ....................142...
  • Page 127 A different baud rate is only adopted if CAN_ENABLE has not been activated before. ACE = Address Claiming Enable:  If an ifm controller communicates with only one engine controller via J1939: set ACE = FALSE.  If however several engine controllers are working on the same bus: set ACE = TRUE.
  • Page 128 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 8542 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 129 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_GETDABYNAME 7664 = get destination arbitrary name Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 130 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the inputs 7667 Parameter Data type Description ENABLE BOOL TRUE: execute this function element FALSE: unit is not executed >...
  • Page 131 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_NAME 7646 Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: > Description 7648 Via J1939_NAME, the device can be given a name for identification in the network.
  • Page 132 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the inputs 7652 Parameter Data type Description ENABLE BOOL := FALSE TRUE: Any desired address available FALSE: Fixed address...
  • Page 133 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_STATUS 7670 Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: > Description 7672 Via J1939_STATUS, relevant information can be read back to the J1939 stack.
  • Page 134 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: SAE J1939 request J1939_SPEC_REQ ..........................135 J1939_SPEC_REQ_MULTI .........................136 15079...
  • Page 135 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_SPEC_REQ 15023 = J1939 Specific Request Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 136 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_SPEC_REQ_MULTI 15033 = J1939 Specific Request Multiframe Message Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 137 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: receive SAE J1939 J1939_RX .............................138 J1939_RX_FIFO ...........................139 J1939_RX_MULTI ..........................141 15081...
  • Page 138 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_RX 7724 Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: > Description 7725 J1939_RX is the easiest method for receiving single frame messages. The message read last on the CAN bus is returned.
  • Page 139 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_RX_FIFO 7732 = J1939 RX with FIFO Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 140 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7735 Parameter Data type Description BYTE Source address of the transmitter PRIO BYTE message priority (0…7) BYTE number of the bytes received (0...8)
  • Page 141 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_RX_MULTI 7736 = J1939 RX multiframe message Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 142 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: transmit SAE J1939 J1939_TX .............................143 J1939_TX_ENH ............................144 J1939_TX_ENH_CYCLIC ........................146 J1939_TX_ENH_MULTI ........................148 15083...
  • Page 143 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_TX 7688 Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: > Description 7689 J1939_TX is the easiest method for transmitting single frame messages.
  • Page 144 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_TX_ENH 7696 = J1939 TX enhanced Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 145 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7969 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 146 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_TX_ENH_CYCLIC 7716 = J1939 TX enhanced cyclic Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 147 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7720 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 148 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_TX_ENH_MULTI 7699 = J1939 TX enhanced multiframe message Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 149 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7714 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 150 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: SAE J1939 diagnosis J1939_DM1RX .............................151 J1939_DM1TX ............................153 J1939_DM1TX_CFG ..........................156 J1939_DM3TX ............................157 15085...
  • Page 151: J1939_Dm1Rx

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_DM1RX 14977 = J1939 Diagnostic Message 1 RX Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 152 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 14980 Parameter Data type Description REDSTOPLAMP BOOL red stop lamp (for older projects only) TRUE: FALSE: AMBERWARNINGLAMP...
  • Page 153: J1939_Dm1Tx

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_DM1TX 14993 = J1939 Diagnostic Message 1 TX Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 154 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the inputs 14995 Parameter Data type Description EXECUTE BOOL := FALSE FALSE  TRUE (edge): execute function element once otherwise: function element is not active A function element already started is processed.
  • Page 155 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 7750 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 156: J1939_Dm1Tx_Cfg

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_DM1TX_CFG 15424 = J1939 Diagnostic Message 1 TX configurable Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_V02.00.02.LIB or higher Symbol in CODESYS: >...
  • Page 157: J1939_Dm3Tx

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 J1939_DM3TX 15002 = J1939 Diagnostic Message 3 TX Unit type = function block (FB) Unit is contained in the library ifm_J1939_NT_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 158: Function Elements: System

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 5.2.5 Function elements: system FLASH_INFO ............................159 FLASH_READ ............................160 GET_APP_INFO ..........................161 GET_HW_INFO ............................162 GET_IDENTITY ............................163 GET_SW_INFO ............................164 GET_SW_VERSION ..........................165 MEM_ERROR ............................166 MEMCPY ..............................167 OHC ..............................169...
  • Page 159: Flash_Info

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 FLASH_INFO 11580 Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: > Description 11588 FLASH_INFO reads the information from the user flash memory: •...
  • Page 160: Flash_Read

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 FLASH_READ 8147 Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: > Description 11579 FLASH_READ enables reading of different types of data directly from the flash memory.
  • Page 161: Get_App_Info

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 GET_APP_INFO 11581 = get application information Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 162: Get_Hw_Info

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 GET_HW_INFO 11582 = get hardware information Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 163: Get_Identity

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 GET_IDENTITY 8166 Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: > Description 15411 GET_IDENTITY reads the identification stored in the device (has previously been saved by means of SET_IDENTITY (→...
  • Page 164: Get_Sw_Info

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 GET_SW_INFO 11583 = get software information Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 165: Get_Sw_Version

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 GET_SW_VERSION 14763 = get software version Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 166: Mem_Error

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 MEM_ERROR 14770 = Memory Error Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 167: Memcpy

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 MEMCPY 8160 = memory copy Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 168 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 8163 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 169: Ohc

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 14777 = Operating Hours Counter Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: >...
  • Page 170 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 14780 Parameter Data type Description HOURS DWORD Counter value hours (0...4 294 967 295 = 0x0000 0000...0xFFFF FFFF)
  • Page 171: Set_Identity

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 SET_IDENTITY 8174 Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: > Description 8535 SET_IDENTITY sets an application-specific program identification.
  • Page 172: Set_Led

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 SET_LED 8052 Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: > Description 8054 Via SET_LED frequency and color of the status LED can be changed in the application program.
  • Page 173 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the outputs 8227 Parameter Data type Description RESULT BYTE feedback of the function block (possible messages → following table)
  • Page 174: Set_Password

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 SET_PASSWORD 8178 Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: > Description 8179 SET_PASSWORD sets a user password for program and memory upload via the maintenance tool.
  • Page 175: Timer_Read_Us

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 TIMER_READ_US 8219 Unit type = function block (FB) Unit is contained in the library ifm_CR0452_Vxxyyzz.LIB Symbol in CODESYS: > Description TIMER_READ_US reads the current system time in [µs].
  • Page 176: Function Elements: Graphics

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 5.2.6 Function elements: graphics Function elements: graphics help ......................176 Function elements: graphical visualisation ...................182 15294 Function elements: graphics help GET_TEXT_FROM_FLASH .........................177 NORM_DINT ............................179 NORM_REAL ............................180...
  • Page 177 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 GET_TEXT_FROM_FLASH 3196 Unit type = function block (FB) Unit is contained in the library ifm_PDMsmart_UTIL_Vxxyyzz.Lib Symbol in CODESYS: > Description 11651 FLASH_READ GET_TEXT_FROM_FLASH controls (→...
  • Page 178 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the inputs 3302 Parameter Data type Description ENABLE BOOL TRUE: execute this function element FALSE: unit is not executed >...
  • Page 179 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 NORM_DINT 13240 Unit type = function block (FB) Unit is contained in the library ifm_PDMsmart_UTIL_Vxxyyzz.LIB Symbol in CODESYS: > Description 3307 NORM_DINT normalises a value within defined limits to a value with new limits.
  • Page 180 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 NORM_REAL 13244 Unit type = function block (FB) Unit is contained in the library ifm_PDMsmart_UTIL_Vxxyyzz.LIB Symbol in CODESYS: > Description 3310 NORM_REAL normalises a value within defined limits to a value with new limits.
  • Page 181 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 TOGGLE 13248 Unit type = function block (FB) Unit is contained in the library ifm_PDMsmart_UTIL_Vxxyyzz.LIB Symbol in CODESYS: > Description 3304 TOGGLE enables the setting and resetting of a Boolean variable via only one input bit.
  • Page 182 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 Function elements: graphical visualisation BASICDISPLAY_INIT ...........................183 PDM_PAGECONTROL ........................184 15298 Here you will find function elements for the following purposes: • initialise device screen...
  • Page 183 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 BASICDISPLAY_INIT 9310 Unit type = function (FUN) of type BOOL Unit is contained in the library ifm_CRRnnnn_Init_Vxxyyzz.LIB Symbol in CODESYS: > Description 9312 The function BASICDISPLAY_INIT initialises the screen of the BasicDisplay in the first PLC cycle.
  • Page 184 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > PDM_PAGECONTROL 3186 Unit type = program (PRG) Unit is contained in the library available for the following devices: • PDM360: CR1050, CR1051 ifm_PDM_UTIL_Vxxyyzz.LIB...
  • Page 185 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 ifm function elements ifm function elements for the device CR0452 > Parameters of the inputs 3293 Parameter Data type Description INIT BOOL TRUE (only for 1 cycle): Display is initialised with the initisalisation indicated in INIT_PAGE.
  • Page 186: Diagnosis And Error Handling

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Diagnosis and error handling Diagnosis Diagnosis and error handling Diagnosis ..............................186 Fault ..............................186 Response to system errors........................187 CAN / CANopen: errors and error handling..................187 19598 The runtime-system (RTS) checks the device by internal error checks: •...
  • Page 187: Response To System Errors

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Diagnosis and error handling Response to system errors > Response to system errors 8504 In principle, the programmer is responsible to react to the error messages in the application program. An error description is provided via the error message.
  • Page 188: Appendix

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Appendix System flags Appendix System flags ............................188 Error tables ............................190 1664 Additionally to the indications in the data sheets you find summary tables in the appendix. > System flags 15309 The addresses of the system flags can change if the PLC configuration is extended.
  • Page 189 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Appendix System flags System flags (symbol name) Type Description FT_DOWN BOOL pulse: navigation key [] released FT_LEFT BOOL pulse: navigation key [] released FT_RIGHT BOOL pulse: navigation key [] released FT_OK BOOL...
  • Page 190: Error Tables

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Appendix Error tables > Error tables Error flags .............................190 Errors: CAN / CANopen ........................190 19606 > 7.2.1 Error flags 19608 → chapter System flags (→ p. 188) > 7.2.2 Errors: CAN / CANopen...
  • Page 191: Terms And Abbreviations

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations Terms and abbreviations Address This is the "name" of the bus participant. All participants need a unique address so that the signals can be exchanged without problem. > Application software...
  • Page 192 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations > CiA = CAN in Automation e.V. User and manufacturer organisation in Germany / Erlangen. Definition and control body for CAN and CAN-based network protocols. Homepage → www.can-cia.org >...
  • Page 193 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations > COB ID COB = Communication Object ID = Identifier ID of a CANopen communication object Corresponds to the identifier of the CAN message with which the communication project is sent via the CAN bus.
  • Page 194 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations > Data type Depending on the data type, values of different sizes can be stored. Data type min. value max. value size in the memory BOOL FALSE TRUE 8 bits = 1 byte...
  • Page 195 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations > DRAM DRAM = Dynamic Random Access Memory. Technology for an electronic memory module with random access (Random Access Memory, RAM). The memory element is a capacitor which is either charged or discharged. It becomes accessible via a switching transistor and is either read or overwritten with new contents.
  • Page 196 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations > EUC = Equipment Under Control. EUC is equipment, machinery, apparatus or plant used for manufacturing, process, transportation, medical or other activities (→ IEC 61508-4, section 3.2.3). Therefore, the EUC is the set of all equipment, machinery, apparatus or plant that gives rise to hazards for which the safety-related system is required.
  • Page 197 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations > ID = Identifier Name to differentiate the devices / participants connected to a system or the message packets transmitted between the participants. > IEC 61131 Standard: Basics of programmable logic controllers •...
  • Page 198 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations > ISO 16845 Standard: Road vehicles – Controller area network (CAN) – Conformance test plan > J1939 → SAE J1939 > LED = Light Emitting Diode. Light emitting diode, also called luminescent diode, an electronic element of high coloured luminosity at small volume with negligible power loss.
  • Page 199 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations > MRAM MRAM = Magnetoresistive Random Access Memory The information is stored by means of magnetic storage elements. The property of certain materials is used to change their electrical resistance when exposed to magnetic fields.
  • Page 200 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations > Operational Operating state of a CANopen participant. In this mode →SDOs, →NMT commands and →PDOs can be transferred. > PC card →PCMCIA card > PCMCIA card PCMCIA = Personal Computer Memory Card International Association, a standard for expansion cards of mobile computers.
  • Page 201 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations > Pictogram Pictograms are figurative symbols which convey information by a simplified graphic representation. What do the symbols and formats mean? (→ chapter (→ p. 6)) > PID controller The PID controller (proportional–integral–derivative controller) consists of the following parts:...
  • Page 202 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations > RAW-CAN RAW-CAN means the pure CAN protocol which works without an additional communication protocol on the CAN bus (on ISO/OSI layer 2). The CAN protocol is international defined according to ISO 11898-1 and garantees in ISO 16845 the interchangeability of CAN chips in addition.
  • Page 203 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations > SD card An SD memory card (short for Secure Digital Memory Card) is a digital storage medium that operates to the principle of →flash storage. > SDO = Service Data Object.
  • Page 204 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Terms and abbreviations > Template A template can be filled with content. Here: A structure of pre-configured software elements as basis for an application program. > UDP (User Datagram Protocol) is a minimal connectionless network protocol which belongs to the transport layer of the internet protocol family.
  • Page 205: Index

    BASICDISPLAY_INIT ................183 CODESYS ................... 193 Baud ..................... 191 CODESYS visualisation elements ............28 Boot loader ..................191 Colour display of the CR0452..............13 Bootloader....................17 Configurations ..................32 Bus ....................... 191 Connection on the rear panel of the housing ........13 Control the LED in the application program ..........
  • Page 206 Misuse ....................198 IEC user cycle ..................197 MMI ...................... 198 ifm function elements ................44 Movement of elements ................30 ifm function elements for the device CR0452 ........50 MRAM ....................199 ifm libraries for the device CR0452 ............44...
  • Page 207 Set up the programming system manually ..........35 OPC ..................... 199 Set up the programming system via templates ........39 Operating elements of CR0452 ............. 13 Set up the runtime system ..............32 Set up the target ..................36 Operating states ..................22 SET_IDENTITY ...................
  • Page 208 Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Index Watchdog behaviour ................25 What do the symbols and formats mean? ..........6 What previous knowledge is required? ........... 8...
  • Page 209: Notizen • Notes • Notes

    Programming Manual BasicDisplay CR0452 v03.02 05 / 2018 Notizen • Notes • Notes Error tables Notizen • Notes • Notes...

Table of Contents