background image

 

 

 

 

dh 

 

 

 

Original Programming Manual (Supplement) 

CAN Module Real Time Clock (RTC)

 

 

CR3020

 

 

 

V02 

CODESYS

®

 > V2.3.9.33 

 

 

English

 

739

10

87

_

01

_U

K

     

20

1

7

-10

-26

 

 

 

Summary of Contents for CR3020

Page 1: ...1 dh Original Programming Manual Supplement CAN Module Real Time Clock RTC CR3020 V02 CODESYS V2 3 9 33 English 7391087_01_UK 2017 10 26...

Page 2: ...9 3 ifm function elements 12 3 1 ifm libraries for the device CRnnnn 12 3 1 1 Library ifm_RTC_Basic_V02yyzz LIB 12 3 1 2 Library ifm_RTC_Classicx_V02yyzz LIB 13 3 2 ifm functional elements POUs Basic...

Page 3: ...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...

Page 4: ...tions 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 r...

Page 5: ...g 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 welt...

Page 6: ...e real time clock Adjustment of the CAN baud rate to the controller 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...

Page 7: ...26 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 su...

Page 8: ...scription 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...

Page 9: ...ng 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 communi...

Page 10: ...ond 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...

Page 11: ...te 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 al...

Page 12: ...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 contai...

Page 13: ...n 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 cohere...

Page 14: ...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 BasicControl...

Page 15: ...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...

Page 16: ...er 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 Parame...

Page 17: ...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 a...

Page 18: ...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...

Page 19: ...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 w...

Page 20: ...ock 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...

Page 21: ...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 matri...

Page 22: ...utes 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...

Page 23: ...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...

Page 24: ...l 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...

Page 25: ...C_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 CabinetControl...

Page 26: ...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 201...

Page 27: ...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 res...

Page 28: ...r 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 Descri...

Page 29: ...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...

Page 30: ...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 activ...

Page 31: ...a 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 da...

Page 32: ...lock 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 sufficien...

Page 33: ...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 aga...

Page 34: ...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_B...

Page 35: ...r 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...

Page 36: ...es 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...

Page 37: ...er 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 10...

Page 38: ...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 spec...

Page 39: ...ts 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 pro...

Page 40: ...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 D...

Page 41: ...ta 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 pla...

Page 42: ...t 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...

Page 43: ...face 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 tow...

Page 44: ...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 whe...

Page 45: ...ard 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 PCM...

Page 46: ...oportional 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...

Page 47: ...nal 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 runti...

Page 48: ...rd 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 obj...

Page 49: ...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 t...

Page 50: ...ded 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 cy...

Page 51: ...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_REQUES...

Page 52: ...52 ifm Programming Manual supplement CAN module RTC CR3020 2017 10 26 Notizen Notes Notes ifm functional elements POUs Classic 6 Notizen Notes Notes...

Page 53: ...53 ifm Programming Manual supplement CAN module RTC CR3020 2017 10 26 Notizen Notes Notes ifm functional elements POUs Classic...

Page 54: ...54 ifm Programming Manual supplement CAN module RTC CR3020 2017 10 26 Notizen Notes Notes ifm functional elements POUs Classic...

Page 55: ...pton Middlesex TW12 2HD Tel 44 208 213 0000 ifm electronic Monoprosopi E P E 15125 Amaroussio Tel 30 210 6180090 ifm electronic kft 9028 Gy r Tel 36 96 518 397 ifm electronic s a 20041 Agrate Brianza...

Reviews: