Page 1
Original operating instructions MA 258 Fieldbus gateway – EtherNet/IP We reserve the right to make technical changes EN 2022/04/22 - 50117132...
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 258 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 258 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).
The EtherNet/IP baud rate is defined for the entire network in the planning tool/control. Detailed information can be found in Chapter 12. Leuze electronic GmbH + Co. KG MA 258...
Connect the serial RS 232 Sub-D interface of the MA 258 to the serial interface of your PC. Make the respective settings on the configuration page opened in the web browser. Leuze electronic GmbH + Co. KG MA 258...
• Optional: The address and length of the configuration assembly (instance 118; 12 x 8bits). *) The possible data lengths are shown in Figure 3.5. You can select the suitable byte number for your application here. Recommendations can be found in chapter "Specifications for Leuze end devices" on page 72.
First, load the EDS file for the device via EDS wizard into the PLC database. NOTE You can find the EDS file at www.leuze.com. After loading, select the device via the device list and enter it into the HW manager via Drag&Drop.
Page 15
To do this, double-click on the tree node Ethernet. In the new window, select the desired device from the database and carry out the respective configura- tion. Figure 3.6: Creating a module First set the IP address. Leuze electronic GmbH + Co. KG MA 258...
Page 16
2 bytes smaller than specified in the selected combi- nation. E.g., when using the combination with 12 bytes In/12 bytes Out, there are effectively 10 bytes available for user data on the Leuze device after subtracting the 2 bytes for status and control bytes. Recommendation A combination with 4 bytes of output data length is sufficient for most output data.
MA 258 ATTENTION! If parameters are changed via explicit messaging services while simultaneously activating a con- figuration assembly, the changed parameters must subsequently be entered in the configuration assembly. Leuze electronic GmbH + Co. KG MA 258...
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 258 where a module converts it into the fieldbus format.
For fast commissioning, the MA 258 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 258 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 21
NOTE Rockwell RSLogix 5000 supports EDS integration for EIP from software version 20.00 and up. The EDS file is available for download from the Leuze home page. You can find the EDS file at www.leuze.com. The EDS file is named "MA258i.eds"; the corresponding icon is named "MA258i.ico".
Page 22
Addressing of the attribute within the object instance. Service code (get, set, reset, start, stop and others...) The service code ultimately describes the type of access to the data, e.g., reading or writing. Leuze electronic GmbH + Co. KG MA 258...
Device ok/device in service mode 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 258 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).
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.
(on SWIN_1, PWRIN) Table 7.2: Device-specific function of the SWIOs Supply voltage ATTENTION! For UL applications, use is only permitted in Class 2 circuits in accordance with the NEC (National Electric Code). Leuze electronic GmbH + Co. KG MA 258...
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.
, the "KB ET - … - SSA" preassembled cables are preferred, see chapter 14.5.4 "Order code of M12 Ethernet connection cable KB ET…". NOTE Ensure adequate shielding. For the devices and preassembled cables offered by Leuze, the shield is on PIN 1. If you use self-assembled cables, note the following: NOTE Ensure adequate shielding.
MA 258 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 The standard devices are connected with 6- or 10-pin connector piece to X31 or X32, respectively.
Page 32
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. NOTE To configure the devices connected to the external interface, e.g., BCL 8 (JST pin strip "X30"), a cable specially configured for this purpose is necessary.
- Device monitoring active Green, flashing Device ok, device in service mode Red, flashing Configuration error - Baud rate or address incorrect NS LED Green, flashing Device ok, device in service mode Leuze electronic GmbH + Co. KG MA 258...
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 258 : without function/not equipped Figure 8.2: Front view: operational controls of the MA 258 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 5V / 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 258 via PC, which is connected by means of a serial null modem cable. X33 pin assignment – service connector...
Page 37
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...
The connected device is normally configured via the service interface of the 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. NOTE In order to display the help texts, a PDF viewer program (not included in the scope of delivery) must also be installed.
Page 39
Firmware Date Firmware date. Table 9.2: General firmware information Selected scanner Currently selected Leuze device (selected via switch S4). Gateway mode Transparent or Collective mode. Ring Buffer fill level Current fill level of the ring memory in Collective mode (ASCII->Fieldbus).
Page 40
Length of the data supplied (produced data, default 18 bytes). IP address Displays the set IP address. Gateway address Displays the set gateway address. Network mask Displays the set network mask. DHCP DHCP Mode (ENABLED/DISABLED). Table 9.6: MA 258 communication parameters Leuze electronic GmbH + Co. KG MA 258...
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 258...
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 258...
(Copy to transmit buffer). Please observe that data provided is transmitted directly by toggling the bit. 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! Leuze electronic GmbH + Co.
Page 48
Incomplete (incl. data frame) or faulty telegrams can cause error messages in the connected device! Examples for the activation of a Leuze device In the data part (starting at byte 2) of the telegram to the gateway, a "+" (ASCII) is sent for activation.
(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 50
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 51
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 72. 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 258 and lead the corresponding device cable (see Chapter 14.6) through...
Page 53
Connect the serial RS 232 Sub-D interface of the MA 258 to the serial interface of your PC. Make the respective settings on the configuration page opened in the web browser. Leuze electronic GmbH + Co. KG MA 258...
*) The possible data lengths are shown in Figure 12.5. You can select the suitable byte number for your application here. Rec- ommendations can be found in chapter "Specifications for Leuze end devices" on page 72. Leuze electronic GmbH + Co. KG...
56). After all of the parameters relevant to the MA 258 are entered, the control is switched to "online" and the project is downloaded again. Leuze electronic GmbH + Co. KG MA 258...
Page 56
Display the reserved control area (MA200.C in this case) by double-clicking on the MA entry. Now enter the parameters manually into bytes 00-11. Subsequent adaptations may be made by changing the respective position. Please find a detailed description of the Leuze-specific assembly in Chapter 12.6.2. Byte 00+01: DataMode (Collective/Transparent Mode)
First, load the EDS file for the device via EDS wizard into the PLC database. NOTE You can find the EDS file at www.leuze.com. After loading, select the device via the device list and enter it into the HW manager via Drag&Drop.
Page 58
2 bytes smaller than specified in the selected com- bination. E.g., when using the combination with 12 bytes In/12 bytes Out, there are effectively 10 bytes available for user data on the Leuze device after subtracting the 2 bytes for status and control bytes. Recommendation A combination with 4 bytes of output data length is sufficient for most output data.
The MA 258 has the following identity object (class 1): Vendor ID: 524 ./ 20C Device type: 12 / 0C (labels the MA 258 as "communications adapter") Leuze electronic GmbH + Co. KG MA 258...
Leuze as a "communications adapter". According to ODVA, the MA 258 assigned number 12 = 0C 12.6.1.3 Product Code The product code is an ID assigned by Leuze that has no further impact on other objects. 12.6.1.4 Revision Version number of the identity object. Leuze electronic GmbH + Co. KG...
Page 61
12.6.1.7 Product Name This attribute contains a short designation of the product. Devices with the same product code may have different "product names". Leuze electronic GmbH + Co. KG MA 258...
Data, 20 In/8 Out Data content with max. 18 /6 bytes Data, 64 In/8 Out Data content with max. 62 /6 bytes Table 12.12: Overview of all possible combinations of input and output data lengths Leuze electronic GmbH + Co. KG MA 258...
Page 63
4020 57600 1152 8040 115200 Byte 4+5: 6000 , LowByte first RS 232 Data Bits Parameter Value: 0700 = 7 Bits 0800 = 8 Bits (default) Byte 6+7: 0800 , LowByte first Leuze electronic GmbH + Co. KG MA 258...
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.
A description of the device configuration and the required codes can be found in the respective documentation at www.leuze.com. 12.7.1.1 Cable-connected hand-held scanners on the MA 258 All hand-held scanners and mobile combi devices available in the Leuze product line can be used with the corresponding connection cable. When using the MA 258 , the voltage supply of the hand-held scanner (5V/at 1A) can be connected to the interface by means of a cable via the 9-pin Sub-D connector (voltage on PIN 9).
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.2: Interface error Leuze electronic GmbH + Co. KG MA 258...
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 –...
14.5.4 Order code of M12 Ethernet connection cable KB ET… Order codes for 4-pin M12 connection cable with D-coded connector on our website www.leuze.com under Products - Network and connection technology - Cables and connectors - Connection cables or 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-...
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),...
With an 18-digit bar code (+ 2 bytes of status bytes), for example, it is advisable to use the "20 bytes In/4 bytes Out" combination. Leuze electronic GmbH + Co. KG MA 258...
With an 18-digit bar code (+ 2 bytes of status bytes), for example, it is advisable to use the "20 bytes In/4 bytes Out" combination. Leuze electronic GmbH + Co. KG MA 258...
With an 18-digit bar code (+ 2 bytes of status bytes), for example, it is advisable to use the "20 bytes In/4 bytes Out" combination. Leuze electronic GmbH + Co. KG MA 258...
With an 18-digit bar code (+ 2 bytes of status bytes), for example, it is advisable to use the "20 bytes In/4 bytes Out" combination. Leuze electronic GmbH + Co. KG MA 258...
2D 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 "20 bytes In/4 bytes Out" combination. Leuze electronic GmbH + Co. KG MA 258...
2D 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 "20 bytes In/4 bytes Out" combination. Leuze electronic GmbH + Co. KG MA 258...
With an 12-digit bar code (+ 2 bytes of status bytes), for example, it is advisable to use the "20 bytes In/4 bytes Out" combination. Leuze electronic GmbH + Co. KG MA 258...
For the reading of a 16-digit serial number (+ 2 bytes of status bytes), for example, it is advisable to use the "64 bytes In/8 bytes Out" combination. The RFID devices expect the telegrams / data in HEX format. Leuze electronic GmbH + Co. KG MA 258...
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 258...
Transfer position and velocity value cyclically C0F939 Transfer marker information C0FA3A Not used / reserved Transfer diagnostic information C0FC3C Activate standby C0FD3D Recommended settings • Produced/Consumed data settings: "20 bytes In/8 bytes Out" Leuze electronic GmbH + Co. KG MA 258...
Page 83
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 258...
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 258...
Need help?
Do you have a question about the MA 258i and is the answer not in the manual?
Questions and answers