Leuze MA 238i User manual

MA 238
i
Fieldbus gateway – EtherCAT
Original operating instructions
EN 2022/04/22 - 50120383
We reserve the right to make technical changes

Leuze electronic GmbH + Co. KG MA 238
i
2
© 2022
Leuze electronic GmbH + Co. KG
In der Braike 1
D-73277 Owen / Germany
Phone: +49 7021 573-0
Fax: +49 7021 573-199
http://www.leuze.com

Leuze electronic GmbH + Co. KG MA 238
i
3
1 General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1 Explanation of symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Declaration of Conformity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3 Description of functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4 Definition of terms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2 Safety . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1 Intended use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2 Foreseeable misuse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.3 Competent persons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.4 Exemption of liability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3 Fast commissioning / operating principle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.1 Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.2 Device arrangement and selection of the mounting location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.3 Electrical connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.3.1 Connecting the Leuze device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.3.2 Connecting the power supply and the bus cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.4 Starting the device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.5 MA 238
i
on EtherCAT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.5.1 Device description file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.5.2 Device profile. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.5.3 Starting the MA 238
i
in the EtherCAT system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 Device description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.1 General information to the connection units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2 Characteristics of the connection units . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.3 Device construction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.4 Operating modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.5 Fieldbus systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.5.1 EtherCAT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5 Technical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.1 General specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.2 Dimensioned drawings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.3 Type overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6 Installation and mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.1 Storage, transportation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.2 Mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.3 Device arrangement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.3.1 Selecting a mounting location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6.4 Cleaning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7 Electrical connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
7.1 Safety notices for the electrical connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
7.2 Electrical connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
7.2.1 PWR IN – voltage supply / switching input/output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
7.2.2 PWR OUT switching input/output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
7.3 BUS IN. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.4 BUS OUT. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

Leuze electronic GmbH + Co. KG MA 238
i
4
7.5 Device interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
7.5.1 RS 232 device interface (accessible after opening the device, internal) . . . . . . . . . . . . . . . . . . . 24
7.5.2 Service interface (internal). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
7.6 EtherCAT wiring. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
7.7 Cable lengths and shielding. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
8 Status displays and operational controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
8.1 LED status indicators. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
8.1.1 LED indicators on the circuit board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
8.1.2 LED indicators on the housing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
8.2 Internal interfaces and operational controls. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
8.2.1 Overview of operational controls of the . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
8.2.2 Connections of the X30 … connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
8.2.3 RS 232 service interface – X33 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
8.2.4 S10 service switch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
8.2.5 Rotary switch S4 for device selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
9 Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
9.1 Connecting the service interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
9.2 Reading out information in Service mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
10 Telegram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
10.1 Structure of the fieldbus telegram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
10.2 Description of the input bytes (status bytes) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
10.2.1 Structure and meaning of the input bytes (status bytes) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
10.2.2 Detailed description of the bits (input byte 0). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
10.2.3 Detailed description of the bits (input byte 1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
10.3 Description of the output bytes (control bytes) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
10.3.1 Structure and meaning of the output bytes (control bytes) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
10.3.2 Detailed description of the bits (output byte 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
10.3.3 Detailed description of the bits (output byte 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
10.4 RESET function / deleting memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
11 Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
11.1 Functionality of the data exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
11.1.1 Reading slave data in Collective mode (gateway -> PLC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
11.1.2 Writing slave data in Collective mode (PLC -> gateway). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
11.1.3 Command Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
12 Commissioning and configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
12.1 Measures to be performed prior to the initial commissioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
12.1.1 Connecting the power supply and the bus cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
12.2 Starting the device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
12.3 MA 238
i
in the EtherCAT system. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
12.4 Starting the MA 238
i
in the EtherCAT system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
12.5 CANopen over EtherCAT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
12.5.1 Device profile. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
12.5.2 Device description file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
12.5.3 Object index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
12.6 Setting the read parameters on the Leuze device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
12.6.1 Specific feature for the use of hand-held scanners (bar code and 2D devices, combi
devices with RFID). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
12.6.2 Specific features in the operation of an RFM/RFI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
13 Diagnostics and troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

Leuze electronic GmbH + Co. KG MA 238
i
5
13.1 General causes of errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
13.2 Interface errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
13.3 Service and support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
14 Type overview and accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
14.1 Part number code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
14.2 Type overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
14.3 Accessories – Connectors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
14.4 Accessories – Preassembled cables for voltage supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
14.4.1 Contact assignment of PWR connection cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
14.4.2 Technical data of the cables for voltage supply. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
14.4.3 Order codes of the cables for voltage supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
14.5 Accessory – Preassembled cables for bus connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
14.5.1 General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
14.5.2 Contact assignment of M12 Ethernet connection cable KB ET… . . . . . . . . . . . . . . . . . . . . . . . . 57
14.5.3 Technical data M12 Ethernet connection cable KB ET… . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
14.5.4 Order codes of M12 Ethernet connection cable KB ET… . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
14.6 Accessory – Preassembled cables for connecting Leuze Ident devices . . . . . . . . . . . . . . . . . . . . . 58
14.6.1 Order codes for the device connection cables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58
14.6.2 Contact assignment for the device connection cables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
15 Maintenance. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
15.1 General maintenance information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
15.2 Repairs, servicing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
15.3 Disassembling, packing, disposing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
16 Specifications for Leuze end devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
16.1 Standard setting, KONTURflex (S4 switch position 0). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
16.2 Bar code reader BCL 8 (S4 switch position 1). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
16.3 Bar code reader BCL 22 (S4 switch position 2). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
16.4 Bar code reader BCL 300i, BCL 500i, BCL 600i (S4 switch position 4) . . . . . . . . . . . . . . . . . . . . . 63
16.5 Bar code reader BCL 90, BCL 900i (S4 switch position 5) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
16.6 LSIS 122, LSIS 222 (S4 switch position 6) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
16.7 LSIS 4x2i, DCR 202i (S4 switch position 7). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
16.8 Hand-held scanner (S4 switch position 8) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
16.9 RFI, RFM, RFU RFID readers (S4 switch position 9) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
16.10 BPS 8 bar code positioning system (S4 switch position A) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
16.11 BPS 300i bar code positioning system, ODSL xx optical distance sensors with RS 232
interface (S4 switch position B) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
16.12 Modular connection unit MA 3x (S4 switch position C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
16.13 Resetting the parameters (S4 switch position F) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
17 Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
17.1 ASCII Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73

Leuze electronic GmbH + Co. KG MA 238
i
6
1 General information
1.1 Explanation of symbols
The symbols used in this technical description are explained below.
1.2 Declaration of Conformity
The MA 238
i
modular connection units have been designed and manufactured in accordance with appli-
cable European directives and standards.
The manufacturer of the product, Leuze electronic GmbH + Co. KG in D-73277 Owen, possesses a certi-
fied quality assurance system in accordance with ISO 9001.
The modular connection unit is "UL LISTED" in accordance with American and Canadian safety standards
and fulfills the requirements of Underwriter Laboratories Inc. (UL).
EtherCAT® is a licensed and registered brand of Beckhoff Automation GmbH.
1.3 Description of functions
The MA 238
i
modular connection unit is used to connect Leuze devices directly to the fieldbus.
Bar code readers: BCL 8, 22, 300i, 500i, 600i, 90, 900i
2D-code reader: LSIS 122, LSIS 222, LSIS 4x2i, DCR 200i
Hand-held scanner ITxxxx, HFU/HFM
RFID read/write devices: RFM 12, 32, 62 & RFI 32, RFU 100, RFU 200
Bar code positioning systems: BPS 8, BPS 300
Optical distance sensors: ODSL 9, ODSL 30, ODSL 96B
Measuring light curtain: KONTURflex to Quattro-RSX/M12
multiNet master connection
box: MA 3x
Additional RS 232 devices: Scales, third-party devices
This is accomplished by transmitting the data from the DEV via an RS 232 (V.24) interface to the MA 238
i
where a module converts it into the EtherCAT protocol. The data format on the RS 232 interface corre-
sponds to the Leuze standard data format (9600bd, 8N1 and STX, data, CR, LF).
The corresponding Leuze devices are selected using a rotary code switch on the circuit board of the
connection unit. Many additional RS 232 devices can be connected through a universal position.
Leuze can only provide support for the devices offered in the product range.
ATTENTION!
This symbol precedes text messages which must strictly be observed. Failure to observe the
provided instructions could lead to personal injury or damage to equipment.
NOTE
This symbol indicates text passages containing important information.
NOTE
The Declaration of Conformity for these devices can be requested from the manufacturer.

Leuze electronic GmbH + Co. KG MA 238
i
7
1.4 Definition of terms
For better understanding of the explanations provided in this document, a definition of terms follows below:
•Bit designation:
The 1st bit or byte begins with count number "0" and means bit/byte 20.
•Data length:
Size of a valid, continuous data packet in bytes.
• ESI file (EtherCAT Slave Information):
Description of the device for the control.
•Consistent:
Data which belongs together with regard to content and which must not be separated is referred to
as consistent data. When identifying objects, it must be ensured that the data is transmitted com-
pletely and in the correct order, otherwise the result is falsified.
• Leuze device (DEV):
Leuze devices, e.g., bar code readers, RFID readers, VisionReader…
•Online command:
These commands refer to the respective, connected ident device and may be different depending
on the device. These commands are not interpreted by the MA 238
i
, but are instead transmitted
transparently (see description of Ident device).
•CR:
Cross reference
• Perspective of I/O data in the description:
Output data is data which is sent by the control to the MA. Input data is data which is sent by the
MA to the control.
• Toggle bits:
Status toggle bit
Each change of state indicates that an action was performed, e.g., bit ND (new data): each change
of state indicates that new received data was transmitted to the PLC.
Control toggle bit
An action is performed on each change of state, e.g., bit SDO: on each change of state, the regis-
tered data is sent by the PLC to the MA 238
i
.

Leuze electronic GmbH + Co. KG MA 238
i
8
2 Safety
This device was developed, manufactured and tested in line with the applicable safety standards. It corre-
sponds to the state of the art.
2.1 Intended use
The MA 238
i
modular connection unit is used for connecting Leuze devices such as bar code or 2D-code
readers, hand-held scanners, RFID read/write devices, etc. directly to the fieldbus.
2.2 Foreseeable misuse
Any use other than that defined under "Intended use" or which goes beyond that use is considered
improper use.
In particular, use of the device is not permitted in the following cases:
• in rooms with explosive atmospheres
• as stand-alone safety component in accordance with the machinery directive 1)
• for medical purposes
2.3 Competent persons
Connection, mounting, commissioning and adjustment of the device must only be carried out by competent
persons.
Prerequisites for competent persons:
• They have a suitable technical education.
• They are familiar with the rules and regulations for occupational safety and safety at work.
• They are familiar with the technical description of the device.
• They have been instructed by the responsible person on the mounting and operation of the device.
CAUTION!
Observe intended use!
Only operate the device in accordance with its intended use. The protection of personnel and
the device cannot be guaranteed if the device is operated in a manner not complying with its
intended use.
Leuze electronic GmbH + Co. KG is not liable for damages caused by improper use.
Read the technical description before commissioning the device. Knowledge of this technical
description is an element of proper use.
NOTE
Comply with conditions and regulations!
Observe the locally applicable legal regulations and the rules of the employer's liability insur-
ance association.
ATTENTION!
For UL applications, use is only permitted in Class 2 circuits in accordance with the NEC
(National Electric Code).
1) Use as safety-related component within the safety function is possible, if the component combination is designed corre-
spondingly by the machine manufacturer.
NOTE
Do not modify or otherwise interfere with the device!
Do not carry out modifications or otherwise interfere with the device.
The device must not be tampered with and must not be changed in any way.
The device must not be opened. There are no user-serviceable parts inside.
Repairs must only be performed by Leuze electronic GmbH + Co. KG.

Leuze electronic GmbH + Co. KG MA 238
i
9
Certified electricians
Electrical work must be carried out by a certified electrician.
Due to their technical training, knowledge and experience as well as their familiarity with relevant stan-
dards and regulations, certified electricians are able to perform work on electrical systems and indepen-
dently detect possible dangers.
In Germany, certified electricians must fulfill the requirements of accident-prevention regulations BGV A3
(e.g. electrician foreman). In other countries, there are respective regulations that must be observed.
2.4 Exemption of liability
Leuze electronic GmbH + Co. KG is not liable in the following cases:
• The device is not being used properly.
• Reasonably foreseeable misuse is not taken into account.
• Mounting and electrical connection are not properly performed.
• Changes (e.g., constructional) are made to the device.

Leuze electronic GmbH + Co. KG MA 238
i
10
3 Fast commissioning / operating principle
3.1 Mounting
The gateway mounting plate MA 238
i
can be mounted in two different ways:
• Using four threaded holes (M6) or
• Using two M8x6 screws on the two lateral grooves.
3.2 Device arrangement and selection of the mounting location
Ideally, the MA 238
i
should be mounted so that it is easily accessible near the Ident device in order to
ensure good operability, e.g., for configuring the connected device.
Detailed information can be found in Chapter 6.3.1.
3.3 Electrical connection
The devices from the MA 2xx
i
family feature four M12 connectors/sockets which are coded differently
depending on the interface.
The voltage supply (PWR IN) as well as the switching inputs/outputs (PWR OUT or PWR IN) are
connected there. The number and function of the switching inputs/outputs depends on the connected end
device.
An internal RS 232 interface is used for connecting the respective Leuze device. Another internal RS 232
interface functions as a service interface for configuring the connected device via a serial null modem
cable.
Figure 3.1: MA 238
i
connections
Detailed information can be found in Chapter 7.
3.3.1 Connecting the Leuze device
To connect the Leuze device to the internal RS 232 device interface, open the housing of the MA 238
i
and lead the corresponding device cable (see Chapter 14.6) through the middle threaded opening.
Connect the cable to the internal device interface (X30, X31 or X32, see Chapter 7.5.1).
Use rotary switch S4 (see Chapter 8.2.5) to select the connected device.
Now screw the PG cable gland into the threaded opening to provide strain relief and ensure degree of
protection IP 65.
Finally, close the housing of the MA 238
i
.
Connecting the functional earth FE
Ensure that the functional earth (FE) is connected correctly.
Unimpaired operation is only guaranteed when the functional earth is connected properly. All electrical
disturbances (EMC couplings) are discharged via the functional earth connection.
NOTE
Below you will find a short description for the initial commissioning of the EtherCAT gateway
MA 238
i
. Detailed explanations for the listed points can be found throughout the handbook.
PWR OUT
VOUT 1
2
3
4
SWIO_2
SWIO_1
GND
FE
5
PWR IN
SWIO_1
SWIO_2
3
2
1
4
5
GND VIN
FE
HOST / BUS IN
TD+ 1
2
3
4
RD+
RD-
TD-
LEUZE Device BUS OUT
TD+ 1
2
3
4
RD+
RD-
TD-
M12 connector
(A-coded)
M12 socket
(A-coded)
M12 socket
(D-coded)
M12 socket
(D-coded)
ATTENTION!
Only then may the supply voltage be applied.
Upon startup of the MA 238
i
, the device selection switch is queried and the gateway automati-
cally sets itself to the Leuze device.

Leuze electronic GmbH + Co. KG MA 238
i
11
3.3.2 Connecting the power supply and the bus cable
Ideally, use the preassembled cables listed in Chapter 14.4.3 to connect the gateway to the power sup-
ply via the PWR IN connection.
The preassembled cables listed in Chapter 14.5.4 are preferred for connecting the gateway to the field-
bus via the HOST / BUS IN connection.
If applicable, use the BUS OUT connection if you would like to construct a network with linear topology.
3.4 Starting the device
Connect the +18 … 30VDC supply voltage (typ. +24VDC), the MA 238
i
starts up.
The PWR LED displays that it is ready for operation.
3.5 MA 238
i
on EtherCAT
3.5.1 Device description file
For EtherCAT, all process data and parameters are described in objects. The compilation of all process
data and parameters of the gateway - the object directory - is stored in a so-called ESI file (EtherCAT Slave
Information).
The ESI file contains all objects with index, sub-index, name, data type, default value, minimum and
maximum, and access possibilities. That means the ESI file describes the entire functionality of the
MA 238
i
.
The ESI file has the name MA 238
i
.xml and is available for download on the Leuze home page.
Vendor ID for the MA 238
i
The Vendor ID assigned by Leuze for the MA 238
i
is 121h = 289d.
Detailed information on the device description file and the object directory can be found in Chapter 12.5.3.
3.5.2 Device profile
The device profile describes the application parameters and the functional behavior of the MA 238
i
. For
EtherCAT, one does not specify individual device profiles for device classes. Instead, simple interfaces for
existing device profiles are provided.
3.5.3 Starting the MA 238
i
in the EtherCAT system
As is common for EtherCAT, the gateway runs through different states when starting up: "INIT", "PREOP",
"SAFEOP" and "OPERATIONAL".
Detailed information can be found in Chapter 12.4.

Leuze electronic GmbH + Co. KG MA 238
i
12
4 Device description
4.1 General information to the connection units
The modular connection unit of the MA 2xx
i
family is a versatile gateway for integrating Leuze RS 232
devices (e.g., BCL 22 bar code readers, RFID devices, RFM 32, …) into the respective fieldbus. The
MA 2xx
i
gateways are intended for use in industrial environments with a high degree of protection. Various
device versions are available for the conventional fieldbuses. With a stored parameter structure for the
connectable RS 232 devices, commissioning could hardly be simpler.
4.2 Characteristics of the connection units
A special characteristic of the MA 238
i
device family are three function modes:
1. Transparent Mode
In this function mode, the MA 238
i
functions as a pure gateway with automatic communication from
and to the PLC. Absolutely no special programming by the user is necessary for this purpose. The
data is not buffered or stored temporarily, however. Instead, it is "passed on".
The programmer must make certain to retrieve the data from the input memory of the PLC at the
right time, as it is otherwise overwritten by new data.
2. Collective Mode
In this operating mode, data and telegram parts are temporarily stored in the memory (buffer) of the
MA and sent to the RS 232 interface or to the PLC in a telegram by means of bit activation. In this
mode, however, all communication control must be programmed on the PLC.
This function mode is helpful, for example, for very long telegrams or when one or more codes with
long code lengths are read.
3. Command Mode
With this special operating mode, it is possible to use the first bytes of the data range
To transmit predefined commands to the connected device by means of bit activation. For this pur-
pose, device-dependent commands (so-called online commands) are predefined via the device
selection switch, see chapter 16 "Specifications for Leuze end devices".
4.3 Device construction
The MA 238
i
modular connection unit is used for connecting Leuze devices, such as the BCL 8, BCL 22,
etc., directly to the fieldbus. This is accomplished by transmitting the data from the Leuze device via an
RS 232 (V.24) interface to the MA 238
i
where a module converts it into the fieldbus format. The data
format of the RS 232 interface corresponds to the standard Leuze data format.
Figure 4.1: Connection of a Leuze device (BCL, RFI, RFM, …) to the fieldbus
The cable of the respective Leuze device is guided through cable bushings with PG cable glands into the
MA 238
i
and connected there with the PCB connectors.
The MA 238
i
is intended as a gateway for any RS 232 devices, e.g., BCL 300i, hand-held scanners, scales
or for coupling a multiNet network.
Fieldbus Fieldbus
MA 238
i
Leuze
device
Either
network or other devices
with RS 232
RS 232
(V.24)

Leuze electronic GmbH + Co. KG MA 238
i
13
The RS 232 cables are internally connectable using JST pin strips. The cable can be connected to the
device using a stable PG cable gland which provide strain relief and protection against contamination.
With the help of adapter cables with Sub-D 9 or open cable end, other RS 232 devices can also be
connected.
4.4 Operating modes
For fast commissioning, the MA 238
i
offers an additional operating mode, the "Service mode", in addition
to the "Standard mode". In this operating mode, the Leuze device can, for example, be configured on the
MA 238
i
and the network settings of the MA can be displayed. To do this, you need a PC/laptop with a
suitable terminal program, as BCL-Config from Leuze or similar.
Service switch
Select between "operation" and "service" modes with the service switch. You have the following options:
Pos. RUN:
Operation
The Leuze device is connected to the fieldbus and communicates with the PLC.
Pos. DEV:
Service Leuze Device
The connection between the Leuze device and the fieldbus is interrupted. With this switch position,
you can communicate directly with the Leuze device at the fieldbus gateway via RS 232. You can
send online commands via the service interface, configure the Leuze device using the corresponding
BCL- BPS-, …-Config configuration software and have the read data of the Leuze device output.
Pos. MA:
Service fieldbus gateway
With this switch setting, your PC/terminal is connected with the fieldbus gateway. In doing so, the
current setting values of the MA (e.g. address, RS 232 parameters) can be called up via a command.
Figure 4.2: Service-switch switch positions
NOTE
If the service switch is on one of the service settings, the PWR LED flashes on the front side of
the device, see chapter 8.1.2 "LED indicators on the housing".
Furthermore, on the control, the SMA service bit of the status bytes signals that the MA is in
service mode.

Leuze electronic GmbH + Co. KG MA 238
i
14
Service interface
The service interface can be accessed once the MA 238
i
housing cover has been removed and features
a 9-pin Sub-D connector (male). A crossed RS 232 connection cable is required to make the RxD, TxD
and GND connections.
Figure 4.3: Connecting the service interface to a PC/terminal
4.5 Fieldbus systems
Various product variants of the MA 2xx
i
series are available for connecting to different fieldbus systems
such as PROFIBUS DP, PROFINET-IO, DeviceNet and Ethernet or EtherCAT.
4.5.1 EtherCAT
General information on EtherCAT
EtherCAT is an Ethernet-based fieldbus initiated by the Beckhoff corporation. The EtherCAT Technology
Group (ETG) is the official standardization partner of the IEC working groups.
EtherCAT has been an IEC standard since 2005.
• IEC 61158: Protocols and services
• IEC 61784-2: Communication profiles for the specific device classes
All EtherCAT-specific communication mechanisms are described in detail in the standards mentioned
above. This technical description will describe parts of the IEC standard if this assists general under-
standing.
EtherCAT topology
EtherCAT permits a multitude of topologies such as line, tree, ring, star and combinations of these. The
bus or line structure known from the fieldbuses is thus also available for EtherCAT.
Telegrams are sent on a wire pair in the "processing direction" from the master to the slave. The EtherCAT
device processes the frames only in this direction and passes them on to the subsequent device until the
telegram has passed through all devices. The last device sends the telegram back to the master on the
second wire pair in the cable in the "forward direction". Here, the EtherCAT always forms a logical ring
structure regardless of the topology installed.
From an Ethernet point of view, an EtherCAT bus segment is nothing more than a single, large Ethernet
participant which sends and receives Ethernet telegrams. Within the "participant", however, there is a
multitude of EtherCAT slaves rather than one single Ethernet controller with a downstream micro-
processor.
ATTENTION!
For the service PC to function, the RS 232 parameters must be the same as those of the MA.
The Leuze standard setting of the interface is 9600bd, 8N1 and STX, data, CR, LF.
5 GND
3 TxD
2 RxD
GND 5
TxD 3
RxD 2
1
1
PC/terminal
COM interface
MA 238
i
Service interface

Leuze electronic GmbH + Co. KG MA 238
i
15
Figure 4.4: Topology example

Leuze electronic GmbH + Co. KG MA 238
i
16
5 Technical data
5.1 General specifications
Electrical data
Interface type 2x EtherCAT, integrated switch,
BUS: 2x M12 socket (D-coded)
PWR/IO: 1x M12 connector (A-coded),
1x M12 socket (A-coded)
Protocols EtherCAT communication
Baud rate 10/100MBaud
Vendor ID 289Dec / 121H
Device type 12Dec / 0CH (communications adapter)
Position sensor type Product Type 04 (gateway)
Data formats Data bit: 8, parity: None, stop bit: 1
Service interface RS 232, 9-pin Sub-D connector, Leuze standard
Switching input/output 1 switching input/1 switching output
Device-dependent voltage
Operating voltage 18 … 30VDC (PELV , Class 2) 1)
1) For UL applications: only for use in "Class 2" circuits according to NEC.
Power consumption Max. 5VA (without DEV, current consumption max. 300mA)
Max. stress on the connector (PWR IN/
OUT)
3A
Hand-held scanner operating voltage 4.75 … 5.25VDC / max. 1A
Indicators
L0 / A0 LED green Connection possible
yellow Data transmission
L1 / A1 LED green Connection possible
yellow Data transmission
PWR LED green Power
red Collection error
STA LED green Bus state ok
red Configuration error
Mechanical data
Degree of protection IP 65 (with screwed-on M12 and connected Leuze device)
Weight 700g
Dimensions (H x W x D) 130 x 90 x 41mm / with plate: 180 x 108 x 41mm
Housing Diecast aluminum
Connection 2 x M12: BUS IN / BUS OUT PROFINET-IO
1 connector: RS 232
1 x M12: Power IN/GND and switching input/output
1 x M12: Power OUT/GND and switching input/output
Environmental data
Operating temperature range -30°C … +55°C
The installation and commissioning of the components must take
place above 0°C.
Storage temperature range -20 °C … -60 °C
Air humidity Max. 90% rel. humidity, non-condensing
Vibration IEC 60068-2-6, test Fc
Shock IEC 60068-2-27, test Ea
Electromagnetic compatibility EN 61000-6-3:2007 (interference emissions for residential, com-
mercial and light-industrial environments)
EN 61000-6-2:2005 (interference rejection for industrial sectors)
Certifications UL 60950-1, CSA C22.2 No. 60950-1 1)

Leuze electronic GmbH + Co. KG MA 238
i
17
5.2 Dimensioned drawings
Figure 5.1: MA 238
i
dimensioned drawing
5.3 Type overview
The following versions of the MA 2xx
i
gateway family are available for facilitating the integration of Leuze
RS 232 devices in the various fieldbus types.
Fieldbus Device type Part no.
PROFIBUS DP V0 MA 204
i
50112893
Ethernet TCP/IP MA 208
i
50112892
PROFINET-IO RT MA 248
i
50112891
DeviceNet MA 255
i
50114156
CANopen MA 235
i
50114154
EtherCAT MA 238
i
50114155
EtherNet/IP MA 258
i
50114157
Table 5.1: Overview of MA 2xx
i
types

Leuze electronic GmbH + Co. KG MA 238
i
18
6 Installation and mounting
6.1 Storage, transportation
Unpacking
Check the packaging content for any damage. If damage is found, notify the post office or shipping
agent as well as the supplier.
Check the delivery contents using your order and the delivery papers:
• Delivered quantity
• Device type and model as indicated on the name plate
• Brief manual
The name plate provides information as to what MA 2xx
i
type your device is. For specific information,
please refer to the package insert or Chapter 14.2.
Name plate of the connection unit
Figure 6.1: Device name plate MA 238
i
Save the original packaging for later storage or shipping.
If you have any questions concerning your shipment, please contact your supplier or your local Leuze
sales office.
Observe the applicable local regulations when disposing of the packaging materials.
ATTENTION!
Package the device for transport and storage in such a way that is protected against shock and
humidity. Optimum protection is achieved when using the original packaging. Ensure compliance
with the approved environmental conditions listed in the specifications.
NOTE
Please note that the shown name plate is for illustration purposes only; the contents do not corre-
spond to the original.

Leuze electronic GmbH + Co. KG MA 238
i
19
6.2 Mounting
The gateway mounting plate MA 238
i
can be mounted in two different ways:
• Using four threaded holes (M6) or
• Using two M8 screws on the two lateral grooves.
Fastening by means of four M6 or two M8 screws
Figure 6.2: Fastening options
6.3 Device arrangement
Ideally, the MA 238
i
should be mounted so that it is easily accessible near the Ident device in order to
ensure good operability, e.g., for configuring the connected device.
6.3.1 Selecting a mounting location
In order to select the right mounting location, several factors must be considered:
• The permissible cable lengths between the MA 238
i
and the host system depending on which inter-
face is used.
• The housing cover should be easily accessible, so that the internal interfaces (device interface for
connecting the Leuze device via PCB connectors, service interface) and other operational controls
are easy to reach.
• Maintaining the required environmental conditions (temperature, humidity).
• Lowest possible chance of damage to the MA 238
i
by mechanical collision or jammed parts.
6.4 Cleaning
Clean the housing of the MA 238
i
with a soft cloth after mounting. Remove all packaging remains, e.g.
carton fibers or styrofoam balls.
Fastening op-
tions
ATTENTION!
Do not use aggressive cleaning agents such as thinner or acetone for cleaning the device.

Leuze electronic GmbH + Co. KG MA 238
i
20
7 Electrical connection
The fieldbus gateways MA 2xx
i
are connected using variously coded M12 connectors.
An RS 232 device interface allows the respective devices to be connected with system connectors. The
device cables are equipped with a prefabricated PG cable gland.
Coding varies and the design is implemented as either socket or connector depending on the HOST
(fieldbus) interface and function. For the exact design, refer to the corresponding description of the
MA 2xx
i
device type.
Figure 7.1: Location of the electrical connections
7.1 Safety notices for the electrical connection
NOTE
The corresponding mating connectors and preassembled cables are available as accessories
for all connections. For further information, see chapter 14 "Type overview and accessories".
ATTENTION!
Before connecting the device, be sure that the supply voltage agrees with the value printed on
the name plate.
Connection of the device and cleaning must only be carried out by a qualified electrician.
Ensure that the functional earth (FE) is connected correctly. Unimpaired operation is only guar-
anteed when the functional earth is connected properly.
If faults cannot be cleared, the device should be switched off and protected against accidental
use.
ATTENTION!
For UL applications, use is only permitted in Class 2 circuits in accordance with the NEC
(National Electric Code).
The fieldbus gateways are designed in accordance with protection class III for supply by PELV
(protective extra-low voltage with reliable disconnection).
NOTE
Degree of protection IP65 is achieved only if the connectors and caps are screwed into place!
Table of contents
Other Leuze Gateway manuals
Popular Gateway manuals by other brands

Bivocom
Bivocom TG463 Series user guide

KWE
KWE Versatronik 502 Technical, installation and configuration information

ZyXEL Communications
ZyXEL Communications P-2302R-P1 Series quick start guide

RAKwireless
RAKwireless RAK7258 user manual

M86 Security
M86 Security SWG Setup guide

AudioCodes
AudioCodes MediaPack 114 Configuration guide