IFM CR3020 Скачать руководство пользователя страница 32

 

 

32 

ifm

 Programming Manual (supplement) CAN module RTC CR3020 

2017-10-26 

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

 

00 

FB is inactive 

01 

FB execution completed without error 

– data is valid 

05 

FB is active 

– no data received yet 

09 

CAN is not active 

241 

F1 

Error: Response does not correspond to the request 
 

(Response 

 Request) 

242 

F2 

Error: setting is not possible 

 

 

 

Содержание CR3020

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 53: ...53 ifm Programming Manual supplement CAN module RTC CR3020 2017 10 26 Notizen Notes Notes ifm functional elements POUs Classic...

Страница 54: ...54 ifm Programming Manual supplement CAN module RTC CR3020 2017 10 26 Notizen Notes Notes ifm functional elements POUs Classic...

Страница 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...

Отзывы: