NOTE The Declaration of Conformity for these devices can be requested from the manufacturer. 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.
• 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.
Intended use The MA 238 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. CAUTION! Observe intended use! ...
(e.g. electrician foreman). In other countries, there are respective regulations that must be observed. 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.
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 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).
That means the ESI file describes the entire functionality of the MA 238 The ESI file has the name MA 238 .xml and is available for download on the Leuze home page. Vendor ID for the MA 238 The Vendor ID assigned by Leuze for the MA 238...
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 where a module converts it into the fieldbus format.
For fast commissioning, the MA 238 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 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.
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. Fieldbus systems Various product variants of the MA 2xx series are available for connecting to different fieldbus systems such as PROFIBUS DP, PROFINET-IO, DeviceNet and Ethernet or EtherCAT.
Page 15
Figure 4.4: Topology example Leuze electronic GmbH + Co. KG MA 238...
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...
Figure 5.1: MA 238 dimensioned drawing Type overview The following versions of the MA 2xx 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...
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.
• 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).
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! Leuze electronic GmbH + Co. KG MA 238...
Two additional M12 sockets are used for connection to the fieldbus. Both of these connections are D-coded. 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.
PWR IN to PWR OUT can be interrupted by means of a jumper. In this case, only the switching input and output on PWR IN are active. The function of the switching inputs and outputs is dependent on the connected Leuze device. Detailed information on this topic can be found in the respective operating instructions.
MA and of the connected end device. The function of the switching inputs and outputs is dependent on the connected Leuze device. Detailed information on this topic can be found in the respective operating instructions.
MA 238 Open 7.5.1 RS 232 device interface (accessible after opening the device, internal) The device interface is prepared for the system plugs (PCB connectors) for Leuze devices RFI xx, RFM xx, BCL 22. Figure 7.5: RS 232 device interface Leuze electronic GmbH + Co.
RS 232 service switch and service interface Following activation, this interface enables access via the RS 232 to the connected Leuze device and the MA for configuration using the 9-pin Sub-D. The connection between the fieldbus interface and the device interface is switched off during access.
Twisted Pair (min. Cat. 5) lutely required MA 238 MA 238 – Power supply Not necessary unit Switching input 10 m Not necessary Switching output 10 m Not necessary Table 7.6: Cable lengths and shielding Leuze electronic GmbH + Co. KG MA 238...
- No operating voltage or device error Green, continuous light Device ok - Self test successfully finished - Ready Green, flashing Device ok, device in service mode Red, flashing Configuration error - Baud rate or address incorrect Leuze electronic GmbH + Co. KG MA 238...
Page 28
- No communication possible L0/A0 LED Green, continuous light L0 - Connection exists Yellow, flashing - Data exchange L1/A1 LED Green, continuous light L1 - Connection exists Yellow, flashing - Data exchange Leuze electronic GmbH + Co. KG MA 238...
B Rotary switch S4 for device selection C Service switch D RS 232 Sub-D service interface E Jumper for bridging, separating switching input/output PWR IN/OUT F 3 JST pin strips: connection of the Leuze devices G MA 238 : without function/not equipped Figure 8.2: Front view: operational controls of the MA 238 Leuze electronic GmbH + Co.
Second BUS interface for creating a network with other participants in a linear topology JST pin strip with 12 pins Leuze device Connection of the Leuze devices with 4.75 … 5.25VDC / 1A (BCL 8, BPS 8 and hand-held scanner) JST pin strip with 10 pins Leuze device Connection of the Leuze devices (BCL, RFI, RFM,…)
8.2.3 RS 232 service interface – X33 The X33 RS 232 interface facilitates the configuration of the Leuze device and the MA 238 via PC, which is connected by means of a serial null modem cable. X33 pin assignment – service connector...
Page 32
The gateway is set via the switch position on the Leuze device. If the switch position is changed, the device must be restarted, since the switch position is only queried after switching off completely and then restarting the device. NOTE In switch position "0", a distance of >20ms must be maintained between two telegrams so they...
MA with the help of a suitable configuration program. The respective configuration programs – e.g. for bar code readers the BCL-Config, for RFID devices the RF-Config etc. – and the associated documentation are provided on the Leuze home page www.leuze.com in the download area.
Page 34
COM port settings NOTE Observe that STX, data, CR, LF framing must be set on the PC terminal program so that com- munication is possible with the connected Leuze device. Commands You can now call up information on the MA 238 by sending the following commands.
Page 35
Status change error. Enable Control Status Change Error(s) Activate control status change error output. Local SDO Download Error(s) Local error SDO download. Status Indication(s) Status display(s). Table 9.6: MA 238 communication parameters Leuze electronic GmbH + Co. KG MA 238...
Only the data part with the corresponding frame (e.g., STX, CR & LF) is then transmitted between the fieldbus gateway and the Leuze end device. The two control bytes are processed by the fieldbus gateway. The corresponding control and status bits and their meaning are specified in Section 10.2 and Section 10.3.
0: Device in operating "DEV", i.e. if the device is in either fieldbus gateway or mode Leuze device service mode. This is also indicated by a 1: Device in service flashing PWR LED on the front side of the device. Upon mode changing to the normal operating mode "RUN", the bit...
The memory size of the gateway for the data of both the PLC and the Leuze end device is 1 kByte. Bit 7: New Data: ND This bit is only relevant in Transparent mode.
Command mode This bit is used to activate Command mode. In Com- mand mode, no data is sent by the PLC to the Leuze end 0: Default, transparent device via the gateway. In Command mode, various bits Command mode...
The CTB toggle bit is switched whenever transmit data is not to be sent directly via the serial interface, but instead transferred to the transmission buffer. Leuze electronic GmbH + Co. KG MA 238...
OUT data byte 1/parameter byte 1: This sets the memory or status/control bits to 00h. Please observe that the data image may need to be updated by toggling the R-ACK in Collective mode. Leuze electronic GmbH + Co. KG MA 238...
11.1.1 Reading slave data in Collective mode (gateway -> PLC) If the Leuze device transmits data to the fieldbus gateway, the data is stored temporarily in a buffer. The PLC is signaled via the "DEX" bit that data is ready for retrieval in the memory. Data is not automatically transmitted.
Page 43
The data is then sent in the order received from the buffer to the connected Leuze device via the serial interface with the command: "SFB" (Send data from transmit buffer). Please don't forget the suitable data frame! Afterward, the buffer is again empty and can be written with new data.
(e.g., v, +, -, etc.). If, for example, the version of the Leuze end device is to be queried, the corresponding bit is to be set so that a "v" is sent to the Leuze device with the <STX>...
Page 45
Examples for the activation of a Leuze device In Command mode, control or output byte 0.0 is to be set for activating the Command mode. Only the corresponding bit (control or output byte 2.1) then needs to be set for activating and deactivating the reading gate.
Page 46
Figure 11.3: Activating DEV and reading data NOTE Further information on fieldbus telegram structure can be found in Chapter 10.1. A specification of all usable commands can be found in chapter "Specifications for Leuze end devices" on page 60. Leuze electronic GmbH + Co. KG...
Before connecting the supply voltage, recheck all connections and ensure that they have been properly made. The Leuze device must be connected to the internal RS 232 device interface. Connecting the Leuze device Open the housing of the MA 238 and lead the corresponding device cable (see Chapter 14.6) through...
That means the ESI file describes the entire functionality of the MA 238 , and it is possible to adjust both the communication of the gateway with the control and the RS 232 interface. Leuze electronic GmbH + Co. KG MA 238...
Tx and Rx process data objects Figure 12.2: Configuration options The ESI file has the name MA 238 .xml and is available for download on the Leuze home page. Vendor ID for the MA 238 The Vendor ID assigned by Leuze for the MA 238...
Page 50
Manufacturer 1018 Vendor ID ID number Product Code Revision Serial number The Vendor ID assigned by Leuze for the MA 238 is 121 = 289 12.5.3.3 Object 1600 RxPDO The object describes the Rx process data object. Index Sub-index Name...
Page 51
Transparent Data Mode Mode (0) Use rotary Use rotary switch switch (1) 9600 Baud Baud Rate (96) Data Bits 8 Data Bits (8) Parity None (1) Stop bits 1 stop bit (1) Leuze electronic GmbH + Co. KG MA 238...
You can download the config. tool from www.leuze.com for BCL, RFID, etc. In order to communicate with the connected Leuze device, the STX, data, CR, LF framing must be set on the PC terminal program, as the Leuze device is preconfigured ex works for this frame character.
12.6.1.1 Wireless hand-held scanners on the MA 238 All wireless hand-held scanners and mobile combi devices available in the Leuze product line can be used with the corresponding connection cable via the base station. A 230VAC connection (socket) is usually necessary for the charging station. Here, a data connection of the charging station is established with the MA 238 .
Avoid EMC coupling caused by power cables laid parallel to device lines. Check max. network expansion as a Overall network expansion exceeded. function of the max. cable lengths. Figure 13.1: Interface error Leuze electronic GmbH + Co. KG MA 238...
13.3 Service and support Service hotline You can find the contact information for the hotline in your country on our website www.leuze.com under Contact & Support. Repair service and returns Defective devices are repaired in our service centers competently and quickly. We offer you an extensive service packet to keep any system downtimes to a minimum.
Overview of MA 2xx types 14.3 Accessories – Connectors Order codes for M12 connectors on our website www.leuze.com under Products - Network and connection technology - Cables and connectors - User-configurable connectors 14.4 Accessories – Preassembled cables for voltage supply 14.4.1 Contact assignment of PWR connection cable...
Bending radius > 50mm 14.4.3 Order codes of the cables for voltage supply Order codes for 5-pin M12 connection cable with socket on our website www.leuze.com under Products - Network and connection technology - Cables and connectors - Connection cables 14.5 Accessory –...
Ethernet interconnection cables M12 D-coded to M12 D-coded or M12 D-coded to RJ 45 on our website www.leuze.com under Products - Network and connection technology - Cables and connectors - Intercon- nection cables 14.6 Accessory – Preassembled cables for connecting Leuze Ident devices 14.6.1 Order codes for the device connection cables...
Contact your Leuze distributor or service organization should repairs be required. The addresses can be found on the inside of the cover and on the back. NOTE When sending devices to Leuze for repair, please provide an accurate description of the error. 15.3 Disassembling, packing, disposing Repacking For later reuse, the device is to be packed so that it is protected.
The corresponding Leuze end device can be selected while configuring the fieldbus gateway (see chapter 9 "Configuration"). The exact specifications for the individual Leuze end devices can be found in the following sections and in the device description. The corresponding serial command is sent to the Leuze end device in Command mode. To send the corre- sponding command to the RS 232 device after activating the Command mode in byte 0 (control bit 0.0),...
• Input data: dependent on the number of digits of the bar code that is to be read. With an 18-digit bar code (+ 2 bytes of status bytes), for example, it is advisable to use the 24-byte setting. • Output data: 8 bytes Leuze electronic GmbH + Co. KG MA 238...
• Input data: dependent on the number of digits of the bar code that is to be read. With an 18-digit bar code (+ 2 bytes of status bytes), for example, it is advisable to use the 24-byte setting. • Output data: 8 bytes Leuze electronic GmbH + Co. KG MA 238...
• Input data: dependent on the number of digits of the bar code that is to be read. With an 18-digit bar code (+ 2 bytes of status bytes), for example, it is advisable to use the 24-byte setting. • Output data: 8 bytes Leuze electronic GmbH + Co. KG MA 238...
With an 18-digit bar code (+ 2 bytes of status bytes), for example, it is advisable to use the 24-byte setting. • Output data: 8 bytes NOTE When using the Command mode, make sure that 00H is shown in the data range; otherwise the device only performs one alignment cycle. Leuze electronic GmbH + Co. KG MA 238...
• Input data: dependent on the number of digits of the code that is to be read. With an 18-digit code (+ 2 bytes of status bytes), for example, it is advisable to use the 24-byte set- ting. • Output data: 8 bytes Leuze electronic GmbH + Co. KG MA 238...
• Input data: dependent on the number of digits of the code that is to be read. With an 18-digit code (+ 2 bytes of status bytes), for example, it is advisable to use the 24-byte set- ting. • Output data: 8 bytes Leuze electronic GmbH + Co. KG MA 238...
• Input data: dependent on the number of digits of the bar code or 2D code that is to be read. With an 12-digit code (+ 2 bytes of status bytes), for example, it is advisable to use the 16-byte set- ting. • Output data: none Leuze electronic GmbH + Co. KG MA 238...
For example, it is advisable to use the input data/output data setting with 24 bytes during the reading of a serial number with 16 characters (+ 2 bytes of status bytes). • Output data: 8 bytes The RFID devices expect the telegrams / data in HEX format. Leuze electronic GmbH + Co. KG MA 238...
In this switch position, the MA automatically sends a position request to the BPS 8 every 10ms until another command comes via the control. Automatic request only restarts when a new position request is sent by the PLC or when the MA is restarted. Leuze electronic GmbH + Co. KG MA 238...
Transfer position and velocity value cyclically C0F939 Transfer marker information C0FA3A Not used / reserved Transfer diagnostic information C0FC3C Activate standby C0FD3D Recommended settings • Input data: 8 bytes • Output data: 8 bytes Leuze electronic GmbH + Co. KG MA 238...
Page 71
The ODSL 9/96B is to be operated in the "Precision" measure mode. The mode is set through the display menu via Application -> Measure mode -> Precision. You can find more details on this in the technical description. Leuze electronic GmbH + Co. KG MA 238...
Switch the voltage on and wait until it is ready for operation. If necessary, switch the voltage off to prepare for commissioning. Set service switch S10 to the "RUN" position. Leuze electronic GmbH + Co. KG MA 238...
Need help?
Do you have a question about the MA 238i and is the answer not in the manual?
Questions and answers