programming manual (supplement) can module rtc cr30200x380 + node id dlc = 6 byte 0 = remaining time...

54
1 Programming Manual (Supplement) CAN Module Real Time Clock (RTC) CR3020 V02 CODESYS ® > V2.3.9.33 English 7391087_02_UK 2020-11

Upload: others

Post on 02-Dec-2020

22 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

1

Programming Manual (Supplement) CAN Module Real Time Clock (RTC)

CR3020

V02

CODESYS® > V2.3.9.33

English

7391

087_02_

UK

2

020

-11

Page 2: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

2

ifm Programming Manual (supplement) CAN module RTC CR3020

Contents

Contents

1 About this manual 3

1.1 Copyright .............................................................................................................................. 3 1.2 What do the symbols and formats mean? ........................................................................... 4 1.3 How is this documentation structured? ................................................................................ 5

2 System description 6

2.1 Information about the device ................................................................................................ 6 2.2 Overview of functions ........................................................................................................... 6 2.3 Hardware description ........................................................................................................... 7 2.4 Interface description ............................................................................................................. 8

2.4.1 CAN interfaces ............................................................................................................................. 8

2.5 Software description ............................................................................................................ 9 2.5.1 CAN messages via COB-ID and node ID ..................................................................................... 9

3 ifm function elements 12

3.1 ifm libraries for the device CRnnnn ....................................................................................12 3.1.1 Library ifm_RTC_Basic_V02yyzz.LIB ......................................................................................... 123.1.2 Library ifm_RTC_Classicx_V02yyzz.LIB .................................................................................... 13

3.2 ifm functional elements, POUs (Basic) ..............................................................................14 3.2.1 CONCAT_DATE_TIME .............................................................................................................. 153.2.2 RTC_INITIALIZE ........................................................................................................................ 163.2.3 RTC_SET ................................................................................................................................... 173.2.4 RTC_REQUEST ......................................................................................................................... 193.2.5 RTC_SET_ALARM ..................................................................................................................... 213.2.6 RTC_REQUEST_ALARM .......................................................................................................... 23

3.3 ifm functional elements, POUs (Classic) ...........................................................................25 3.3.1 CONCAT_DATE_TIME .............................................................................................................. 263.3.2 RTC_INITIALIZE ........................................................................................................................ 273.3.3 RTC_SET ................................................................................................................................... 293.3.4 RTC_REQUEST ......................................................................................................................... 313.3.5 RTC_SET_ALARM ..................................................................................................................... 333.3.6 RTC_REQUEST_ALARM .......................................................................................................... 35

4 Glossary of Terms 37

5 Index 50

6 Notizen • Notes • Notes 52

Page 3: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

3

ifm Programming Manual (supplement) CAN module RTC CR3020 About this manual Copyright

1 About this manual

Copyright ............................................................................................................................................... 3 What do the symbols and formats mean? ............................................................................................. 4 How is this documentation structured? ................................................................................................. 5

202

>

1.1 Copyright 6088

© All rights reserved by ifm electronic gmbh. No part of this manual may be reproduced and used without the consent of ifm electronic gmbh.

All product names, pictures, companies or other brands used on our pages are the property of the respective rights owners: • AS-i is the property of the AS-International Association, (→ www.as-interface.net)• CAN is the property of the CiA (CAN in Automation e.V.), Germany (→ www.can-cia.org)• CODESYS™ is the property of the 3S – Smart Software Solutions GmbH, Germany (→ www.codesys.com)• DeviceNet™ is the property of the ODVA™ (Open DeviceNet Vendor Association), USA (→ www.odva.org)• EtherNet/IP® is the property of the →ODVA™• EtherCAT® is a registered trade mark and patented technology, licensed by Beckhoff Automation GmbH, Germany• IO-Link® (→ www.io-link.com) is the property of the →PROFIBUS Nutzerorganisation e.V., Germany• ISOBUS is the property of the AEF – Agricultural Industry Electronics Foundation e.V., Deutschland

(→ www.aef-online.org)• Microsoft® is the property of the Microsoft Corporation, USA (→ www.microsoft.com)• PROFIBUS® is the property of the PROFIBUS Nutzerorganisation e.V., Germany (→ www.profibus.com)• PROFINET® is the property of the →PROFIBUS Nutzerorganisation e.V., Germany• Windows® is the property of the →Microsoft Corporation, USA

Page 4: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

4

ifm Programming Manual (supplement) CAN module RTC CR3020

About this manual

What do the symbols and formats mean?

>

1.2 What do the symbols and formats mean? 203

The following symbols or pictograms illustrate the notes in our instructions:

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 Supplementary note

► ... Request for action

> ... Reaction, result

→ ... "see"

abc Cross-reference

123 0x123 0b010

Decimal number Hexadecimal number Binary number

[...] Designation of pushbuttons, buttons or indications

Page 5: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

5

ifm Programming Manual (supplement) CAN module RTC CR3020

About this manual

How is this documentation structured?

>

1.3 How is this documentation structured? 204

1508

This documentation is a combination of different types of manuals. It is for beginners and also a reference for advanced users. This document is addressed to the programmers of the applications.

How to use this manual:

Refer to the table of contents to select a specific subject.

Using the index you can also quickly find a term you are looking for.

At the beginning of a chapter we will give you a brief overview of its contents.

Abbreviations and technical terms → Appendix.

In case of malfunctions or uncertainties please contact the manufacturer at: Contact → ifm weltweit • ifm worldwide • ifm à l’échelle internationale (→ p. 55)

We want to become even better! Each separate section has an identification number in the top right corner. If you want to inform us about any inconsistencies, indicate this number with the title and the language of this documentation. Thank you very much for your support!

We reserve the right to make alterations which can result in a change of contents of the documentation. You can find the current version on ifm's website: → ifm weltweit • ifm worldwide • ifm à l’échelle internationale (→ p. 55)

>

Page 6: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

6

ifm Programming Manual (supplement) CAN module RTC CR3020

System description

Information about the device

2 System description

Information about the device ................................................................................................................. 6 Overview of functions ............................................................................................................................ 6 Hardware description............................................................................................................................. 7 Interface description .............................................................................................................................. 8 Software description .............................................................................................................................. 9

975 >

2.1 Information about the device 21798

This manual describes of the ecomatmobile family for mobile machines of ifm electronic gmbh:

Real-time clock (RTC) CR3020>

2.2 Overview of functions 21808

Only ONE real-time clock may be installed in each project!

The real-time clock (RTC) offers the following functions:

• Initialisation of the real-time clock

• Setting of time and date:Calendar day, month, year, hour, minute day of the week

• Setting of date for the alarm output:days, hours minutes (max. 7 days, 23 hours, 59 minutes)

• Requesting current time and current date:calendar day, month, year, hour, minute, day of the week, battery charging status

• Requesting the remaining time till the set alarm:days, hours, minutes

The real-time clock can be configured and consulted in various ways:

in conjunction with a controller from ifm-ecomatmobile

this is what POUs in a CODESYS library are there for→ chapter Functional elements from ifm (→ p. 12)

in conjunction with a controller that is not from ifm

for this CAN messages via COB-ID and node ID are used→ chapter CAN messages via COB-ID and node ID (→ p. 9)

Page 7: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

7

ifm Programming Manual (supplement) CAN module RTC CR3020

System description

Hardware

description

>

2.3 Hardware description 21800

The CR3020 module is a real-time clock (RTC) for CAN systems.

Housing

Automotive relay housing

Connections

CAN Layer 2

Voltage supply

1 binary output

for automotive relay bases

Details → Data sheet

Page 8: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

8

ifm Programming Manual (supplement) CAN module RTC CR3020 System description Interface description

>

2.4 Interface description

CAN interfaces ...................................................................................................................................... 8 14098

>

2.4.1 CAN interfaces

CAN: Interfaces and protocols .............................................................................................................. 8 14101

Connections and data → data sheet

>

CAN: Interfaces and protocols 21803 21804

The device is equipped with one CAN interface only. The interface can generally be used in combination with the following functions: • RAW-CAN (Layer 2): CAN at level 2

Page 9: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

9

ifm Programming Manual (supplement) CAN module RTC CR3020 System description Software description

>

2.5 Software description

CAN messages via COB-ID and node ID.............................................................................................. 9 21807

► The CODESYS libraries of version 2 are absolutely required.>

2.5.1 CAN messages via COB-ID and node ID

Initialise real-time clock (RTC) .............................................................................................................. 9 Define time and date ........................................................................................................................... 10 Request time and date ........................................................................................................................ 10 Define alarm date ................................................................................................................................ 11 Request the remaining time till the alarm ............................................................................................ 11

21810

Choose this method if you do not configure or consult the real-time clock with an ifm controller (RTC). >

Initialise real-time clock (RTC) 21811

This must be the first communication with the real-time clock (RTC)!

RTC_INITIALIZE Initialise the real-time clock (RTC) in the CAN system:

Message to the real-time clock:

COB ID Message Notes

0x7FF DLC = 0 no data bytes available at DLC=0

Response of the real-time clock:

COB ID Message Notes

0x7FE DLC = 1 Byte 0 = distinct node ID

---

Page 10: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

10

ifm Programming Manual (supplement) CAN module RTC CR3020 System description Software description

>

Define time and date 21812

RTC_SET Set the real-time clock to the current time and the current date:

Message to the real-time clock:

COB ID Message Notes

0x300 + node ID DLC = 6 Byte 0 = calendar day Byte 1 = month Byte 2 = year Byte 3 = hour Byte 4 = minute Byte 5 = day of the week

---

The real-time clock sets the internal value for second to zero.

Response of the real-time clock:

COB ID Message Notes

0x280 + node ID DLC = 6 Byte 0 = calendar day Byte 1 = month Byte 2 = year Byte 3 = hour Byte 4 = minute Byte 5 = day of the week

---

>

Request time and date 21815

RTC_REQUEST Request the current time and the current date:

Message to the real-time clock:

COB ID Message Notes

0x200 + node ID DLC = 0 no data bytes available at DLC=0

Response of the real-time clock:

COB ID Message Notes

0x180 + node ID DLC = 8 Byte 0 = calendar day Byte 1 = month Byte 2 = year Byte 3 = hour Byte 4 = minute Byte 5 = seconds Byte 6 = day of the week Byte 7 = battery charging level

Battery charging level 0 = sufficient 1 = too low

Page 11: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

11

ifm Programming Manual (supplement) CAN module RTC CR3020 System description Software description

>

Define alarm date 21813

RTC_SET_ALARM Define the date on which the alarm output of the real-time clock (RTC) is to be set: (max. target time till the alarm: 7 days, 23 hours, 59 minutes)

Message to the real-time clock:

COB ID Message Notes

0x500 + node ID DLC = 6 Byte 0 = target time till the alarm: days (max. 7) Byte 1 = target time till the alarm: hours (max. 23) Byte 2 = target time till the alarm: minutes (max. 59) Byte 3 = (new) node ID Byte 4 = (new) node ID Byte 5 = (new) baud rate

If required: change the node ID of the real-time clock: max. value = 0x3F

byte 5 = 02 baud rate = 500 kBd byte 5 = 03 baud rate = 250 kBd byte 5 = 04 baud rate = 125 kBd

The real-time clock (RTC) sets the internal value for the second to zero.

Response of the real-time clock:

COB ID Message Notes

0x480 + node ID DLC = 6 Byte 0 = target time till the alarm: days Byte 1 = target time till the alarm: hours Byte 2 = target time till the alarm: minutes Byte 3 = (new) node ID Byte 4 = (new) node ID Byte 5 = (new) baud rate

---

>

Request the remaining time till the alarm 21816

RTC_REQUEST_ALARM Request the remaining time till the setting of the alarm output:

Message to the real-time clock:

COB ID Message Notes

0x400 + node ID DLC = 0 no data bytes available at DLC=0

Response of the real-time clock:

COB ID Message Notes

0x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte 3 = node ID Byte 4 = node ID Byte 5 = (new) baud rate

Byte 5 = 02 baud rate = 500 kBd Byte 5 = 03 baud rate = 250 kBd Byte 5 = 04 baud rate = 125 kBd

>

► If the alarm is to be reset earlier:set the delay time for the setting of the alarm output to zero with this function block.

10 seconds after the start of the alarm output, the real-time clock automatically resets the alarmoutput.

Page 12: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

12

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm libraries for the device CRnnnn

3 ifm function elements

ifm libraries for the device CRnnnn ..................................................................................................... 12 ifm functional elements, POUs (Basic) ................................................................................................ 14 ifm functional elements, POUs (Classic) ............................................................................................. 25

13586

All CODESYS function elements (FBs, PRGs, FUNs) are stored in libraries. Below you will find a list of all the ifm libraries you can use with this device.

This is followed by a description of the function elements, sorted by topic. >

3.1 ifm libraries for the device CRnnnn

Library ifm_RTC_Basic_V02yyzz.LIB ................................................................................................. 12 Library ifm_RTC_Classicx_V02yyzz.LIB ............................................................................................. 13

14235 >

3.1.1 Library ifm_RTC_Basic_V02yyzz.LIB 21827

Only ONE real-time clock may be installed in each project!

The POUs of this library are designed for the following ifm devices: • BasicController: CR040n, CR041n, CR043n• BasicDisplay: CR045n• SmartController: CR253n

This ifm library contains the following function blocks:

Function element Short description

CONCAT_DATE_TIME (→ p. 14) converts the received data that describe the time and the date from bytes into coherent strings

RTC_INITIALIZE (→ p. 16) initialises the connection between the controller and the real-time clock

RTC_REQUEST (→ p. 19) initialises the connection between the controller and the real-time clock

RTC_REQUEST_ALARM (→ p. 23) asks the real-time clock about the following current values: • the remaining time till the setting of the alarm output • the current node ID

RTC_SET (→ p. 17) Set new time, date and day of the week of the real-time clock

RTC_SET_ALARM (→ p. 21) configures the delay after which the real-time clock sets the alarm output

Page 13: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

13

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm libraries for the device CRnnnn

>

3.1.2 Library ifm_RTC_Classicx_V02yyzz.LIB 21828

x = 1...4 = number of the CAN interface (depending on the device, → data sheet)

Only ONE real-time clock may be installed in each project!

The POUs of this library are designed for the following ifm devices: • ClassicController: CR00nn, CR05nn• CabinetController: CR03nn• ExtendedController: CR01nn, CR02nn• SmartController: CR250n• SafetyController: CR7nnn• PDMsmart: CR107n

This ifm library contains the following function blocks:

Function element Short description

CONCAT_DATE_TIME (→ p. 14) converts the received data that describe the time and the date from bytes into coherent strings

RTC_INITIALIZE (→ p. 27) initialises the connection between the controller and the real-time clock

RTC_REQUEST (→ p. 31) initialises the connection between the controller and the real-time clock

RTC_REQUEST_ALARM (→ p. 35) asks the real-time clock about the following current values: • the remaining time till the setting of the alarm output • the current node ID

RTC_SET (→ p. 29) Set new time, date and day of the week of the real-time clock

RTC_SET_ALARM (→ p. 33) configures the delay after which the real-time clock sets the alarm output

Page 14: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

14

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Basic)

>

3.2 ifm functional elements, POUs (Basic)

CONCAT_DATE_TIME ....................................................................................................................... 14 RTC_INITIALIZE ................................................................................................................................. 16 RTC_SET ............................................................................................................................................ 17 RTC_REQUEST .................................................................................................................................. 19 RTC_SET_ALARM .............................................................................................................................. 21 RTC_REQUEST_ALARM ................................................................................................................... 23

21831

The POUs of this library are designed for the following ifm devices: • BasicController: CR040n, CR041n, CR043n• BasicDisplay: CR045n• SmartController: CR253n

Here you find the description of the adequate ifm function elements for these devices. >

Page 15: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

15

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Basic)

3.2.1 CONCAT_DATE_TIME 21834

Unit type = function block (FB)

Unit is contained in the library ifm_RTC_Basic_V01yyzz.LIB, ifm_RTC_Classicx_V01yyzz.LIB

(x = 1...n = number of the CAN interface (depending on the device, → data sheet))

Symbol in CODESYS:

>

Description 21837

The CONCAT_DATE_TIME function block converts the received data that describes the time and the date from bytes into coherent strings.

► Transfer the current bytes as input parameters to the POU.

> The POU provides the values as follows:• The date as a distinct character string (e.g.: '13.06.2016)• The time as a distinct character string (e.g.: 14:48:20)• Date and time in DT format (e.g.: 'DT#2016-06-13-14:48:20).

>

Parameters of the inputs 21838

Parameter Data type Description

CurrentDay BYTE current calendar entry (as part of the date) Example for 13 June 2016: CurrentDay = 13

CurrentMonth BYTE current month (as part of the date) Example for 13 June 2016: CurrentMonth = 6

CurrentYear BYTE current year (as part of the date) Example for 13 June 2016: CurrentYear = 16

CurrentHour BYTE current hour (as part of the time) Example for 14:48:20: CurrentHour = 14

CurrentMinute BYTE current minute (as part of the time) Example for 14:48:20: CurrentMinute = 48

>

Parameters of the outputs 21842

Parameter Data type Description

CurrentDate STRING(10) current date Example for 13 June 2016: CurrentDate = '13.06.2016'

CurrentTime STRING(8) current time Example for 14:48:20: CurrentTime = '14:48:20'

CurrentDT STRING(22) current date + time in DT format Example for 13 June 2016 14:48:20: CurrentDT = 'DT#2016-06-13-14:48:20'

Page 16: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

16

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Basic)

>

3.2.2 RTC_INITIALIZE 21847

Unit type = function block (FB)

Unit is contained in the library ifm_RTC_Basic_V01yyzz.LIB

Symbol in CODESYS:

>

Description 21849 22111

This must be the first communication with the real-time clock!

RTC_INITIALIZE initialises the connection between the controller and the real-time clock. Without this POU, no connection between the controller and the real-time clock is established.

With the COB-ID 0x7FFT, the controller sends an empty message (without data) to the bus until the real-time clock responds.

The real-time clock recognises the CAN message and responds under the COB-ID 0x7FE with its node ID.

The controller defines the received node ID as output parameter CURRENT_ID.

The output parameter RESULT informs about the current operating status of the POU. >

Parameters of the inputs 21850

Parameter Data type Description

INIT BOOL TRUE (only for 1 cycle): Function block is initialised

FALSE: during further processing of the program

CHANNEL BYTE CAN interface (1...n) depending on the device >

Parameters of the outputs 22114

Parameter Data type Description

CURRENT_ID BYTE Node ID in the real-time clock

RESULT BYTE feedback of the function block (possible messages → following table)

Possible results for RESULT:

Value dec | hex

Description

0 00 FB is inactive

1 01 FB execution completed without error – data is valid

5 05 FB is active – no data received yet

9 09 CAN is not active

241 F1 Error: Response does not correspond to the request

(Response Request)

242 F2 Error: setting is not possible

Page 17: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

17

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Basic)

>

3.2.3 RTC_SET 21898

Unit type = function block (FB)

Unit is contained in the library ifm_RTC_Basic_V01yyzz.LIB

Symbol in CODESYS:

>

Description 21901

With RTC_SET, a new time, date and day of the week of the real-time clock (RTC) can be set.

The function block creates a matrix from the input parameters consisting of the following data: calendar day, month, year, hour, minute and day of the week

The controller sends this matrix along with the identifier (0x300 + Node-ID) to the real-time clock.

The real-time clock responds to this with the identifier (0x280 + node ID). At the same time, the real-time clock sets the seconds counter internally to zero.

The output parameter RESULT informs about the current operating status of the POU. >

Parameters of the inputs 21902

Parameter Data type Description

SET BOOL TRUE: execute this function element Set parameters

FALSE: unit is not executed

CHANNEL BYTE CAN interface (1...n) depending on the device

NODE_ID BYTE Node number of the addressed CAN participant

DAY BYTE Calendar day of the date (1...31)

MONTH BYTE Month of the date (1...12)

YEAR BYTE Year of the date (0...99)

HOUR BYTE Hour of the clock time (0...23)

MINUTE BYTE Minute of the clock time (0..59)

DOW BYTE Weekday of the date (0...6) 0 = first day of the week (e.g. Monday) 6 = last day of the week (e.g. Sunday)

Page 18: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

18

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Basic)

>

Parameters of the outputs 21904

Parameter Data type Description

RESULT BYTE feedback of the function block (possible messages → following table)

Possible results for RESULT:

Value dec | hex

Description

0 00 FB is inactive

1 01 FB execution completed without error – data is valid

5 05 FB is active – no data received yet

9 09 CAN is not active

241 F1 Error: Response does not correspond to the request

(Response Request)

242 F2 Error: setting is not possible

248 F8 Error: invalid input parameters; Setting not possible

Page 19: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

19

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Basic)

>

3.2.4 RTC_REQUEST 21861

Unit type = function block (FB)

Unit is contained in the library ifm_RTC_Basic_V01yyzz.LIB

Symbol in CODESYS:

>

Description 21864

RTC_REQUEST enables to request the current time, date and day of the week of the real-time clock (RTC). Additionally, this POU warns about a low battery level.

With the identifier (0x200 + node ID), the controller sends an empty message (without data) to the bus in order to request the current data.

The real-time clock responds to this with the identifier (0x180 + node ID). For this, the real-time clock sends a matrix with the following content: calendar day, month, year, hour, minute, second as well as day of the week and battery status

The function assigns this data to the corresponding output parameters.

The output parameter RESULT informs about the current operating status of the POU.

We recommend executing this POU e.g. at 200 ms intervals. This is how it is ensured that your application always has up-to-date data. >

Parameters of the inputs 21865

Parameter Data type Description

REQUEST BOOL TRUE: execute this function element Request data

FALSE: unit is not executed

CHANNEL BYTE CAN interface (1...n) depending on the device

NODE_ID BYTE Node number of the addressed CAN participant

Page 20: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

20

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Basic)

>

Parameters of the outputs 21868

Parameter Data type Description

DAY BYTE Calendar day of the date (1...31)

MONTH BYTE Month of the date (1...12)

YEAR BYTE Year of the date (0...99)

HOUR BYTE Hour of the clock time (0...23)

MINUTE BYTE Minute of the clock time (0..59)

SECOND BYTE Second of the clock time (0..59)

DOW BYTE Weekday of the date (0...6) 0 = first day of the week (e.g. Monday) 6 = last day of the week (e.g. Sunday)

LOW_BATTERY BYTE Warning when the battery level is low: 0 = battery level is sufficient 1 = battery level is low

RESULT BYTE feedback of the function block (possible messages → following table)

Possible results for RESULT:

Value dec | hex

Description

0 00 FB is inactive

1 01 FB execution completed without error – data is valid

5 05 FB is active – no data received yet

9 09 CAN is not active

241 F1 Error: Response does not correspond to the request

(Response Request)

242 F2 Error: setting is not possible

Page 21: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

21

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Basic)

>

3.2.5 RTC_SET_ALARM 21913

Unit type = function block (FB)

Unit is contained in the library ifm_RTC_Basic_V01yyzz.LIB

Symbol in CODESYS:

>

Description 21915

RTC_SET_ALARM configures the delay time after whose expiry the real-time clock (RTC) sets the alarm output. The maximum time before expiry can be 7 days, 23 hours and 59 minutes.

With this POU, a new node ID can additionally be assigned to the real-time clock.

Assign a new node ID to the real-time clock?

► Enter the previous node ID of the real-time clock in NODE_ID.Enter the new node ID in NEW_NODE_ID (max. 0x3F).

► After execution of the POU, interrupt the power supply of the real-time clock once.

> The real-time clock adopts the new node ID when it is switched on again.

The function block creates a matrix from the input parameters consisting of the following data: • delay time in days, hours and minutes• optionally one new node ID

The controller sends this matrix with the identifier (0x500 + node ID) to the real-time clock.

The real-time clock responds to this with the identifier (0x480 + node ID).

The output parameter RESULT informs about the current operating status of the POU.

When the alarm date is reached:

> The real-time clock sets the alarm output.

> 10 seconds after the start of the alarm output, the real-time clock automatically resets the alarmoutput.

► If the alarm is to be reset earlier:set the delay time for the setting of the alarm output to zero with this function block.

Page 22: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

22

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Basic)

>

Parameters of the inputs 21917

Parameter Data type Description

SET BOOL TRUE: execute this function element Set parameters

FALSE: unit is not executed

CHANNEL BYTE CAN interface (1...n) depending on the device

NODE_ID BYTE Node number of the addressed CAN participant

DELAY_DAY BYTE Number of days till the real-time clock sets the alarm output permissible = 0...7

DELAY_HOUR BYTE Number of hours till the real-time clock sets the alarm output permissible = 0...23

DELAY_MINUTE BYTE Number of minutes till the real-time clock sets the alarm output permissible = 0...59

NEW_NODE_ID BYTE assign a new node number to the participant permissible values = 0...63 = 0x00...0x3F

NEW_BAUDRATE BYTE assign a new baud rate to the participant permissible values:: 02 baud rate = 500 kBd 03 baud rate = 250 kBd 04 baud rate = 125 kBd

>

Parameters of the outputs 21904

Parameter Data type Description

RESULT BYTE feedback of the function block (possible messages → following table)

Possible results for RESULT:

Value dec | hex

Description

0 00 FB is inactive

1 01 FB execution completed without error – data is valid

5 05 FB is active – no data received yet

9 09 CAN is not active

241 F1 Error: Response does not correspond to the request

(Response Request)

242 F2 Error: setting is not possible

248 F8 Error: invalid input parameters; Setting not possible

Page 23: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

23

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Basic)

>

3.2.6 RTC_REQUEST_ALARM 21883

Unit type = function block (FB)

Unit is contained in the library ifm_RTC_Basic_V01yyzz.LIB

Symbol in CODESYS:

>

Description 21886

RTC_REQUEST_ALARM requests the real-time clock (RTC) for the following current values: • the remaining time till the setting of the alarm output• the current node ID

With the identifier (0x400 + node ID), the controller sends an empty message (without data) to the bus in order to request the current data.

The real-time clock responds to this with the identifier (0x380 + node ID). For this, the real-time clock sends a matrix with the following content: remaining days, hours and minutes as well as the current node ID

The function assigns this data to the corresponding output parameters.

The output parameter RESULT informs about the current operating status of the POU. >

Parameters of the inputs 21865

Parameter Data type Description

REQUEST BOOL TRUE: execute this function element Request data

FALSE: unit is not executed

CHANNEL BYTE CAN interface (1...n) depending on the device

NODE_ID BYTE Node number of the addressed CAN participant

Page 24: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

24

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Basic)

>

Parameters of the outputs 21887

Parameter Data type Description

REMAINING_DAYS BYTE remaining days till the real-time clock sets the alarm output

REMAINING_HOURS BYTE remaining hours till the real-time clock sets the alarm output

REMAINING_MINUTES BYTE remaining minutes till the real-time clock sets the alarm output

CURRENT_NODE_ID BYTE current node ID of the real-time clock

CURRENT_BAUDRATE BYTE Baud rate of the real time clock 02 baud rate = 500 kBd 03 baud rate = 250 kBd 04 baud rate = 125 kBd

RESULT BYTE feedback of the function block (possible messages → following table)

Possible results for RESULT:

Value dec | hex

Description

0 00 FB is inactive

1 01 FB execution completed without error – data is valid

5 05 FB is active – no data received yet

9 09 CAN is not active

241 F1 Error: Response does not correspond to the request

(Response Request)

242 F2 Error: setting is not possible

Page 25: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

25

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Classic)

>

3.3 ifm functional elements, POUs (Classic)

CONCAT_DATE_TIME ....................................................................................................................... 26 RTC_INITIALIZE ................................................................................................................................. 27 RTC_SET ............................................................................................................................................ 29 RTC_REQUEST .................................................................................................................................. 31 RTC_SET_ALARM .............................................................................................................................. 33 RTC_REQUEST_ALARM ................................................................................................................... 35

21832

The POUs of this library are designed for the following ifm devices: • ClassicController: CR00nn, CR05nn• CabinetController: CR03nn• ExtendedController: CR01nn, CR02nn• SmartController: CR250n• SafetyController: CR7nnn• PDMsmart: CR107n

Here you find the description of the adequate ifm function elements for these devices.

Page 26: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

26

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Classic)

>

3.3.1 CONCAT_DATE_TIME 21834

Unit type = function block (FB)

Unit is contained in the library ifm_RTC_Basic_V01yyzz.LIB, ifm_RTC_Classicx_V01yyzz.LIB

(x = 1...n = number of the CAN interface (depending on the device, → data sheet))

Symbol in CODESYS:

>

Description 21837

The CONCAT_DATE_TIME function block converts the received data that describes the time and the date from bytes into coherent strings.

► Transfer the current bytes as input parameters to the POU.

> The POU provides the values as follows:• The date as a distinct character string (e.g.: '13.06.2016)• The time as a distinct character string (e.g.: 14:48:20)• Date and time in DT format (e.g.: 'DT#2016-06-13-14:48:20).

>

Parameters of the inputs 21838

Parameter Data type Description

CurrentDay BYTE current calendar entry (as part of the date) Example for 13 June 2016: CurrentDay = 13

CurrentMonth BYTE current month (as part of the date) Example for 13 June 2016: CurrentMonth = 6

CurrentYear BYTE current year (as part of the date) Example for 13 June 2016: CurrentYear = 16

CurrentHour BYTE current hour (as part of the time) Example for 14:48:20: CurrentHour = 14

CurrentMinute BYTE current minute (as part of the time) Example for 14:48:20: CurrentMinute = 48

>

Parameters of the outputs 21842

Parameter Data type Description

CurrentDate STRING(10) current date Example for 13 June 2016: CurrentDate = '13.06.2016'

CurrentTime STRING(8) current time Example for 14:48:20: CurrentTime = '14:48:20'

CurrentDT STRING(22) current date + time in DT format Example for 13 June 2016 14:48:20: CurrentDT = 'DT#2016-06-13-14:48:20'

Page 27: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

27

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Classic)

>

3.3.2 RTC_INITIALIZE 21855

Unit type = function block (FB)

Unit is contained in the library ifm_RTC_Classicx_V01yyzz.LIB

(x = 1...n = number of the CAN interface (depending on the device, → data sheet))

Symbol in CODESYS:

>

Description 21858 22111

This must be the first communication with the real-time clock!

RTC_INITIALIZE initialises the connection between the controller and the real-time clock. Without this POU, no connection between the controller and the real-time clock is established.

With the COB-ID 0x7FFT, the controller sends an empty message (without data) to the bus until the real-time clock responds.

The real-time clock recognises the CAN message and responds under the COB-ID 0x7FE with its node ID.

The controller defines the received node ID as output parameter CURRENT_ID.

With the INIT2 output, the RTC POUs following in the project can be initialised.

The output parameter RESULT informs about the current operating status of the POU. >

Parameters of the inputs 21859

Parameter Data type Description

INIT BOOL TRUE (only for 1 cycle): Function block is initialised

FALSE: during further processing of the program

Page 28: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

28

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Classic)

>

Parameters of the outputs 21851

Parameter Data type Description

INIT2 BOOL TRUE:Initialise sequential POUs

FALSE: during further processing of the program

CURRENT_ID BYTE Node ID in the real-time clock

RESULT BYTE feedback of the function block (possible messages → following table)

Possible results for RESULT:

Value dec | hex

Description

0 00 FB is inactive

1 01 FB execution completed without error – data is valid

5 05 FB is active – no data received yet

9 09 CAN is not active

241 F1 Error: Response does not correspond to the request

(Response Request)

242 F2 Error: setting is not possible

Page 29: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

29

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Classic)

>

3.3.3 RTC_SET 21907

Unit type = function block (FB)

Unit is contained in the library ifm_RTC_Classicx_V01yyzz.LIB

(x = 1...n = number of the CAN interface (depending on the device, → data sheet))

Symbol in CODESYS:

>

Description 21901

With RTC_SET, a new time, date and day of the week of the real-time clock (RTC) can be set.

The function block creates a matrix from the input parameters consisting of the following data: calendar day, month, year, hour, minute and day of the week

The controller sends this matrix along with the identifier (0x300 + Node-ID) to the real-time clock.

The real-time clock responds to this with the identifier (0x280 + node ID). At the same time, the real-time clock sets the seconds counter internally to zero.

The output parameter RESULT informs about the current operating status of the POU. >

Parameters of the inputs 21911

Parameter Data type Description

INIT BOOL TRUE (only for 1 cycle): Function block is initialised

FALSE: during further processing of the program

SET BOOL TRUE: execute this function element Set parameters

FALSE: unit is not executed

NODE_ID BYTE Node number of the addressed CAN participant

DAY BYTE Calendar day of the date (1...31)

MONTH BYTE Month of the date (1...12)

YEAR BYTE Year of the date (0...99)

HOUR BYTE Hour of the clock time (0...23)

MINUTE BYTE Minute of the clock time (0..59)

DOW BYTE Weekday of the date (0...6) 0 = first day of the week (e.g. Monday) 6 = last day of the week (e.g. Sunday)

Page 30: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

30

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Classic)

>

Parameters of the outputs 21904

Parameter Data type Description

RESULT BYTE feedback of the function block (possible messages → following table)

Possible results for RESULT:

Value dec | hex

Description

0 00 FB is inactive

1 01 FB execution completed without error – data is valid

5 05 FB is active – no data received yet

9 09 CAN is not active

241 F1 Error: Response does not correspond to the request

(Response Request)

242 F2 Error: setting is not possible

248 F8 Error: invalid input parameters; Setting not possible

Page 31: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

31

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Classic)

>

3.3.4 RTC_REQUEST 21878

Unit type = function block (FB)

Unit is contained in the library ifm_RTC_Classicx_V01yyzz.LIB

(x = 1...n = number of the CAN interface (depending on the device, → data sheet))

Symbol in CODESYS:

>

Description 21864

RTC_REQUEST enables to request the current time, date and day of the week of the real-time clock (RTC). Additionally, this POU warns about a low battery level.

With the identifier (0x200 + node ID), the controller sends an empty message (without data) to the bus in order to request the current data.

The real-time clock responds to this with the identifier (0x180 + node ID). For this, the real-time clock sends a matrix with the following content: calendar day, month, year, hour, minute, second as well as day of the week and battery status

The function assigns this data to the corresponding output parameters.

The output parameter RESULT informs about the current operating status of the POU.

We recommend executing this POU e.g. at 200 ms intervals. This is how it is ensured that your application always has up-to-date data. >

Parameters of the inputs 21881

Parameter Data type Description

INIT BOOL TRUE (only for 1 cycle): Function block is initialised

FALSE: during further processing of the program

REQUEST BOOL TRUE: execute this function element Request data

FALSE: unit is not executed

NODE_ID BYTE Node number of the addressed CAN participant

Page 32: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

32

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Classic)

>

Parameters of the outputs 21868

Parameter Data type Description

DAY BYTE Calendar day of the date (1...31)

MONTH BYTE Month of the date (1...12)

YEAR BYTE Year of the date (0...99)

HOUR BYTE Hour of the clock time (0...23)

MINUTE BYTE Minute of the clock time (0..59)

SECOND BYTE Second of the clock time (0..59)

DOW BYTE Weekday of the date (0...6) 0 = first day of the week (e.g. Monday) 6 = last day of the week (e.g. Sunday)

LOW_BATTERY BYTE Warning when the battery level is low: 0 = battery level is sufficient 1 = battery level is low

RESULT BYTE feedback of the function block (possible messages → following table)

Possible results for RESULT:

Value dec | hex

Description

0 00 FB is inactive

1 01 FB execution completed without error – data is valid

5 05 FB is active – no data received yet

9 09 CAN is not active

241 F1 Error: Response does not correspond to the request

(Response Request)

242 F2 Error: setting is not possible

Page 33: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

33

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Classic)

>

3.3.5 RTC_SET_ALARM 21923

Unit type = function block (FB)

Unit is contained in the library ifm_RTC_Classicx_V01yyzz.LIB

(x = 1...n = number of the CAN interface (depending on the device, → data sheet))

Symbol in CODESYS:

>

Description 21915

RTC_SET_ALARM configures the delay time after whose expiry the real-time clock (RTC) sets the alarm output. The maximum time before expiry can be 7 days, 23 hours and 59 minutes.

With this POU, a new node ID can additionally be assigned to the real-time clock.

Assign a new node ID to the real-time clock?

► Enter the previous node ID of the real-time clock in NODE_ID.Enter the new node ID in NEW_NODE_ID (max. 0x3F).

► After execution of the POU, interrupt the power supply of the real-time clock once.

> The real-time clock adopts the new node ID when it is switched on again.

The function block creates a matrix from the input parameters consisting of the following data: • delay time in days, hours and minutes• optionally one new node ID

The controller sends this matrix with the identifier (0x500 + node ID) to the real-time clock.

The real-time clock responds to this with the identifier (0x480 + node ID).

The output parameter RESULT informs about the current operating status of the POU.

When the alarm date is reached:

> The real-time clock sets the alarm output.

> 10 seconds after the start of the alarm output, the real-time clock automatically resets the alarmoutput.

► If the alarm is to be reset earlier:set the delay time for the setting of the alarm output to zero with this function block.

Page 34: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

34

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Classic)

>

Parameters of the inputs 21927

Parameter Data type Description

INIT BOOL TRUE (only for 1 cycle): Function block is initialised

FALSE: during further processing of the program

SET BOOL TRUE: execute this function element Set parameters

FALSE: unit is not executed

NODE_ID BYTE Node number of the addressed CAN participant

DELAY_DAY BYTE Number of days till the real-time clock sets the alarm output permissible = 0...7

DELAY_HOUR BYTE Number of hours till the real-time clock sets the alarm output permissible = 0...23

DELAY_MINUTE BYTE Number of minutes till the real-time clock sets the alarm output permissible = 0...59

NEW_NODE_ID BYTE assign a new node number to the participant permissible values = 0...63 = 0x00...0x3F

NEW_BAUDRATE BYTE dem Teilnehmer eine neue Baudrate zuweisen zulässige Werte: 02 Baudrate = 500 kBd 03 Baudrate = 250 kBd 04 Baudrate = 125 kBd

>

Parameters of the outputs 21904

Parameter Data type Description

RESULT BYTE feedback of the function block (possible messages → following table)

Possible results for RESULT:

Value dec | hex

Description

0 00 FB is inactive

1 01 FB execution completed without error – data is valid

5 05 FB is active – no data received yet

9 09 CAN is not active

241 F1 Error: Response does not correspond to the request

(Response Request)

242 F2 Error: setting is not possible

248 F8 Error: invalid input parameters; Setting not possible

Page 35: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

35

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Classic)

>

3.3.6 RTC_REQUEST_ALARM 21893

Unit type = function block (FB)

Unit is contained in the library ifm_RTC_Classicx_V01yyzz.LIB

(x = 1...n = number of the CAN interface (depending on the device, → data sheet))

Symbol in CODESYS:

>

Description 21886

RTC_REQUEST_ALARM requests the real-time clock (RTC) for the following current values: • the remaining time till the setting of the alarm output• the current node ID

With the identifier (0x400 + node ID), the controller sends an empty message (without data) to the bus in order to request the current data.

The real-time clock responds to this with the identifier (0x380 + node ID). For this, the real-time clock sends a matrix with the following content: remaining days, hours and minutes as well as the current node ID

The function assigns this data to the corresponding output parameters.

The output parameter RESULT informs about the current operating status of the POU. >

Parameters of the inputs 21881

Parameter Data type Description

INIT BOOL TRUE (only for 1 cycle): Function block is initialised

FALSE: during further processing of the program

REQUEST BOOL TRUE: execute this function element Request data

FALSE: unit is not executed

NODE_ID BYTE Node number of the addressed CAN participant

Page 36: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

36

ifm Programming Manual (supplement) CAN module RTC CR3020

ifm function elements

ifm functional elements, POUs (Classic)

>

Parameters of the outputs 21887

Parameter Data type Description

REMAINING_DAYS BYTE remaining days till the real-time clock sets the alarm output

REMAINING_HOURS BYTE remaining hours till the real-time clock sets the alarm output

REMAINING_MINUTES BYTE remaining minutes till the real-time clock sets the alarm output

CURRENT_NODE_ID BYTE current node ID of the real-time clock

CURRENT_BAUDRATE BYTE Baudrate der Echtzeituhr 02 Baudrate = 500 kBd 03 Baudrate = 250 kBd 04 Baudrate = 125 kBd

RESULT BYTE feedback of the function block (possible messages → following table)

Possible results for RESULT:

Value dec | hex

Description

0 00 FB is inactive

1 01 FB execution completed without error – data is valid

5 05 FB is active – no data received yet

9 09 CAN is not active

241 F1 Error: Response does not correspond to the request

(Response Request)

242 F2 Error: setting is not possible

Page 37: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

37

ifm Programming Manual (supplement) CAN module RTC CR3020 Glossary of Terms

4 Glossary of Terms

A

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

Software specific to the application, implemented by the machine manufacturer, generally containing logic sequences, limits and expressions that control the appropriate inputs, outputs, calculations and decisions. >

Architecture

Specific configuration of hardware and/or software elements in a system. >

B

Baud

Baud, abbrev.: Bd = unit for the data transmission speed. Do not confuse baud with "bits per second" (bps, bits/s). Baud indicates the number of changes of state (steps, cycles) per second over a transmission length. But it is not defined how many bits per step are transmitted. The name baud can be traced back to the French inventor J. M. Baudot whose code was used for telex machines. 1 MBd = 1024 x 1024 Bd = 1 048 576 Bd >

Boot loader

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. The boot loader contains basic routines... • for communication between hardware modules,• for reloading the operating system.The boot loader is the first software module to be saved on the device.>

Bus

Serial data transmission of several participants on the same cable. >

C

CAN

CAN = Controller Area Network CAN is a priority-controlled fieldbus system for large data volumes. There are several higher-level protocols that are based on CAN, e.g. 'CANopen' or 'J1939'. >

CAN stack

CAN stack = software component that deals with processing CAN messages.

Page 38: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

38

ifm Programming Manual (supplement) CAN module RTC CR3020 Glossary of Terms

>

CiA

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.orgf >

CiA DS 304

DS = Draft Standard CANopen device profile for safety communication >

CiA DS 401

DS = Draft Standard CANopen device profile for binary and analogue I/O modules >

CiA DS 402

DS = Draft Standard CANopen device profile for drives >

CiA DS 403

DS = Draft Standard CANopen device profile for HMI >

CiA DS 404

DS = Draft Standard CANopen device profile for measurement and control technology >

CiA DS 405

DS = Draft Standard CANopen specification of the interface to programmable controllers (IEC 61131-3) >

CiA DS 406

DS = Draft Standard CANopen device profile for encoders >

CiA DS 407

DS = Draft Standard CANopen application profile for local public transport >

Clamp 15

In vehicles clamp 15 is the plus cable switched by the ignition lock. >

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 39: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

39

ifm Programming Manual (supplement) CAN module RTC CR3020 Glossary of Terms

>

CODESYS

CODESYS® is a registered trademark of 3S – Smart Software Solutions GmbH, Germany. 'CODESYS for Automation Alliance' associates companies of the automation industry whose hardware devices are all programmed with the widely used IEC 61131-3 development tool CODESYS®. Homepage → www.codesys.com >

CSV file

CSV = Comma Separated Values (also: Character Separated Values) A CSV file is a text file for storing or exchanging simply structured data. The file extension is .csv.

Example: Source table with numerical values:

value 1.0 value 1.1 value 1.2 value 1.3

value 2.0 value 2.1 value 2.2 value 2.3

value 3.0 value 3.1 value 3.2 value 3.3

This results in the following CSV file:

value 1.0;value 1.1;value 1.2;value 1.3 value 2.0;value 2.1;value 2.2;value 2.3 value 3.0;value 3.1;value 3.2;value 3.3 .

>

Cycle time

This is the time for a cycle. The PLC program performs one complete run.

Depending on event-controlled branchings in the program this can take longer or shorter. >

D

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

BYTE 0 255 8 bits = 1 byte

WORD 0 65 535 16 bits = 2 bytes

DWORD 0 4 294 967 295 32 bits = 4 bytes

SINT -128 127 8 bits = 1 byte

USINT 0 255 8 bits = 1 byte

INT -32 768 32 767 16 bits = 2 bytes

UINT 0 65 535 16 bits = 2 bytes

DINT -2 147 483 648 2 147 483 647 32 bits = 4 bytes

UDINT 0 4 294 967 295 32 bits = 4 bytes

REAL -3.402823466 • 1038 3.402823466 • 1038 32 bits = 4 bytes

ULINT 0 18 446 744 073 709 551 615 64 Bit = 8 Bytes

STRING number of char. + 1 >

DC

Direct Current

Page 40: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

40

ifm Programming Manual (supplement) CAN module RTC CR3020 Glossary of Terms

>

Diagnosis

During the diagnosis, the "state of health" of the device is checked. It is to be found out if and what →faults are given in the device.

Depending on the device, the inputs and outputs can also be monitored for their correct function. - wire break,- short circuit,- value outside range.

For diagnosis, configuration and log data can be used, created during the "normal" operation of the device. The correct start of the system components is monitored during the initialisation and start phase. Errors are recorded in the log file. For further diagnosis, self-tests can also be carried out. >

Dither

Dither is a component of the →PWM signals to control hydraulic valves. It has shown for electromagnetic drives of hydraulic valves that it is much easier for controlling the valves if the control signal (PWM pulse) is superimposed by a certain frequency of the PWM frequency. This dither frequency must be an integer part of the PWM frequency. >

DLC

Data Length Code = in CANopen the number of the data bytes in a message. For →SDO: DLC = 8 >

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. The memory contents are volatile: the stored information is lost in case of lacking operating voltage or too late restart. >

DTC

DTC = Diagnostic Trouble Code = error code In the protocol J1939 faults and errors well be managed and reported via assigned numbers – the DTCs. >

E

ECU

(1) Electronic Control Unit = control unit or microcontroller(2) Engine Control Unit = control device of a engine>

EDS-file

EDS = Electronic Data Sheet, e.g. for: • File for the object directory in the CANopen master,• CANopen device descriptions.

Via EDS devices and programs can exchange their specifications and consider them in a simplifiedway.

Page 41: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

41

ifm Programming Manual (supplement) CAN module RTC CR3020 Glossary of Terms

>

Embedded software

System software, basic program in the device, virtually the →runtime system. The firmware establishes the connection between the hardware of the device and the application program. The firmware is provided by the manufacturer of the controller as a part of the system and cannot be changed by the user. >

EMC

EMC = Electro Magnetic Compatibility. According to the EC directive (2004/108/EEC) concerning electromagnetic compatibility (in short EMC directive) requirements are made for electrical and electronic apparatus, equipment, systems or components to operate satisfactorily in the existing electromagnetic environment. The devices must not interfere with their environment and must not be adversely influenced by external electromagnetic interference. >

EMCY

Abbreviation for emergency Message in the CANopen protocol with which errors are signalled. >

Ethernet

Ethernet is a widely used, manufacturer-independent technology which enables data transmission in the network at a speed of 10...10 000 million bits per second (Mbps). Ethernet belongs to the family of so-called "optimum data transmission" on a non exclusive transmission medium. The concept was developed in 1972 and specified as IEEE 802.3 in 1985. >

EUC

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. If any reasonably foreseeable action or inaction leads to →hazards with an intolerable risk arising from the EUC, then safety functions are necessary to achieve or maintain a safe state for the EUC. These safety functions are performed by one or more safety-related systems. >

F

FiFo

FIFO (First In, First Out) = Operating principle of the stack memory: The data packet that was written into the stack memory first, will also be read first. Each identifier has such a buffer (queue). >

Flash memory

Flash ROM (or flash EPROM or flash memory) combines the advantages of semiconductor memory and hard disks. Similar to a hard disk, the data are however written and deleted blockwise in data blocks up to 64, 128, 256, 1024, ... bytes at the same time.

Advantages of flash memories

The stored data are maintained even if there is no supply voltage.

Due to the absence of moving parts, flash is noiseless and insensitive to shocks and magneticfields.

Page 42: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

42

ifm Programming Manual (supplement) CAN module RTC CR3020 Glossary of Terms

Disadvantages of flash memories

A storage cell can tolerate a limited number of write and delete processes:• Multi-level cells: typ. 10 000 cycles• Single level cells: typ. 100 000 cycles

Given that a write process writes memory blocks of between 16 and 128 Kbytes at the same time,memory cells which require no change are used as well.

>

FRAM

FRAM, or also FeRAM, means Ferroelectric Random Access Memory. The storage operation and erasing operation is carried out by a polarisation change in a ferroelectric layer. Advantages of FRAM as compared to conventional read-only memories: • non-volatile,• compatible with common EEPROMs, but:• access time approx. 100 ns,• nearly unlimited access cycles possible.

>

H

Heartbeat

The participants regularly send short signals. In this way the other participants can verify if a participant has failed. >

HMI

HMI = Human Machine Interface >

I

ID

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 • Part 1: General information• Part 2: Production equipment requirements and tests• Part 3: Programming languages• Part 5: Communication• Part 7: Fuzzy Control Programming

>

IEC user cycle

IEC user cycle = PLC cycle in the CODESYS application program. >

Instructions

Superordinate word for one of the following terms: installation instructions, data sheet, user information, operating instructions, device manual, installation information, online help, system manual, programming manual, etc.

Page 43: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

43

ifm Programming Manual (supplement) CAN module RTC CR3020 Glossary of Terms

>

Intended use

Use of a product in accordance with the information provided in the instructions for use. >

IP address

IP = Internet Protocol. The IP address is a number which is necessary to clearly identify an internet participant. For the sake of clarity the number is written in 4 decimal values, e.g. 127.215.205.156. >

ISO 11898

Standard: Road vehicles – Controller area network • Part 1: Data link layer and physical signalling• Part 2: High-speed medium access unit• Part 3: Low-speed, fault-tolerant, medium dependent interface• Part 4: Time-triggered communication• Part 5: High-speed medium access unit with low-power mode

>

ISO 11992

Standard: Interchange of digital information on electrical connections between towing and towed vehicles • Part 1: Physical and data-link layers• Part 2: Application layer for brakes and running gear• Part 3: Application layer for equipment other than brakes and running gear• Part 4: Diagnostics

>

ISO 16845

Standard: Road vehicles – Controller area network (CAN) – Conformance test plan >

J

J1939

→ SAE J1939>

L

LED

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. >

Link

A link is a cross-reference to another part in the document or to an external document. >

LSB

Least Significant Bit/Byte

Page 44: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

44

ifm Programming Manual (supplement) CAN module RTC CR3020 Glossary of Terms

>

M

MAC-ID

MAC = Manufacturer‘s Address Code = manufacturer's serial number. →ID = IdentifierEvery network card has a MAC address, a clearly defined worldwide unique numerical code, more orless a kind of serial number. Such a MAC address is a sequence of 6 hexadecimal numbers, e.g. "00-0C-6E-D0-02-3F".>

Master

Handles the complete organisation on the bus. The master decides on the bus access time and polls the →slaves cyclically. >

Misuse

The use of a product in a way not intended by the designer. The manufacturer of the product has to warn against readily predictable misuse in his user information. >

MMI

→ HMI (→ p. 42)>

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. Advantages of MRAM as compared to conventional RAM memories: • non volatile (like FRAM), but:• access time only approx. 35 ns,• unlimited number of access cycles possible.

>

MSB

Most Significant Bit/Byte >

N

NMT

NMT = Network Management = (here: in the CANopen protocol). The NMT master controls the operating states of the NMT slaves. >

Node

This means a participant in the network. >

Node Guarding

Node = here: network participant Configurable cyclic monitoring of each →slave configured accordingly. The →master verfies if the slaves reply in time. The slaves verify if the master regularly sends requests. In this way failed network participants can be quickly identified and reported.

Page 45: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

45

ifm Programming Manual (supplement) CAN module RTC CR3020 Glossary of Terms

>

O

Obj / object

Term for data / messages which can be exchanged in the CANopen network. >

Object directory

Contains all CANopen communication parameters of a device as well as device-specific parameters and data. >

OBV

Contains all CANopen communication parameters of a device as well as device-specific parameters and data. >

OPC

OPC = OLE for Process Control Standardised software interface for manufacturer-independent communication in automation technology OPC client (e.g. device for parameter setting or programming) automatically logs on to OPC server (e.g. automation device) when connected and communicates with it. >

Operational

Operating state of a CANopen participant. In this mode →SDOs, →NMT commands and →PDOs can be transferred. >

P

PC card

→PCMCIA card>

PCMCIA card

PCMCIA = Personal Computer Memory Card International Association, a standard for expansion cards of mobile computers. Since the introduction of the cardbus standard in 1995 PCMCIA cards have also been called PC card. >

PDM

PDM = Process and Dialogue Module. Device for communication of the operator with the machine / plant. >

PDO

PDO = Process Data Object. The time-critical process data is transferred by means of the "process data objects" (PDOs). The PDOs can be freely exchanged between the individual nodes (PDO linking). In addition it is defined whether data exchange is to be event-controlled (asynchronous) or synchronised. Depending on the type of data to be transferred the correct selection of the type of transmission can lead to considerable relief for the →CAN bus. According to the protocol, these services are unconfirmed data transmission: it is not checked whether the receiver receives the message. Exchange of network variables corresponds to a "1 to n connection" (1 transmitter to n receivers).

Page 46: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

46

ifm Programming Manual (supplement) CAN module RTC CR3020 Glossary of Terms

>

PDU

PDU = Protocol Data Unit = protocol data unit. The PDU is a term from the →CAN protocol →SAE J1939. It refers to a component of the target address (PDU format 1, connection-oriented) or the group extension (PDU format 2, message-oriented). >

PES

Programmable Electronic System ... • for control, protection or monitoring,• dependent for its operation on one or more programmable electronic devices,• including all elements of the system such as input and output devices.

>

PGN

PGN = Parameter Group Number PGN = 6 zero bits + 1 bit reserved + 1 bit data page + 8 bit PDU Format (PF) + 8 PDU Specific (PS) The parameter group number is a term from the →CAN protocol →SAE J1939. >

Pictogram

Pictograms are figurative symbols which convey information by a simplified graphic representation. (→ chapter What do the symbols and formats mean? (→ p. 4)) >

PID controller

The PID controller (proportional–integral–derivative controller) consists of the following parts: • P = proportional part• I = integral part• D = differential part (but not for the controller CR04nn, CR253n).

>

PLC configuration

Part of the CODESYS user interface.

► The programmer tells the programming system which hardware is to be programmed.

> CODESYS loads the corresponding libraries.

> Reading and writing the periphery states (inputs/outputs) is possible.>

Pre-Op

Pre-Op = PRE-OPERATIONAL mode. Operating status of a CANopen participant. After application of the supply voltage each participant automatically passes into this state. In the CANopen network only →SDOs and →NMT commands can be transferred in this mode but no process data. >

Process image

Process image is the status of the inputs and outputs the PLC operates with within one →cycle.

At the beginning of the cycle the PLC reads the conditions of all inputs into the process image.During the cycle the PLC cannot detect changes to the inputs.

During the cycle the outputs are only changed virtually (in the process image).

At the end of the cycle the PLC writes the virtual output states to the real outputs.

Page 47: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

47

ifm Programming Manual (supplement) CAN module RTC CR3020 Glossary of Terms

>

PWM

PWM = pulse width modulation The PWM output signal is a pulsed signal between GND and supply voltage. Within a defined period (PWM frequency) the mark-to-space ratio is varied. Depending on the mark-to-space ratio, the connected load determines the corresponding RMS current. >

R

ratiometric

Measurements can also be performed ratiometrically. If the output signal of a sensor is proportional to its suppy voltage then via ratiometric measurement (= measurement proportional to the supply) the influence of the supply's fluctuation can be reduced, in ideal case it can be eliminated. → analogue input>

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. >

remanent

Remanent data is protected against data loss in case of power failure. The →runtime system for example automatically copies the remanent data to a →flash memory as soon as the voltage supply falls below a critical value. If the voltage supply is available again, the runtime system loads the remanent data back to the RAM memory. The data in the RAM memory of a controller, however, is volatile and normally lost in case of power failure. >

ro

RO = read only for reading only Unidirectional data transmission: Data can only be read and not changed. >

RTC

RTC = Real Time Clock Provides (batter-backed) the current date and time. Frequent use for the storage of error message protocols. >

Runtime system

Basic program in the device, establishes the connection between the hardware of the device and the application program. → chapter Software modules for the device>

rw

RW = read/ write Bidirectional data transmission: Data can be read and also changed.

Page 48: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

48

ifm Programming Manual (supplement) CAN module RTC CR3020 Glossary of Terms

>

S

SAE J1939

The network protocol SAE J1939 describes the communication on a →CAN bus in commercial vehicles for transmission of diagnosis data (e.g.engine speed, temperature) and control information. Standard: Recommended Practice for a Serial Control and Communications Vehicle Network • Part 2: Agricultural and Forestry Off-Road Machinery Control and Communication Network• Part 3: On Board Diagnostics Implementation Guide• Part 5: Marine Stern Drive and Inboard Spark-Ignition Engine On-Board Diagnostics Implementation

Guide• Part 11: Physical Layer – 250 kBits/s, Shielded Twisted Pair• Part 13: Off-Board Diagnostic Connector• Part 15: Reduced Physical Layer, 250 kBits/s, Un-Shielded Twisted Pair (UTP)• Part 21: Data Link Layer• Part 31: Network Layer• Part 71: Vehicle Application Layer• Part 73: Application Layer – Diagnostics• Part 81: Network Management Protocol

>

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

SDO = Service Data Object. The SDO is used for access to objects in the CANopen object directory. 'Clients' ask for the requested data from 'servers'. The SDOs always consist of 8 bytes.

Examples: • Automatic configuration of all slaves via →SDOs at the system start,• reading error messages from the →object directory.

Every SDO is monitored for a response and repeated if the slave does not respond within themonitoring time.>

Self-test

Test program that actively tests components or devices. The program is started by the user and takes a certain time. The result is a test protocol (log file) which shows what was tested and if the result is positive or negative. >

Slave

Passive participant on the bus, only replies on request of the →master. Slaves have a clearly defined and unique →address in the bus. >

stopped

Operating status of a CANopen participant. In this mode only →NMT commands are transferred. >

Symbols

Pictograms are figurative symbols which convey information by a simplified graphic representation. (→ chapter What do the symbols and formats mean? (→ p. 4))

Page 49: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

49

ifm Programming Manual (supplement) CAN module RTC CR3020 Glossary of Terms

>

System variable

Variable to which access can be made via IEC address or symbol name from the PLC. >

T

Target

The target contains the hardware description of the target device for CODESYS, e.g.: inputs and outputs, memory, file locations. Corresponds to an electronic data sheet. >

TCP

The Transmission Control Protocol is part of the TCP/IP protocol family. Each TCP/IP data connection has a transmitter and a receiver. This principle is a connection-oriented data transmission. In the TCP/IP protocol family the TCP as the connection-oriented protocol 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. >

U

UDP

UDP (User Datagram Protocol) is a minimal connectionless network protocol which belongs to the transport layer of the internet protocol family. The task of UDP is to ensure that data which is transmitted via the internet is passed to the right application. At present network variables based on →CAN and UDP are implemented. The values of the variables are automatically exchanged on the basis of broadcast messages. In UDP they are implemented as broadcast messages, in CAN as →PDOs. According to the protocol, these services are unconfirmed data transmission: it is not checked whether the receiver receives the message. Exchange of network variables corresponds to a "1 to n connection" (1 transmitter to n receivers). >

Use, intended

Use of a product in accordance with the information provided in the instructions for use. >

W

Watchdog

In general the term watchdog is used for a component of a system which watches the function of other components. If a possible malfunction is detected, this is either signalled or suitable program branchings are activated. The signal or branchings serve as a trigger for other co-operating system components to solve the problem.

Page 50: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

50

ifm Programming Manual (supplement) CAN module RTC CR3020 Index

5 Index

A

About this manual .................................................................................... 3

Address .................................................................................................. 37

Application software............................................................................... 37

Architecture ............................................................................................ 37

B

Baud ....................................................................................................... 37

Boot loader ............................................................................................ 37

Bus ......................................................................................................... 37

C

CAN ....................................................................................................... 37

Interfaces and protocols .................................................................................. 8

CAN interfaces ......................................................................................... 8

CAN messages via COB-ID and node ID ............................................... 9

CAN stack .............................................................................................. 37

CiA ......................................................................................................... 38

CiA DS 304 ............................................................................................ 38

CiA DS 401 ............................................................................................ 38

CiA DS 402 ............................................................................................ 38

CiA DS 403 ............................................................................................ 38

CiA DS 404 ............................................................................................ 38

CiA DS 405 ............................................................................................ 38

CiA DS 406 ............................................................................................ 38

CiA DS 407 ............................................................................................ 38

Clamp 15................................................................................................ 38

COB ID ................................................................................................... 38

CODESYS ............................................................................................. 39

CONCAT_DATE_TIME ...................................................................15, 26

Copyright.................................................................................................. 3

CSV file .................................................................................................. 39

Cycle time .............................................................................................. 39

D

Data type................................................................................................ 39

DC .......................................................................................................... 39

Define alarm date .................................................................................. 11

Define time and date ............................................................................. 10

Description .......................... 15, 16, 17, 19, 21, 23, 26, 27, 29, 31, 33, 35

Diagnosis ............................................................................................... 40

Dither ..................................................................................................... 40

DLC ........................................................................................................ 40

DRAM .................................................................................................... 40

DTC ........................................................................................................ 40

E

ECU ....................................................................................................... 40

EDS-file .................................................................................................. 40

Embedded software ............................................................................... 41

EMC ....................................................................................................... 41

EMCY ..................................................................................................... 41

Ethernet ................................................................................................. 41

EUC ....................................................................................................... 41

F

FiFo ........................................................................................................ 41

Flash memory ........................................................................................ 41

FRAM ..................................................................................................... 42

H

Hardware description ............................................................................... 7

Heartbeat ............................................................................................... 42

HMI ........................................................................................................ 42

How is this documentation structured? ................................................... 5

I

ID ........................................................................................................... 42

IEC 61131 .............................................................................................. 42

IEC user cycle ........................................................................................ 42

ifm function elements ............................................................................. 12

ifm functional elements, POUs (Basic) .................................................. 14

ifm functional elements, POUs (Classic) ............................................... 25

ifm libraries for the device CRnnnn ....................................................... 12

ifm weltweit • ifm worldwide • ifm à l’échelle internationale ................... 55

Information about the device ................................................................... 6

Initialise real-time clock (RTC)................................................................. 9

Instructions ............................................................................................ 42

Intended use .......................................................................................... 43

Interface description ................................................................................ 8

IP address .............................................................................................. 43

ISO 11898 .............................................................................................. 43

ISO 11992 .............................................................................................. 43

ISO 16845 .............................................................................................. 43

J

J1939 ..................................................................................................... 43

L

LED ........................................................................................................ 43

Library ifm_RTC_Basic_V02yyzz.LIB ................................................... 12

Library ifm_RTC_Classicx_V02yyzz.LIB ............................................... 13

Link ........................................................................................................ 43

LSB ........................................................................................................ 43

M

MAC-ID .................................................................................................. 44

Master .................................................................................................... 44

Misuse .................................................................................................... 44

MMI ........................................................................................................ 44

MRAM .................................................................................................... 44

MSB ....................................................................................................... 44

N

NMT ....................................................................................................... 44

Node ...................................................................................................... 44

Node Guarding ...................................................................................... 44

Notizen • Notes • Notes ......................................................................... 52

O

Obj / object ............................................................................................. 45

Object directory ...................................................................................... 45

OBV ....................................................................................................... 45

OPC ....................................................................................................... 45

Operational ............................................................................................ 45

Overview of functions .............................................................................. 6

Page 51: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

51

ifm Programming Manual (supplement) CAN module RTC CR3020 Index

P

Parameters of the inputs .... 15, 16, 17, 19, 22, 23, 26, 27, 29, 31, 34, 35

Parameters of the outputs .. 15, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36

PC card .................................................................................................. 45

PCMCIA card ......................................................................................... 45

PDM ....................................................................................................... 45

PDO ....................................................................................................... 45

PDU ....................................................................................................... 46

PES ........................................................................................................ 46

PGN ....................................................................................................... 46

Pictogram ............................................................................................... 46

Pictograms ............................................................................................... 4

PID controller ......................................................................................... 46

PLC configuration .................................................................................. 46

Pre-Op ................................................................................................... 46

Process image ....................................................................................... 46

PWM ...................................................................................................... 47

R

ratiometric .............................................................................................. 47

RAW-CAN .............................................................................................. 47

remanent ................................................................................................ 47

Request the remaining time till the alarm .............................................. 11

Request time and date .......................................................................... 10

ro ............................................................................................................ 47

RTC ........................................................................................................ 47

RTC_INITIALIZE ..............................................................................16, 27

RTC_REQUEST ..............................................................................19, 31

RTC_REQUEST_ALARM ...............................................................23, 35

RTC_SET.........................................................................................17, 29

RTC_SET_ALARM ..........................................................................21, 33

Runtime system ..................................................................................... 47

rw ........................................................................................................... 47

S

SAE J1939 ............................................................................................. 48

SD card .................................................................................................. 48

SDO ....................................................................................................... 48

Self-test .................................................................................................. 48

Slave ...................................................................................................... 48

Software description ................................................................................ 9

stopped .................................................................................................. 48

Symbols ................................................................................................. 48

System description .................................................................................. 6

System variable ..................................................................................... 49

T

Target ..................................................................................................... 49

TCP ........................................................................................................ 49

Template ................................................................................................ 49

U

UDP ....................................................................................................... 49

Use, intended ......................................................................................... 49

W

watchdog................................................................................................ 49

Watchdog ............................................................................................... 49

What do the symbols and formats mean? ............................................... 4

Page 52: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

52

ifm Programming Manual (supplement) CAN module RTC CR3020

Notizen • Notes • Notes

ifm functional elements, POUs (Classic)

6 Notizen • Notes • Notes

Page 53: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

53

ifm Programming Manual (supplement) CAN module RTC CR3020

Notizen • Notes • Notes

ifm functional elements, POUs (Classic)

Page 54: Programming Manual (supplement) CAN module RTC CR30200x380 + node ID DLC = 6 Byte 0 = remaining time in days Byte 1 = remaining time in hours Byte 2 = Remaining time in minutes Byte

54

ifm Programming Manual (supplement) CAN module RTC CR3020

Notizen • Notes • Notes

ifm functional elements, POUs (Classic)