CR2031 OMPACT ODUL ETALL Inhalt 1 Sicherheitshinweise Seite 2 Bestimmungsgemäße Verwendung Seite 2.1 CAN-Kommunikation Seite 3 Montage Seite 4 Elektrischer Anschluss Seite 4.1 M12 Kabeldosen Seite 4.2 Drehmoment der Deckelschrauben Seite 4.3 M16 Kabelverschraubung Seite 4.4 Definition der Kurzschluss- und Überlastfestigkeit Seite ®...
An den Anschlußklemmen dürfen nur die in den technischen Daten, bzw. auf dem Geräteaufdruck angegebenen Signale eingespeist bzw. die zugelassenen Zubehörkomponenten der ifm electronic gmbh angeschlossen werden. Das Gerät ist gemäß nachstehender technischer Spezifikation in einem weiten Umgebungs-Temperaturbereich betreibbar. Aufgrund der zusätzlichen Eigener- wärmung kann es an den Gehäuse-Wandungen beim Berühren in heißer Umge-...
CR2031 OMPACT ODUL ETALL 2 Bestimmungsgemäße Verwendung / Funktion Das E/A-Modul CR2031 dient zur Ansteuerung von Aktoren und Proportionalven- tilen. Über die integrierte Strommessung kann der Spulenstrom überwacht und zur Regelung genutzt werden. 2.1 CAN-Kommunikation • Das Modul unterstützt binäre/analoge Ausgänge und wird daher in die Geräte- klasse „I/O Modul“...
CR2031 OMPACT ODUL ETALL 3 Montage Um das Modul vor mechanischen Belastungen zu schützen, ist es ganzflächig aufliegend auf eine ebene Montagefläche anzubringen. Dazu müssen drei Zylin- derschrauben mit Innensechskant (M5x L) nach DIN 912 bzw. DIN 7984 benutzt werden. Montagevarianten bevorzugt falsch...
CR2031 OMPACT ODUL ETALL 4.3 M16 Kabelverschraubung Um die Dichtigkeit der M16 Kabelverschraubung zu gewährleisten, ein geeigne- tes Kabel verwenden. Erfolgt die Geräteversorgung und der CAN-Anschluss über die M12 Stecker, den Klemmenanschlussraum mit dem beiliegenden M16 Blindstopfen verschließen. (Kabelverschraubung abschrauben, M16 Blindstopfen einschrauben) 4.4 Definition der Kurzschluss- und Überlastfestigkeit •...
Seite 7
CR2031 OMPACT ODUL ETALL Beispiele Anschlussarten Supply 01 / 02 Supply Supply 01 / 02 03 / 04 / 05 03 / 04 / 05 CAN IN CAN OUT Beispiel 1 n.c. n.c. n.c. 01 / 02 Supply Supply 01 / 02 03 / 04 / 05 03 / 04 / 05 CAN IN...
über CANopen-Objektverzeichnis) Anzeigen 1 LED grün (PWR) 1 LED rot (Diagnose, DIA) 8 LED gelb (Status der Ausgänge) ifm electronic gmbh • Friedrichstraße 1 • 45128 Essen Technische Änderungen behalten wir uns ohne Ankündigung vor! CR2031 / Seite 1 14.08.2014...
Seite 9
(wenn Synch-Überwachung aktiviert ist) OUT (gelb) Binärer Ausgang: Ausgang ist angesteuert (EIN) Analoger Ausgang: PWM-Sollwert ≠ 0 Strom-Sollwert > Betrag 20 ifm electronic gmbh • Friedrichstraße 1 • 45128 Essen Technische Änderungen behalten wir uns ohne Ankündigung vor! CR2031 / Seite 2 14.08.2014...
UN/ECE-R10 mit 100 V/m (E1-Typgenehmigung) und DIN EN 61000-6-2 (CE) Störabstrahlung gemäß UN/ECE-R10 (E1-Typgenehmigung) und DIN EN 61000-6-3 (CE) ifm electronic gmbh • Friedrichstraße 1 • 45128 Essen Technische Änderungen behalten wir uns ohne Ankündigung vor! CR2031 / Seite 3 14.08.2014...
CR2031 OMPACT ODUL ETALL 6 Parameter- und EMCY-Objekt-Übersicht Über den Eintrag „Save Parameter“ (s. Objektverzeichnis, Index 1010) kann das automatische Sichern der Kommunikations- und Geräteparameter aus- oder ein- geschaltet werden. Wird im SIdx 01 der Wert 0x02 eingetragen, werden alle Parameter bei einer Änderung automatisch gesichert.
CR2031 OMPACT ODUL ETALL 7 Objektverzeichnis Herstellerspezifische Profile; Index 2000 bis 5FFF Index S-Idx Name Default Beschreibung 2000 u8, ro 0x08 Anzahl der Einträge Konfiguration (= Anzahl der I/O-Kanäle) Konfiguration u8, rw 0x02 0 = AUS Kanal 1 2 = Binärausgang (Ausgang) 4 = Analogausgang (PWM) 5 = Analogausgang (stromgeregelt)
Seite 16
CR2031 OMPACT ODUL ETALL Index S-Idx Name Default Beschreibung 2001 u8, rw 0x64 Einstellung in Hz (20...250 Hz) Frequenz (100 Hz) Bei einer ungültigen Werteingabe bleibt der bisherige Wert weiter gültig. 2002 Strom-Istwerte u8, ro 0x04 Anzahl der Einträge (= Anzahl der Strommesskanäle) Strom-Istwert u8, ro –...
Seite 17
CR2031 OMPACT ODUL ETALL Index S-Idx Name Default Beschreibung 2007 Regelparameter u8, ro 0x03 Anzahl der Einträge Kanal 7, 8 (= Anzahl der Regelparameter) P-Anteil u8, rw 0x32 P-Anteil des Stromreglers Kanal 7, 8 Kanal 7, 8 (= Wert in % bezogen auf die Soll-Ist- Differenz) I-Anteil u8, rw...
CR2031 OMPACT ODUL ETALL Kommunikationsprofile; Index 1000 bis 1FFF Index S-Idx Name Default Beschreibung 1000 Device type u32, ro Prof. 401; 0x00030191 Ein- und Ausgänge, binär und analog 1001 Error register u8, ro 0x00 Bitcodiert gemäß Profil 301; unterstützt wird: 0b 0000 0000 kein Fehler 0b 0000 0001 generic error 0b 0001 0000 communication error...
Seite 19
CR2031 OMPACT ODUL ETALL Index S-Idx Name Default Beschreibung 1010 Number of u8, ro 0x01 Anzahl der Optionen "sichern" save-options "Alle Parameter u32, rw 0x02 Automatisches Sichern aller geänderter sichern" Parameter AUS/EIN. 0 = Autosicherung AUS 2 = Autosicherung EIN 1011 Number of u8, ro...
Seite 20
CR2031 OMPACT ODUL ETALL Index S-Idx Name Default Beschreibung 1400 Receive u8, ro 0x02 Anzahl der Einträge Rec PDO 1 PDO 1 Binärausgänge COB-ID u32, rw 0x200 + - PDO ist gültig (Bit 31 = 0) PDO 1 Node-ID - CAN-ID des 1. Rec PDOs Trans Type u8, rw 0x01...
Seite 21
CR2031 OMPACT ODUL ETALL Index S-Idx Name Default Beschreibung 1601 Index im u32, ro im Idx 6411, SIdx 03 steht der Sollwert 0x6411 03 Objektverzeichnis des Analogausgangs Kanal 5 oder 6, der Wert wird als Tastverhältniss in ‰ oder als Stromsollwert interpretiert (abhängig von Konfiguration Idx 2000).
CR2031 OMPACT ODUL ETALL 8 Programmierung 8.1 Allgemeines Das E/A-Modul muß als CANopen-Slave mit den CANopen-Startfunktionen „COP_MSTR_BOOTUP“ und „COP_MSTR_MAIN“ vom R 360-Master initialisiert und in den Zustand „OPERATIONAL“ versetzt werden (LED „PWR“ blinkt; 2 Hz). 8.2 Programmier-Funktion Wird die Funktion „CR2031“ in das Programm eingebunden, sorgt diese auto- matisch für eine ständige Aktualisierung der Ein-/Ausgangswerte in der Steue- rung.
– deklariert werden. Für Konfigurationsdaten kann im Deklarationsteil bereits eine Wertzuweisung enthalten sein. Im Programmablauf kann der Zugriff auf eine Strukturkomponente z.B. wie dar- gestellt erfolgen. Screenshot der CODESYS Programmieroberfläche Weitere Programmierbeispiele für das E/A-Modul erhalten Sie auf Nachfrage von der ifm electronic gmbh.
Seite 24
CR2031 OMPACT ODUL ETALL ■ Funktion: CR2031 CR2031 ■ Library: CR2031_x.lib ENABLE CFG_RESULT ■ Zweck: INIT IO_RCV Parametriert und liest NODE_ID die Konfigurations- und E/A-Daten CFG_READ des Ein-/Ausgangs-Moduls CFG_WRITE CR2031 CFG_DATA RX_TYPE TX_TYPE SYNC IO_DATA ■ Parameter Name Datentyp Beschreibung Eingänge ENABLE BOOL...
Seite 25
CR2031 OMPACT ODUL ETALL ■ Datenstruktur: TYPE CR2031 ConfigStruct CR2031 ConfigStruct STRUCT GUARDTIME: TIME; ■ Zweck: LIFETIME: BYTE; Parameter- und Konfigurati- Ch1: BYTE; (*2000/1*) (*0,2,4,5*) onsdaten können geschrie- Ch2: BYTE; (*2000/2*) (*0,2,4,5*) Ch3: BYTE; (*2000/3*) (*0,2,4,5*) ben/gelesen werden. Ch4: BYTE; (*2000/4*) (*0,2,4,5*) Die Datenstruktur wird dem Ch5: BYTE;...
Seite 26
CR2031 OMPACT ODUL ETALL Name Datentyp Beschreibung PwmFrq BYTE PWM-Frequenz in Hz; 20 bis 250 Hz (Default 100 Hz) P_Value1_2 BYTE P-Anteil des Stromreglers für Kanalpaar 1/2 Wert in % bezogen auf diie Soll-/Ist-Differenz (Default 50 %) I_Value1_2 BYTE I-Anteil des Stromreglers für Kanalpaar 1/2 Wert in % bezogen auf diie Soll-/Ist-Differenz (Default 20 %) Max_ WORD...
Seite 27
CR2031 OMPACT ODUL ETALL ■ Datenstruktur: TYPE CR2031 InOutStruct CR2031 InOutStruct STRUCT BinOut1: BOOL; ■ Zweck: BinOut2: BOOL; Aktuelle E/A-Daten werden gelesen BinOut3: BOOL; BinOut4: BOOL; bzw. geschrieben. BinOut5: BOOL; Die Datenstruktur wird dem Funktions- BinOut8: BOOL; eingang „IO_DATA“ über den ADR- AnaOut1_2: INT;...
CR2031 OMPACT ODUL ETALL 9 Wartung, Instandsetzung und Entsorgung Da innerhalb des Moduls keine vom Anwender zu wartenden Bauteile enthalten sind, darf das Gehäuse nicht geöffnet werden. Die Instandsetzung des Moduls darf nur durch den Hersteller durchgeführt werden. Die Entsorgung muß gemäß den nationalen Umweltvorschriften erfolgen. 10 Zulassungen/Normen Prüfnormen und Bestimmungen siehe Technische Daten (Datenblätter), Seite 10.
CR2031 OMPACT ODUL ETALL 11 Begriffe und Abkürzungen 0b ... binärer Zahlenwert (zur Bitcodierung), z.B. 0b0001 0000 0d ... dezimaler Zahlenwert, z.B. 0d100 0x ... hexadezimaler Zahlenwert, z.B. 0x64 (= 100 dezimal) Baudrate Übertragungsgeschwindigkeit (1 Baud = 1 Bit/sec.) CAN Application Layer CAN basierendes Netzwerkprotkoll auf Applikationsebene Controller Area Network (Bussystem für den Einsatz im Mobilbereich) CAN_H...
Seite 30
CR2031 OMPACT ODUL ETALL Node Guarding Parametrierbare zyklische Überwachung von Slave-Netzwerkteilnehmern durch einen übergeordneten Master-Knoten, sowie die Überwachung dieses Abfragemechanismus durch die Slave-Teilnehmer. Node-ID Knotenpunkt-Identifier (Kennung eines Teilnehmers im CANopen Netz) Objekt (auch OBJ) Oberbegriff für austauschbare Daten/Botschaften innerhalb des CANopen- Netzwerks Objektverzeichnis enthält alle CANopen-Kommunikationsparameter eines Gerätes, sowie gerä-...
SELV voltage of which is not grounded. The terminals may only be supplied with the signals indicated in the technical data or on the unit label and only the approved accessories of ifm electronic gmbh may be connected.
CR2031 OMPACT ODUL ETAL 2 Function and features The CR2031 I/O module enables decentralised triggering of actuators and propor- tional valves. The coil current can be monitored and controlled via the integrated current measurement. 2.1 CAN communication • The module supports binary/analogue outputs and is therefore classified in the device profile "I/O module"...
CR2031 OMPACT ODUL ETAL 3 Mounting To protect the module against mechanical stress it must be mounted so that it lies completely flat on an even mounting surface. To do so, three cylinder screws with hexagon socket (M5 x L) to DIN 912 or DIN 7984 must be used. Mounting variants preferred wrong...
CR2031 OMPACT ODUL ETAL 4.3 M16 cable gland Use a suitable cable to ensure ingress resistance of the M16 cable gland. If the M12 connectors are used for the device supply and CAN connection, close the terminal chamber with the supplied M16 cover plug (remove the cable gland and insert the M16 cover plug).
Seite 37
CR2031 OMPACT ODUL ETAL Examples types of connection Supply 01 / 02 Supply Supply 01 / 02 03 / 04 / 05 03 / 04 / 05 CAN IN CAN OUT Beispiel 1 Example 1 n.c. n.c. n.c. 01 / 02 Supply Supply 01 / 02...
1 LED green (PWR) 1 LED red (diagnosis, DIA) 8 LEDs yellow (status of the outputs) ifm electronic gmbh • Teichstraße 4 • 45 127 Essen We reserve the right to make technical alterations without prior notice. CR2031 / page 1...
(ON) analogue output: PWM preset value ≠ 0 current preset value > 20 ifm electronic gmbh • Friedrichstraße 1 • 45128 Essen We reserve the right to make technical alterations without prior notice. CR2031 / page 2...
DIN EN 61000-6-2 (CE) Interference emission according to UN/ECE-R10 (E1 type approval) and DIN EN 61000-6-3 (CE) ifm electronic gmbh • Friedrichstraße 1 • 45128 Essen We reserve the right to make technical alterations without prior notice. CR2031 / page 3 14.08.2014...
= operating voltage (via CANin/CANout plug) = ground (output) = operating voltage (output) = ground (module) = operating voltage (module) ifm electronic gmbh • Friedrichstraße 1 • 45128 Essen We reserve the right to make technical alterations without prior notice. CR2031 / page 4 14.08.2014...
CR2031 OMPACT ODUL ETAL 6 Parameter and EMCY object overview Automatic saving of the communication and unit parameters can be activated or deactivated by means of the "save all parameters" entry (see object directory, index 1010). When the value 0x02 is entered into SIdx 01, all parameters are automatically saved if changes were made.
CR2031 OMPACT ODUL ETAL Parameter list Index Default Change Change Parameter in object (factory preset) automatically effective directory saved Manufacturer Specific Profile Area; index 2000 to 5FFF I/O Configuration 2000 binary outputs adjustable after PreOp PWM Frequency 2001 0x64 (100 Hz) adjustable after PreOp Control parameters...
Seite 44
CR2031 OMPACT ODUL ETAL EMCY Object The following error codes to DSP-401 and DSP-301 are supported: EMCY Error Additional Description Code Code 0x3300 0x05 0x00 "Output Voltage" Supply voltage VBB of the outputs is missing 0x6100 0x11 0x00 "Internal Software“ Overflow of a Tx queue, e.g.
CR2031 OMPACT ODUL ETAL 7 Object directory Manufacturer Specific Profile Area; index 2000 to 5FFF Index S-Idx Designation Type Default Description 2000 u8, ro 0x08 Number of the entries Configuration (= number of the output channels) Configuration u8, rw 0x02 0 = OFF channel 1 2 = binary output...
Seite 46
CR2031 OMPACT ODUL ETAL Index S-Idx Designation Type Default Description 2001 u8, rw 0x64 Setting in Hz (20...250 Hz) Frequency (100 Hz) If an invalid value is entered, the previous value remains valid. 2002 Actual current u8, ro 0x04 Number of the entries values (= number of the current measuring channels) Current values...
Seite 47
CR2031 OMPACT ODUL ETAL Index S-Idx Designation Type Default Description 2007 Control parameters u8, ro 0x03 Number of the entries channel 7, 8 (= number of the control parameters) P value u8, rw 0x32 P value of the current control function channel 7, 8 channel 7, 8 (= value in % referred to the preset- actual value difference)
CR2031 OMPACT ODUL ETAL Communication Profile Area; index 1000 to 1FFF Index S-Idx Designation Type Default Description 1000 Device type u32, ro Profile 401; 0x00030191 Inputs and outputs, binary and analogue 1001 Error register u8, ro 0x00 Bit-coded to profile 301, the following is supported: 0b 0000 0000 no error 0b 0000 0001 generic error...
Seite 49
CR2031 OMPACT ODUL ETAL Index S-Idx Designation Type Default Description 1010 Number of u8, ro 0x01 Number of the "save" options save options "Save all u32, rw 0x02 Automatic saving of all changed parameters” parameters OFF/ON. 0 = AutoSave OFF 2 = AutoSave ON 1011 Number of...
Seite 50
CR2031 OMPACT ODUL ETAL Index S-Idx Designation Type Default Description 1400 Receive u8, ro 0x02 Number of the entries Rec PDO 1 PDO 1 Binary outputs COB ID u32, rw 0x200 + - PDO is valid (bit 31 = 0) PDO 1 Node ID - CAN ID of the 1st Rec PDOs...
Seite 51
CR2031 OMPACT ODUL ETAL Index S-Idx Designation Type Default Description 1601 Index in u32, ro 6411 Sldx 03 contains the preset value 0x6411 03 the object of the analogue output channel 5 or 6. directory The value is interpreted as pulse/break ratio in ‰...
CR2031 OMPACT ODUL ETAL 8 Programming 8.1 General The I/O module must be initialised as CANopen slave with the CANopen start functions "COP_MSTR_BOOTUP" and "COP_MSTR_MAIN" by the R 360 master and set to the state "OPERATIONAL" (LED "PWR"flashes, 2 Hz). 8.2 Programming function If the function "CR2031"...
For configuration data the declaration part can already contain an assignment of values. In the program access to a structure component can be represented as follows: Screen shot of the CODESYS programming platform More programming examples of the I/O module can be obtained from ifm electronic gmbh upon request.
Seite 54
CR2031 OMPACT ODUL ETAL ■ Function: CR2031 CR2031 ■ Library: CR2031_x.lib ENABLE CFG_RESULT ■ Purpose: INIT IO_RCV Sets parameters and reads NODE_ID the configuration and I/O data CFG_READ of the input/output module CFG_WRITE CR2031 CFG_DATA RX_TYPE TX_TYPE SYNC IO_DATA ■ Parameter Name Data type Description...
CR2031 OMPACT ODUL ETAL ■ Data structure: TYPE CR2031 ConfigStruct CR2031 ConfigStruct STRUCT GUARDTIME: TIME; ■ Purpose: LIFETIME: BYTE; Parameter and configuration Ch1: BYTE; (*2000/1*) (*0,2,4,5*) data can be written or read. Ch2: BYTE; (*2000/2*) (*0,2,4,5*) Ch3: BYTE; (*2000/3*) (*0,2,4,5*) The data structure is assigned Ch4: BYTE;...
Seite 56
CR2031 OMPACT ODUL ETAL Name Data type Description PwmFrq BYTE PWM frequency in Hz; 20 to 250 Hz (default 100 Hz) P_Value1_2 BYTE P value of the current control function channel pair 1/2 value in % referred to the preset-actual value difference (default 50) I_Value1_2 BYTE I value of the current control function channel pair 1/2...
Seite 57
CR2031 OMPACT ODUL ETAL ■ Data structure: TYPE CR2031 InOutStruct CR2031 InOutStruct STRUCT BinOut1: BOOL; ■ Purpose: BinOut2: BOOL; The current I/O data of the module BinOut3: BOOL; BinOut4: BOOL; are read or written. BinOut5: BOOL; The data structure is assigned to the BinOut8: BOOL;...
CR2031 OMPACT ODUL ETAL 9 Maintenance, repair and disposal As the module does not contain any components which must be maintained by the user, the housing must not be opened. The maintenance of the module may only be carried out by the manufacturer. The disposal must be carried out according to the corresponding national envi- ronmental regulations.
CR2031 OMPACT ODUL ETAL 11 Terms and abbreviations 0b ... binary value (for bit coding), e.g. 0b0001 0000 0d ... decimal numerical value, e.g. 0d100 0x ... hexadecimal value, e.g. 0x64 (= 100 decimal) Baudrate transmission speed (1 baud = 1 bit/s) CAN Application Layer CAN-based network protocol on application level Controller Area Network (bus system for use in mobile applications)
Seite 60
CR2031 OMPACT ODUL ETAL Node Guarding adjustable cyclic monitoring of slave network participants by a higher master node as well as the monitoring of this polling process by the slave participants Node ID node identifier (identification of a participant in the CANopen network) Object (also OBJ) term for data/messages which can be exchanged in the CANopen network Object directory...