This device manual applies to devices as from the production status CR2012AH
2
Page 3
CabinetModule CR2012
1 Preliminary note
Technische Daten, Zulassungen, Zubehör und weitere Informationen unter
www�ifm�com�
1.1 Symbols used
►Instruction
>Reaction, result
[…]Designation of keys, buttons or indications
→Cross-reference
Important note
Non-compliance may result in malfunction or interference�
Information
Supplementary note
UK
WARNING
Warning of serious personal injury�
Death or serious irreversible injuries may result�
CAUTION
Warning of personal injury�
Slight reversible injuries may result�
NOTE
Warning of damage to property�
2 Safety instructions
This description is part of the unit� It contains texts and drawings concerning the
correct handling of the module and must be read before installation or use�
Observe the information of the description� Non-observance of the notes, operation which is not in accordance with use as prescribed below, wrong installation or
handling can result in serious harm concerning the safety of persons and plant�
The instructions are for authorised persons according to the EMC and low voltage
guidelines� The unit must be installed and commissioned by a skilled electrician
(programmer or service technician)� The device may only be installed, connected
and commissioned by qualified personnel�
Disconnect the device externally before doing any work on it� If necessary, also
If the unit is not supplied by the mobile on-board system (12/24 V battery operation) it must be ensured that the external voltage is generated and supplied according to the criteria for safety extra-low voltage (SELV) as this is supplied without
further measures to the connected controller, the sensors, and the actuators�
The wiring of all signals in connection with the SELV circuit of the unit must also
comply with the SELV criteria (safe extra-low voltage, safe electrical separation
from other electric circuits)�
If the supplied SELV voltage has an external connection to ground (SELV becomes PELV) the responsibility lies with the user and the respective national regulations for installation must be complied with� All statements in these operating
instructions refer to the unit the 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�
The unit can be operated within a wide temperature range according to the technical specification indicated below� Due to the additional self-heating the housing
walls can have high perceptible temperatures when touched in hot environments�
In case of malfunctions or uncertainties please contact the manufacturer�
Tampering with the unit can lead to considerable risks for the safety of persons
and plant� It is not permitted and leads to the exclusion of any liability and warranty
claims�
3 Functions and features
The device enables decentralised evaluation of sensor signals and decentralised
triggering of actuators and proportional valves�
WARNING
The device is not approved for safety tasks with respect to the protection of
persons�
3.1 CAN communication
●The device supports binary/analogue inputs/outputs and is therefore classified
in the device class “I/O module” to CiA DS 401�
●As regards the input/output functions, the device can be configured and it sup-
ports the following functions:
●There are 1 server SDO and 4 default PDOs according to CiA DS 401�The
PDO mapping can be changed (dynamic PDO mapping)�
The default identifiers are assigned according to the “predefined connection
set”�
●The COB IDs of the PDOs as well as the transmission type (synch/asynch) of
the individual PDOs can be configured�
●The device expects a synch object� The CAN identifier of the synch object can
be configured�
●The device supports “node guarding” and “heartbeat”� The “guard time”, the
“life time factor” and the “heartbeat time” can be configured�
●The device generates an emergency object� The COB ID of the EMCY object
can be configured�
●The device stores the last error� The error code of the corresponding emer-
gency object is stored�
●The device supports a reset function, i�e� the assignment of the parameters to
the factory default settings on request�
Factory default settings (→ 7.3 Communication profiles; Idx 1000 to 1FFF) and
(→ 7.4 Manufacturer-specific profiles; Idx 2000 to 6FFF)
4 Mounting
4.1 Mounting location
► The device is to be mounted in a dry and enclosed environment (e�g� control
panel of the driver‘s cab, separate control boxes, etc�)�
UK
ATTENTION
The housing must not be exposed to any torsion forces or mechanical stress�
5
Page 6
CabinetModule CR2012
4.2 Fixing
► Fix the device using 2 M4 x L screws via transversely arranged bore holes�
► As the internal heating of the electronics is conducted away via the housing,
ensure sufficient heat dissipation�
6
Page 7
CabinetModule CR2012
5 Electrical connection
5.1 Connectors
The supply cables and inputs/outputs are connected via AMP crimp connectors on
the front of the device�
UK
Pin connection (→ 8.4 Wiring)
You can find more information about the available connector accessories at:
www�ifm�com → Data sheet direct → CR2012 → Accessories
5.2 Fuses
► To protect the whole system (wiring and device) the individual electric circuits
must be protected with max� 8 A�
7
Page 8
CabinetModule CR2012
6 Set-up
6.1 PLC configuration in CODESYS 2.3
Parameter setting of the device functions and of the CAN interface is directly done
from the application programmed with CODESYS 2�3� To do so, the „Electronic
Data Sheet“ (EDS) is integrated via the CODESYS PLC configuration�
CODESYS dialogue „PLC configuration“ (example)
For a description of the setting and application of the „PLC configuration“ dialogue
see the CODESY manual and the CODESYS online help�
8
Page 9
CabinetModule CR2012
6.2 PLC configuration in CODESYS 3.5
The „Electronic Data Sheet“ (EDS) is installed in the [Device Repository]� Proceed
as follows in the main menu:
► Click on [Tools] / [Device Repository]�
► Select [Fieldbuses] / [CiA CANopen] / [CiA Remote Device] and click on [In-
stall]�
► Select EDS file and click on [Open]�
>In CODESYS 3�5 the devices are integrated as CiA remote devices in the de-
vice tree under a [CANopen_Manager] element�
The CANopen communication is configured via the CODESYS configuration
editor�
6.2.1 Heartbeat conguration
The function [Reset Node] must be activated on the tab [General] so that the
device applies the parameters set for heartbeat monitoring of the CANopen
Manager�
UK
9
Page 10
CabinetModule CR2012
6.2.2 SyncMonitoring
To activate the device-internal monitoring of the Sync cycle, the monitoring time
has to be written into the object directory entry 0x1006� This is possible by
supplementing the SDO list in the CANopen configurator or during the operating
time via the function block COP_SDOwrite�
The monitoring time is indicated in microseconds [μs].
6.3 Electronic Data Sheet
The EDS contains the description of all parameters and I/O data of the device in a
format defined by CANopen� The EDS files are provided for all CANopen slaves by
ifm electronic�
The EDS files are available at www�ifm�com�
10
Page 11
CabinetModule CR2012
7 Parameter setting
7.1 Automatic saving
Automatic saving of the communication and device parameters can be activated or
deactivated by means of the “save parameter” entry (object directory, index 1010,
S-Idx 01)�
● Value 0x00:
There is no automatic saving� Changed parameters are only valid until the device
is switched off or until the next reset�
UK
● Value 0x01:
Changed parameters will be saved if the string “save” is written in S-Idx 01� Otherwise changed parameters are only valid until the device is switched off or until the
next reset�
● Value 0x02:
Changed parameters are saved automatically�
7.2 Restoring the factory setting
With the function “restore” (object directory, index 1011, subindex 01) the factory
default values can be restored (except for the baud rate and the node ID)� They
become valid with the next power on�
11
Page 12
CabinetModule CR2012
7.3 Communication profiles; Idx 1000 to 1FFF
Parameters Index in
object
directory
COB ID Synch Object1005 000x80adjustableafter PreOp
Communication Cycle1006 000x00 (Off)adjustableimmediately
Guard Time100C 000x00 (Off)adjustableimmediately
Life Time Factor100D 000x00adjustableimmediately
Save Parameter1010 010x02 (AutoSave ON)yesimmediately
COB-ID EMCY1014 000x80 + node IDadjustableafter a reset
The life time factor 0 is interpreted as 1�The first guard protocol is interpreted as
"start guarding” even if guarding is not yet active at that time (guard time = 0)�
12
Page 13
7.4 Manufacturer-specific profiles; Idx 2000 to 6FFF
Baud rate *20F2, 20F30x04 (125 Kbit/s) yesafter a reset
Autostart20F40x00 (Off)adjustableimmediately
Entries in the object directory indexes 20F0/20F1 and/or 20F2/20F3 are only valid
if the rotary switches for baud rate and/or node ID are in the position “F”�
*) Observe rotary switch position!
Position and coding of the rotary switches (→ 8.2 Connecting, operating and display elements)
13
Page 14
CabinetModule CR2012
7.5 EMCY objects
The following error codes are supported according to DSP-301 and DSP-401:
EMCY codeError regAdditional
code
0x61000x110x00"Internal Software":
0x61010x110x00"Internal Software":
0x81000x110x00"Monitoring" (guarding error)
0x81200x110x00"Communication" (CAN error passive)
0x82000x110x00"Monitoring" (synch error)
Description
overflow of an Rx queue; e�g� frequency of the Rx PDOs
too high
only external reset via an entry in 1003 00
overflow of a Tx queue; e�g� device does not
communicate with the bus
only external reset via an entry in 1003 00
no guard object is received for "guard time" x "life time
factor"
reset with the next communication
CAN controller has passed into the CAN error passive
state
for "communication cycle" no synch object is received;
only in OPERATIONAL
reset with the next synch OBJ or PREOP
7.6 Boot-up message
The module sends a boot-up message after application of the supply voltage or
after a reset, to inform a CANopen master in the network about its presence or a
restart�
To ensure the compatibility with older device versions, a boot-up message is sent
in accordance with CANopen specifications DS-301 V3 and V4�
14
Page 15
8 Technical data
Control systems
8.1 Dimensions, mechanics, electronics
CabinetModule CR2012
CR2012
CabinetModule
I/O module
digital and analogue
163
18 LED
±1
29
13
for R 360 system
16 inputs/outputs
42,3
63
CANopen interface
10...32 V DC
ApplicationConnection of operating and display elements to CAN bus
to be installed in driver’s cabs, control panels or control boxes
(for mechanical protection potted in a potting tub)
142,3
UK
Possible I/O-configurations8 digital inputs
(also see wiring)4 digital/analogue inputs (to be configured via CANopen)
2 digital inputs/outputs, analogue outputs (to be configured via CANopen)
Inputs, digitalfor positive-switching sensor signals, switches or pushbuttons
Inputs, analogue• ratiometric, query of potentiometric signal transmitters (e.g. joystick)
(to be configured via CANopen)• absolute, conversion of input voltage (0...10 V) in 8-bit value
Outputsfor triggering pilot lights etc.
ConnectionsAMP crimp connector, to be clipped into place and thus vibration-resistant,
Inputs/outputs2 plugs, 18 poles
Operating voltage and CAN bus1 plug, 6 poles
Operating voltage U
Current consumption≤ 100 mA, without load (external fuse with max. 5 A)
25.04.2013We reserve the right to make technical alterations without prior notice!CR2012 / page 2
Page 17
CabinetModule CR2012
Control systems
8.3 Characteristics of the inputs/outputs, test standards and regulations
CR2012Characteristics of the inputs / outputs
Inputs
Channels 1...4, channels 9...12• 8 inputs for positive sensor signals
Channels 7...8, channels 15...16• 4 inputs for positive sensor signals
Channels 5...6, channels 13...14• 4 inputs, to be configured via CANopen:
Outputs
Channels 7, 15• 2 positive-switching outputs; short-circuit and overload protected;
Channels 8, 16• 2 PWM outputs (high side), variable frequency
For each input the pins +UBand Bin INx are available
Can be used as an alternative to the 4 outputs.
For input and output one pin is available (double configuration).
The inputs can be used to read back the output signals.
Current consumptionI
= 4 mA(for UB= 10 V)
IN
I
= 17 mA(for UB= 30 V)
IN
Switching threshholdsHIGH = 8 VLOW = 2.5 V
Switching frequency25 Hz max.(for ti = tp)
for ratiometric measurement for potentiometric transducers (e.g. joystick)
For each input the pins +U
, Ana INx and GND are available
B
Input resistancetyp. 50 kΩ
Resolution based on 1/2 supply voltage U
for absolute value measurement 0...10 V
For each input the pins Ana INx and GND are available
Input resistancetyp. 50 kΩ
Resolution8 bits
Accuracytyp. ± 2 LSB
as binary inputs
For each input the pins +U
and Bin INx are available
B
Input resistancetyp. 50 kΩ
Switching threshhold at 1/2 supply voltage U
the supply voltage U
is switched without additional fuse.
B
B
The output states can be read back (see inputs).
For each input the pins Bin OUTx and GND are available.
When inductive loads are switched, free-wheeling diodes must be connected in
parallel with the load!
Switching currentmax. 500 mA
Immunity toto ISO 7637-2, pulses 2a, 3a, 3b, 4, severity level 4, function state A
conducted interferenceto ISO 7637-2, pulse 5, severity level 3, function state A
to ISO 7637-2, pulse 1, 2b, severity level 4, function state C
Immunity to interfering fieldsto UN/ECE-R10 at 100V/m (E1 type approval)
and EN 61000-6-2: 2005 (CE)
Interference emissionto UN/ECE-R10 (E1 type approval)
and EN 61000-6-3: 2007 (CE)
Tests for railway applicationsEN 50155 clause 12.2 mechanical/climatic tests
25.04.2013We reserve the right to make technical alterations without prior notice!CR2012 / page 3
17
Page 18
CabinetModule CR2012
Control systems
8.4 Wiring
CR2012Wiring
View of the unit
Wiring
Plug X1
PinPotentialInputsOutputs
1channel 1Bin IN 1–––
2+U
B
3channel 2Bin IN 2–––
4+U
B
5channel 3Bin IN 3–––
6+U
B
7channel 4Bin IN 4–––
8+U
9+U
10+U
B
B
B
11channel 5Bin IN 5Ana IN 5––
12channel 6Bin IN 6Ana IN 6––
13GND
14GND
15channel 7Bin IN 7–Bin OUT 7
16GND
17channel 8Bin IN 8–Bin OUT 8PWM 8
18GND
Plug X2
1channel 9Bin IN 9–––
2+U
B
3channel 10Bin IN 10–––
4+U
B
5channel 11Bin IN 11–––
6+U
B
7channel 12Bin IN 12–––
8+U
9+U
10+U
B
B
B
11channel 13Bin IN 13Ana IN 13––
12channel 14Bin IN 14Ana IN 14––
13GND
14GND
15channel 15Bin IN 15–Bin OUT 15
16GND
17channel 16Bin IN 16–Bin OUT 16PWM 16
18GND
10030pre-definded error fieldrwu80x00up to 4 entries in error history
supported
error history can be deleted by
writing '0' to this entry
1error historyrou320x00000000
2error historyrou320x00000000
3error historyrou320x00000000
4error historyrou320x00000000
10050COB ID SYNCrwu320x00000080
10060communication cycle
period
10080device namerostrCR2012
10090HW VersionrostrHW Vx�x
100A0SW VersionrostrSW Vx�x
100C0guard timerwu160x0000time in ms
100D0life time factorrwu80x00if no "node guarding" is received
rwu320x00000000max� time between 2 synch
objects in µs; useful resolution
= 1 ms
within this time the module
expects a "node guarding" of the
network master
0 = node guarding deactivated
for "guard time" x "life time", the
module generates an EMCY
the result form "guard time" x "life
time" must be between 0 and
65535
10100number of save
options
1save parameterrwu320x000000020x00000000 = no save
10110number of restore
options
1restore default
parameter
20
rou80x01
0x00000001 = saving all
parameters after the string 'save'
is written to this entry
0x00000002 = auto save
rou80x01
rwu320x00000001restore all parameters to default
value after next reset if the string
'load' is written to this entry
Page 21
CabinetModule CR2012
IndexS-IdxNameTypeDefaultDescription
10140COB ID EMCYrwu320x40000080
+ NodeID
10160number of monitored
devices
1consumer heartbeat
time
10170producer heartbeat
time
10180number of identity
objects
1vendor IDrou320x0069666D
14000highest numbered
subindex Receive
PDO 1
rou80x01
rwu320x00000000heartbeat monitoring time for
rwu160x0000time interval [ms] where the
rou80x04
rou80x02
module generates EMCY
messages
(bit 30 = 1)
node n
monitoring of only one node is
supported
0x0nntttt = monitoring time [ms]
0x0nntttt = node number
(if nn or tttt = 0, no monitoring is
carried out)
module generates a producer
heartbeat
UK
1COB ID Receive
PDO 1
2transmission type Rec
PDO 1
14010highest numbered
subindex Receive
PDO 2
1COB ID Receive
PDO 2
2transmission type Rec
PDO 2
16000number of application
objects linked with Rec
PDO 1
11st mapping object
Rec PDO 1
22nd mapping object
Rec PDO 1
rwu320x00000200
+ NodeID
rwu80x010x01���0xF0 = synch cyclic
rou80x02
rwu320x00000300
+ NodeID
rwu80x010x01���0xF0 = synch cyclic
rwu80x01
rwu320x08010062index 6200, subindex 1, 8 bits
rwu320x00000000no object
PDO is valid (bit 31 = 0)
0xFE���0xFF = asynch
(immediately)
PDO is valid (bit 31 = 0)
0xFE���0xFF = asynch
(immediately)
33rd mapping object
Rec PDO 1
44th mapping object
Rec PDO 1
rwu320x00000000no object
rwu320x00000000no object
21
Page 22
CabinetModule CR2012
IndexS-IdxNameTypeDefaultDescription
55th mapping object
Rec PDO 1
66th mapping object
Rec PDO 1
77th mapping object
Rec PDO 1
88th mapping object
Rec PDO 1
16010number of application
objects linked with Rec
PDO 2
11st mapping object
Rec PDO 2
22nd mapping object
Rec PDO 2
33rd mapping object
Rec PDO 2
44th mapping object
Rec PDO 2
rwu320x00000000no object
rwu320x00000000no object
rwu320x00000000no object
rwu320x00000000no object
rwu80x02
rwu320x10011464index 6414 subindex 1, 16 bits
rwu320x10021464index 6414 subindex 2, 16 bits
rwu320x00000000no object
rwu320x00000000no object
55th mapping object
Rec PDO 2
66th mapping object
Rec PDO 2
77th mapping object
Rec PDO 2
88th mapping object
Rec PDO 2
18000highest numbered
subindex Transmit
PDO 1
1COB ID Transmit
PDO 1
2transmission type
Trans PDO 1
3inhibit timer Trans
PDO 1
5event timer Trans
PDO 1
rwu320x00000000no object
rwu320x00000000no object
rwu320x00000000no object
rwu320x00000000no object
rou80x05
rwu320x00000180
+ NodeID
rwu80xFF0x01���0xF0 = synch cyclic
rwu160x0000min� interval for transmission (in
rwu160x0000max transfer break in trans type
PDO is valid (bit 31 = 0)
0xFE���0xFF = asynch
(immediately)
100 µs)
"asynch" (0���65535 ms)
when this time has elapsed the
PDO is transferred even if the
appl� event has not occurred
18010highest numbered
subindex Transmit
PDO 2
22
rou80x05
Page 23
CabinetModule CR2012
IndexS-IdxNameTypeDefaultDescription
1COB ID Transmit
PDO 2
2transmission type
Trans PDO 2
3inhibit timer Trans
PDO 2
5event timer Trans
PDO 2
1A000number of application
objects linked with
Trans PDO 1
11st mapping object
Trans PDO 1
22nd mapping object
Trans PDO 1
33rd mapping object
Trans PDO 1
rwu320x00000280
+ NodeID
rwu80x010x01���0xF0 = synch cyclic
rwu160x0000min� interval for transmission (in
rwu160x0000max transfer break in trans type
rwu80x01
rwu320x10010061index 6100, subindex 1, 16 bits
rwu320x00000000no object
rwu320x00000000no object
PDO is valid (bit 31 = 0)
0xFE���0xFF = asynch
(immediately)
100 µs)
"asynch" (0���65535 ms)
when this time has elapsed the
PDO is transferred even if the
appl� event has not occurred
UK
44th mapping object
Trans PDO 1
55th mapping object
Trans PDO 1
66th mapping object
Trans PDO 1
77th mapping object
Trans PDO 1
88th mapping object
Trans PDO 1
1A010number of application
objects linked with
Trans PDO 2
11st mapping object
Trans PDO 2
22nd mapping object
Trans PDO 2
33rd mapping object
Trans PDO 2
rwu320x00000000no object
rwu320x00000000no object
rwu320x00000000no object
rwu320x00000000no object
rwu320x00000000no object
rwu80x04
rwu320x10010164index 6401, subindex 1, 16 bits
rwu320x10020164index 6401, subindex 2, 16 bits
rwu320x10030164index 6401, subindex 3, 16 bits
44th mapping object
Trans PDO 2
55th mapping object
Trans PDO 2
rwu320x10040164index 6401, subindex 4, 16 bits
rwu320x00000000no object
23
Page 24
CabinetModule CR2012
IndexS-IdxNameTypeDefaultDescription
66th mapping object
Trans PDO 2
77th mapping object
Trans PDO 2
88th mapping object
Trans PDO 2
rwu320x00000000no object
rwu320x00000000no object
rwu320x00000000no object
24
Page 25
CabinetModule CR2012
11.2 Manufacturer-specific profiles; Idx 2000 to 6FFF
IndexS-IdxNameTypeDefaultDescription
20000number of IOsrou80x10
1configuration channel 1rwu80x010x00 = off
0x01 = binary input
2configuration channel 2rwu80x010x00 = off
0x01 = binary input
3configuration channel 3rwu80x010x00 = off
0x01 = binary input
4configuration channel 4rwu80x010x00 = off
0x01 = binary input
5configuration channel 5rwu80x030x00 = off
0x01 = binary input
0x03 = analog input absolute
(voltage 0���10 V; 0x00���0xFF)
0x06 = analog input ratiometric
UK
6configuration channel 6rwu80x030x00 = off
0x01 = binary input
0x03 = analog input absolute
(voltage 0���10 V; 0x00���0xFF)
0x06 = analog input ratiometric
20F10CANopen node IDrwu80x20The entries 20F0/20F1 must
always contain identical values�
The new entries are valid after
a reset (switching the module
off/on)�
Values outside the permissible
ranges will be rejected�
20F30CAN baud raterwu80x03The entries 20F2/20F3 must
always contain identical values�
The new entries are valid after
a reset (switching the module
off/on)�
Values outside the permissible
ranges will be rejected�
20F40auto startrwu160x00Time after reaching
Preoperational State to change
to Operational State�
0���5000 ms
0 = auto start deactivated
25000number of 8bit user
variables
rou80x0AIdx 2500���2530 = range which
can be freely used for customerspecific entries
18bit user variable 1rwu8
28bit user variable 2rwu8
26
Page 27
CabinetModule CR2012
IndexS-IdxNameTypeDefaultDescription
38bit user variable 3rwu8
48bit user variable 4rwu8
58bit user variable 5rwu8
68bit user variable 6rwu8
78bit user variable 7rwu8
88bit user variable 8rwu8
98bit user variable 9rwu8
A8bit user variable 10rwu8
25100number of 16bit user
variables
116bit user variable 1rwu16
216bit user variable 2rwu16
316bit user variable 3rwu16
416bit user variable 4rwu16
516bit user variable 5rwu16
616bit user variable 6rwu16
716bit user variable 7rwu16
816bit user variable 8rwu16
916bit user variable 9rwu16
A16bit user variable 10rwu16
25200number of 32bit user
variables
UK
rou80x0AIdx 2500���2530 = range which
can be freely used for customerspecific entries
rou80x0AIdx 2500���2530 = range which
can be freely used for customerspecific entries
132bit user variable 1rwu32
232bit user variable 2rwu32
332bit user variable 3rwu32
432bit user variable 4rwu32
532bit user variable 5rwu32
632bit user variable 6rwu32
732bit user variable 7rwu32
832bit user variable 8rwu32
932bit user variable 9rwu32
A32bit user variable 10rwu32
25300number of user stringsrou80x02Idx 2500���2530 = range which