MA 248i en 04-2017/01 50113019 We reserve the right to make technical changes Fieldbus Gateway – PROFINET-IO O r i g in a l op e r a ti n g i n s tr uc t i o ns
© 2017 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 info@leuze.
Table of contents 1 General information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.1 Explanation of symbols . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.2 Declaration of Conformity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 1.3 Description of functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of contents 5.1 General specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 5.2 Dimensioned drawings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5.3 Type overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 6 Installation and mounting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of contents 10 Telegram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 10.1 Structure of the fieldbus telegram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 10.2 10.2.1 10.2.2 10.2.3 Description of the input bytes (status bytes) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Structure and meaning of the input bytes (status bytes) . . . . . . . . . . . . . . . . . . . . . . . . .
Table of contents 13 Diagnostics and troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . 79 13.1 General causes of errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 13.2 Interface errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 14 Type overview and accessories . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 14.1 Part number code . . . . . . .
Table of contents 16.10 BPS 8 bar code positioning system (S4 switch position A). . . . . . . . . . . . . . . . . . . . . . 97 16.11 BPS 300i bar code positioning system, ODSL xx optical distance sensors with RS 232 interface (S4 switch position B) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 16.12 Modular interfacing unit MA 3x (S4 switch position C) . . . . . . . . . . . . . . . . . . . . . . . . 100 16.13 Resetting the parameters (S4 switch position F) . . . . . . .
General information 1 General information 1.1 Explanation of symbols The symbols used in this operating manual are explained below. Attention! This symbol precedes text messages which must strictly be observed. Failure to comply with this information results in injuries to persons or damage to the equipment. Notice! This symbol indicates text passages containing important information. 1.
General information 1.3 Description of functions The MA 248i modular interfacing unit is used to connect Leuze devices directly to the fieldbus.
General information 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. • GSD file (device master file): Description of the device for the control.
Safety 2 Safety This device was developed, manufactured and tested in line with the applicable safety standards. It corresponds to the state of the art. 2.1 Intended use The MA 248i modular interfacing 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! Only operate the device in accordance with its intended use.
Safety NOTICE 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. 2.3 Competent persons Connection, mounting, commissioning and adjustment of the device must only be carried out by competent persons.
Fast commissioning / operating principle 3 Fast commissioning / operating principle Notice! Below you will find a short description for the initial commissioning of the PROFINET gateway MA 248i. Detailed explanations for the listed points can be found throughout the handbook. 3.1 Mounting The gateway mounting plate MA 248i can be mounted in two different ways: • using four threaded holes (M6) or • using two M8x6 screws on the two lateral grooves. 3.
Fast commissioning / operating principle 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 248i 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.
Fast commissioning / operating principle 3.5 Commissioning the MA 248i on the PROFINET Complete the necessary steps for commissioning a Siemens-S7 control as described below. Further information regarding the individual commissioning steps is provided in see chapter 12.3 "Configuration steps for a Siemens Simatic S7 control". 3.5.1 Preparing the control system In the first step, assign an IP address to the IO Controller (S7 PLC) and prepare the control for a consistent data transmission.
Fast commissioning / operating principle 3.5.3 Configuration Configure the PROFINET-IO system with the HW Config of the SIMATIC Manager by inserting the MA 248i into your project. Figure 3.2: Assignment of the device names to IP addresses Here, an IP address is assigned to a unique "device name". 3.5.4 Configuration of the modules Now select a corresponding data module for the input and output area.
Fast commissioning / operating principle Recommendation In most cases, the 4-byte module is sufficient for the output module. A larger module is needed, for example, if a BCL bar code scanner is to be configured by means of PT-sequences, or an RFID transponder is to be described. In these cases, larger data modules are usually sensible. Notice! Examples for selecting the correct data module length can be found in chapter 12.3.
Fast commissioning / operating principle 3.5.6 Configuration of the device name - device naming PROFINET-IO defines the "naming of the device" as the creation of a name-based relationship for a PROFINET-IO device. Assigning the device names to the configured IO devices Select the respective gateway MA 248i for the "device naming" based on its MAC address. The unique "device name" (which must match the participant in the HW Config) is then assigned to this participant.
Fast commissioning / operating principle MAC address - IP address -individual device name At this point, please assign an IP address (suggested by the PLC), a subnet mask and, if required, a router address, and assign this data to the named participant ("device name"). Figure 3.4: MAC address - IP address -individual device name From now on, and when programming, only the unique "device name" (max. 255 characters) is used.
Device description 4 Device description 4.1 General Information to the connector units The modular interfacing unit of the MA 2xxi 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 2xxi gateways are intended for use in industrial environments with a high protection class. Various device versions are available for the conventional fieldbuses.
Device description 4.3 Device construction The MA 248i modular interfacing unit is used for interconnecting 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 248i where a module converts it into the fieldbus format. The data format of the RS 232 interface corresponds to the standard Leuze data format. Fieldbus MA 248i Fieldbus RS 232 (V.
Device description 4.4 Operating modes For fast commissioning, the MA 248i 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 248i and the communication can be tested on the fieldbus. 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.
Device description Service interface The service interface can be accessed once the MA 248i 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. MA 248i Service interface Figure 4.
Device description The MA 248i supports: • PROFINET-IO device functionality based on the PROFINET profile for identification systems • Modular structure of the IO data • PROFINET-IO RT (Real Time) communication • Standard Fast EtherNet (100 Mbit/s) connections (M12 technology) • Integrated EtherNet switch / 2 EtherNet ports • PROFINET-IO Conformance Class B (CC-B) • I&M support: I&M 0-4 • Diagnostics / alarms For further details, see chapter 12! Identification & Maintenance Functions The MA 248i supports t
Device description PROFINET-IO – star topology The MA 248i can be operated as a single device (standalone) with individual device name in a star topology. The PLC must communicate this device name to the participant during the "device naming". MA 248i "192.168.0.100" PC / PLC host interface Other network participants Figure 4.
Specifications 5 Specifications 5.
Specifications Vibration Shock Electromagnetic compatibility Certifications 1) For UL applications: only for use in "Class 2" circuits acc. to NEC. Dimensioned drawings TNT 35/7-24V 5.2 IEC 60068-2-6, test FC IEC 60068-2-27, test Ea EN 61000-6-3:2007 (interference emissions for residential, commercial and light-industrial environments) EN 61000-6-2:2005 (interference rejection for industrial sectors) UL 60950-1, CSA C22.2 No. 60950-1 1) Figure 5.
Specifications 5.3 Type overview The following versions of the MA 2xxi 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 Ethernet TCP/IP PROFINET-IO RT DeviceNet CANopen EtherCAT EtherNet/IP MA 204i MA 208i MA 248i MA 255i MA 235i MA 238i MA 258i 50112893 50112892 50112891 50114156 50114154 50114155 50114157 Table 5.
Installation and mounting 6 Installation and mounting 6.1 Storage, transportation Attention! When transporting or storing, package the device so that it is protected against collision and humidity. Optimal protection is achieved when using the original packaging. Heed the required environmental conditions specified in the technical data. Unpacking Check the packaging for any damage. If damage is found, notify the post office or shipping agent as well as the supplier.
Installation and mounting 6.2 Mounting The gateway mounting plate MA 248i 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 Fastening options Figure 6.
Installation and mounting 6.3 Device arrangement Ideally, the MA 248i 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 248i and the host system depending on which interface is used.
Electrical connection 7 Electrical connection The fieldbus gateways MA 2xxi 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.
Electrical connection 7.2 Electrical connection The MA 248i features two M12 connectors/sockets for voltage supply; each is A-coded. 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 is dependent on the connected end device. Two additional M12 sockets are used for connection to the fieldbus. Both of these connections are D-coded.
Electrical connection Notice! The designation and function of the SWIO depends on the connected device. Please observe the following table! Device BCL 22 BCL 8 Hand-held scanner/BCL 90 RFM/RFU/RFI LSIS 122, LSIS 222, DCR 202i LSIS 4x2/BCL 300, BCL 500, BCL 600i KONTURflex ODSL 9, ODSL 96B ODSL 30 Table 7.1: PIN 2 SWOUT_1 SW_0 n.c. SWOUT_1 SWOUT configurable IO 1 / SWIO 3 IO 2 / SWIO 4 n.c. Q1 Q1 PIN 4 SWIN_1 SW_I n.c. SWIN_1 SWIN configurable n.c. n.c.
Electrical connection 7.2.2 PWR OUT switching input/output PWR OUT (5-pin socket, A-coded) PWR OUT SWIO_2 2 VOUT 1 3 GND 5 4 FE SWIO_1 M12 socket (A-coded) Table 7.
Electrical connection PROFINET-IO cable assignments MA 248 HOST / BUS IN TD+ 1 RJ 45 Twisted Pair RD+ 2 TD+ (1) TD- (2) 1 RD+ (3) 3 TD- RD- (6) 4 RD- 8 Twisted Pair shielded cable max. 100m RJ45 - assignment and wire colors Figure 7.
Electrical connection 7.4 BUS OUT BUS OUT (4-pin socket, D-coded) BUS OUT RD+ 2 TD+ 1 3 TD- Pin Name Remark 1 TD+ Transmit Data + 2 RD+ Receive Data + 3 TD- Transmit Data - 4 RD- Receive Data - Thread FE Functional earth (housing) 4 RD- M12 socket (D-coded) Table 7.4: Pin assignment HOST/BUS OUT For the host connection of the MA 248i, the "KB ET - … - SSA" ready-made cables are preferred, see table 14.4 Bus connection cable for the MA 248i on page 84.
Electrical connection 7.5 Device interfaces Figure 7.4: 7.5.1 Open MA 248i 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.
Electrical connection 7.5.2 Service interface (internal) Figure 7.6: 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. The fieldbus itself is, however, not interrupted as a result.
Electrical connection 7.6 PROFINET-IO wiring A Cat. 5 Ethernet cable should be used for wiring. For the connection technology transition from M12 to RJ45, a "KDS ET M12/RJ 45 W - 4P" adapter is available that lets you connect standard network cables. If no standard network cables are to be used (e.g., due to lacking IP… protection class), you can use the "KB ET - … - SA" user-configurable cables on the side of the MA 248i, see table 14.4 Bus connection cable for the MA 248i on page 84.
Status displays and operational controls 8 Status displays and operational controls Figure 8.1: LED indicators on the MA 248i 8.1 LED status indicators 8.1.
Status displays and operational controls 8.1.
Status displays and operational controls 8.2 Internal interfaces and operational controls 8.2.1 Overview of operational controls of the The operational controls of the MA 248i are described in the following. The figure shows the MA 248i with opened housing cover.
Status displays and operational controls 42 Circuit board element desig. Function X1 Operating voltage PWR IN M12 connector for operating voltage (18 … 30VDC) MA 248i and connected Leuze device xx X2 Output voltage PWR OUT M12 connector for other devices (MA, BCL, sensor, …) VOUT = VIN max.
Status displays and operational controls 8.2.2 Connector X30 … connectors PCB connectors X30 … X32 are available in the MA 248i for connecting the respective Leuze devices via RS 232. Figure 8.3: Connections for Leuze devices Attention! Several Leuze devices may not be connected to the MA 248i simultaneously, as only one RS 232 interface can be operated. 8.2.
Status displays and operational controls For further information on the corresponding options, see chapter 4.4 "Operating modes". 8.2.5 Rotary switch S4 for device selection The S4 rotary switch is used to select the Leuze end device. Figure 8.5: Rotary switch for device selection The following switch positions are assigned to the Leuze devices: Leuze device Standard setting Other RS 232 devices such as KONTURflex QUATTRO BCL 8 BCL 22 n.c.
Configuration 9 Configuration The MA 248i is configured using the GSD or GSDML file via the device manager of the control. 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 is provided on the Leuze home page www.leuze.
Configuration Figure 9.1: COM port settings Notice! Observe that STX, data, CR, LF framing must be set on the PC terminal program so that communication is possible with the connected Leuze device. Commands You can now call up information on the MA 248i by sending the following commands. v General service information. s Enable memory mode for the last frames. l The memory mode shows the last RX and TX frames for ASCII and fieldbus. Table 9.
Configuration 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). 1024 bytes max. Received ASCII Frames Number of received ASCII frames. ASCII Framing Error (GW) Number of received framing errors. Number of Received CTB's Number of CTB commands. Number of Received SFB's Number of SFB commands.
Configuration PNS substitute module PNS input data length Currently configured PROFINET input frame length in slot 1. PNS output data length Currently configured PROFINET output frame length in slot 2. IP address Displays the set IP address. Gateway address Displays the set gateway address. Network mask Displays the set network mask. Table 9.6: 48 Indicates whether the default PROFINET slave configuration was changed by the master.
Telegram 10 Telegram 10.1 Structure of the fieldbus telegram All operations are performed by control and status bits. Two bytes of control information and two bytes of status information are available for this purpose. The control bits are a part of the output module and the status bits are a part of the input bytes. The data starts with the third byte. If the actual data length is longer than the data length configured in the gateway, only part of the data is transmitted; the remaining data is lost.
Telegram 10.2 Description of the input bytes (status bytes) 10.2.1 Structure and meaning of the input bytes (status bytes) 7 6 5 4 3 2 ND BO DL BLR DEX SMA DLC7 DLC6 DLC5 DLC4 DLC3 DLC2 1 DLC1 0 W-ACK Status byte 0 DLC0 Status byte 1 Data byte / parameter byte 0 Data Data byte / parameter byte 1 … Table 10.1: Structure of the input bytes (status bytes) Bits of the input byte (status byte) 0 Bit no.
Telegram 10.2.2 Detailed description of the bits (input byte 0) Bit 0: Write-Acknowledge: W-ACK This bit is only relevant for writing slave data in blocks, see chapter 11.1.2 (buffer data on RS 232). It toggles when data from the PLC are sent to the MA with CTB or SFB. Input data Description Addr. Data type W-ACK Write-Acknowledge (write confirmation) Write handshake Indicates that the data was successfully sent by the PLC to the gateway. Write-Acknowledge is indicated via this bit. The W-ACK bit 0.
Telegram Bit 4: Next block ready to transmit: BLR This bit is only relevant for reading slave data in Collective mode relevant, see chapter 11.1.1. Input data Description Addr. Data type BLR Next block ready to transmit (new block ready) The Block Ready toggle bit changes its state whenever the fieldbus gateway has removed received data from the 0.4 receive buffer and registered it in the corresponding receivedata bytes.
Telegram Bit 7: New data: ND This bit is only relevant in Transparent mode. Input data Description Addr. Data type ND New data (new data) This bit is toggled on each data set that is sent from the gate- 0.7 way to the PLC. This can be used to differentiate between multiple, identical data sets that are sent to the PLC. Bit Value range Default 0->1; 1->0: On each status 0 change for new data 10.2.3 Detailed description of the bits (input byte 1) Bit 0 … 7: Data length code: DLC0 … DLC7 10.
Telegram Bits of the output byte (control byte) 1 10.3.2 Bit no. Designation Meaning 0 R-ACK Read-Acknowledge 2 SFB Send data from transmit buffer 3 CTB Copy to transmit-buffer Detailed description of the bits (output byte 0) Bit 0: Command mode: Command mode Output data Description Addr. Data type Command mode This bit is used to activate Command mode. In Command mode, no data is sent by the PLC to the Leuze end device via Command mode the gateway.
Telegram 10.3.3 Detailed description of the bits (output byte 1) Bit 0: Read-Acknowledge: R-ACK This bit is only relevant for writing slave data in blocks (Collective mode), see chapter 11.1.2. Output data Description Addr. Data type R-ACK Read-Acknowledge (read confirmation) Toggle bit: Indicates to the fieldbus gateway that the "old" data has been processed and that new data can be received. At the end of a read cycle, this bit must be toggled in order to be able to receive the next data set.
Telegram Bit 3: Copy to transmit buffer: CTB This bit is only relevant for writing slave data in blocks (Collective mode), see chapter 11.1.2. Output data Description Addr. Data type CTB Copy to transmit buffer (transmission data to transmit buffer) Toggle bit: Changing this bit writes the data from the PLC to the transmit buffer of the fieldbus gateway. This is used, for example, for long command strings which must be transmit- 1.3 ted to the connected ident device.
Modes 11 Modes 11.1 Functionality of the data exchange The fieldbus gateway has two different modes that can be selected via the PLC: • Transparent mode (standard setting) In Transparent mode, all data is sent 1:1 and directly by the serial end device to the PLC. It is not necessary to use status and control bits here. However, only data bytes possible for one transmission cycle are transmitted - all others are lost.
Modes 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. If no further user data is present in the MA 2xxi ("DEX" bit = "0"), the "R-ACK" bit must be toggled once as read confirmation to release data transmission for the next read cycle.
Modes 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. This means that the hex value "2B" (corresponds to a "+") is to be entered in control or output byte 2. To deactivate the reading gate, a "2D" (hex) must be used instead (corresponds to a "-" ASCII).
Modes Collective mode sequence diagram Send long online commands to the DEV, read RS 232 answer from DEV Activate Collective mode No Select function mode in PLC via EDS file? Yes Save toggle bits as process image Sending of data Number < 254 Reception of data Enter user data that are to be sent into output data words starting at Out 2 DLC = number of binarycoded data bytes No Send data in the transmit buffer with the CTB = ! CTB toggle bit (control bit 1.
Modes 11.1.3 Command mode One specific feature is the so-called Command mode, which is defined via the output control byte 0 (bit 0) ... and enables the control of the connected device per bit. If the command mode is activated (command mode = 1), no data is sent by the PLC to the Leuze end device via the gateway. The data from the MA to the PLC is transmitted in the selected operating mode (Transparent/Collective).
Modes Command mode sequence diagram Set control byte 0, bit 0.0 to 1 Bit 0.0 =1? No Connected device can only be addressed via HW or PLC data telegram e.g. + Bit 0.0 signals that the respective bit is evaluated as a "control bit" in byte 2, and according to the position of the device selection switch, executes a corresponding function on the device via the stored table Yes Byte 2: Bit set? No No detectable function Select bit, or incorrect byte Yes Device executes the corresponding function (cf.
Modes Triggering the ident devices and reading the data Triggering scanner Reception of data Has the slave received data from the RS 232? BLR = ! BLR Yes Rescue data e.g. data block DLC = number of valid binary-coded data bytes Transmit the next data with toggle bit R-ACK = ! R-ACK (control bit 1.0) TNT 35/7-24V Is there still data in the receive buffer? DEX = 1 set (status bit 0.3) No No Confirm data retrieval with toggle bit R-ACK = ! R-ACK (control bit 1.0) Figure 11.
Commissioning and configuration 12 Commissioning and configuration 12.1 Measures to be performed prior to the initial commissioning Before commissioning, familiarize yourself with the operation and configuration of the MA 248i. 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.
Commissioning and configuration 12.2 Starting the device Apply the supply voltage +18 … 30VDC (+24VDC model); the MA 248i starts up. 12.3 Configuration steps for a Siemens Simatic S7 control The following steps are necessary for commissioning with a Siemens S7 control: 1. 2. 3. 4. 5. 6. TNT 35/7-24V 7.
Commissioning and configuration 12.3.1 Step 1 – Preparing the control system (S7 PLC) The first step involves the assignment of an IP address to the IO Controller (PLC - S7) and the preparation of the control for consistent data transmission, see chapter 12.4.4 "Preparing the control system for consistent data transmission". Notice! If an S7 control is used, you need to ensure that Simatic-Manager Version 5.4 + service pack 5 (V5.4+SP5) or higher is used. 12.3.
Commissioning and configuration 12.3.3 Step 3 – Hardware configuration of the S7 PLC: Configuration TNT 35/7-24V For the configuration of the PROFINET-IO system using the HW Config of the SIMATIC Manager, insert the MA 248i into your project. An IP address is now assigned to a unique "device name". Figure 12.1: Assignment of the device names to IP addresses 12.3.4 Step 4 – Configuration of the modules Now select a corresponding data module for the input and output area.
Commissioning and configuration A larger module is needed, for example, if a BCL bar code scanner is to be configured by means of PT-sequences, or an RFID transponder is to be described. In these cases, larger data modules are usually sensible.
Commissioning and configuration 12.3.6 Step 6 – Configuration of the device name - naming the device The PROFINET-IO device has a unique MAC address that is part of the factory settings. You can find this address on the name plate of the gateway. This information is used to assign a unique, plant-specific device name ("NameOfStation") to the device via the "Discovery and Configuration Protocol (DCP)".
Commissioning and configuration At this point, you can select the respective gateway MA 248i for the "device naming" based on its MAC address. The unique "device name" (which must match the participant in the HW Config) is then assigned to this participant. Notice! Multiple MA 248i can be distinguished by the MAC addresses displayed. The MAC address may be found on the name plate of the respective bar code scanner.
Commissioning and configuration 12.4 Commissioning via the PROFINET-IO General information on the PROFINET implementation of the MA 248i PROFINET-IO communication profile The communication profile defines how participants serially transmit their data via the transmission medium. The PROFINET-IO communication profile is designed for efficient data exchange on the field level. The data exchange with the devices is mainly cyclical.
Commissioning and configuration 12.4.1 Modular structure of the parameter The PROFINET-IO functionality of the device is defined via parameter sets which are clustered in modules. The modules are included in a XML-based GSD file, which is supplied as an integral part of the device. By using a user-specific project tool, such as, e.g.
Commissioning and configuration 12.4.2 Permanently defined parameters/device parameters On the PROFINET-IO, parameters may be stored in modules or may be defined permanently in a PROFINET-IO participant. The permanently defined parameters are called "common" parameters or device-specific parameters, depending on the configuration tool. These parameters must always be present. They are defined outside of the configuration modules and are permanently anchored in the telegram header.
Commissioning and configuration 12.4.3 Overview of the project modules When using PROFINET-IO modules, the parameters are assembled dynamically, i.e., only the parameters that were selected by the activated modules are changed. The MA 248i has parameters (device parameters) that must always be present. These parameters are defined outside of modules and are thus linked to the base module (DAP). In the current version, several modules are available for use.
Commissioning and configuration Description Data content with max. 2 bytes Data content with max. 6 bytes Data content with max. 10 bytes Data content with max. 14 bytes Data content with max. 18 bytes Data content with max. 30 bytes Data content with max. 62 bytes Data content with max. 126 bytes Data content with max. 254 bytes Data content with max. 382 bytes Data content with max. 510 bytes Data content with max. 638 bytes Data content with max. 766 bytes Data content with max.
Commissioning and configuration The small data lengths (< 28 bytes) are particularly of interest for use with bar code scanners (BCL). The larger data lengths are, on the other hand, relevant for 2D-code scanners (handheld scanners, LSIS) and RFID. Taking into consideration the maximum permissible data width of 1024 bytes, multiple modules can also be used for the input data or combined with one another. The combination of module 128 and module 64, for example, yields an input data length of 192 bytes. 12.
Commissioning and configuration 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. STX (02h): Prefix 1 CR (0Dh): Postfix 1 LF (0Ah): Postfix 2 Operation Switch the MA 248i to switch position "RUN" (operation). The Leuze device is now connected to the fieldbus.
Commissioning and configuration 12.6.1.2 Cableless hand-held scanners on the MA 248i All wireless hand-held scanners and mobile combi devices available in the Leuze electronic 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 248i.
Diagnostics and troubleshooting 13 Diagnostics and troubleshooting If problems should occur during commissioning of the MA 248i you can refer to the following table. Typical errors and their possible causes are described here as well as tips for their elimination. 13.1 General causes of errors Error Data loss (DL bit) Data in the RS 232 instead of in the buffer Possible error causes Data telegram longer than the bus telegram in bus cycle/memory size. Measures Increase in bus telegram length.
Diagnostics and troubleshooting 13.2 Interface errors Error Possible error causes Incorrect wiring. No communication via Different protocol settings. PROFINET-IO Incorrect device name set. BF continuous red light Incorrect configuration. LED Incorrect wiring. Sporadic errors at the PROFINET-IO Effects due to EMC. Overall network expansion exceeded. Measures Check wiring. Check protocol settings. Check device name. Check configuration of the device in the configuration tool. Check wiring.
Type overview and accessories 14 Type overview and accessories 14.1 Part number code MA 2xx i i= 04 08 35 38 48 55 58 MA Interface Type overview Type designation MA 204i MA 208i MA 235i MA 238i MA 248i MA 255i MA 258i Table 14.1: 14.3 Description PROFIBUS gateway Ethernet TCP/IP gateway CANopen gateway EtherCAT gateway PROFINET-IO RT gateway DeviceNet gateway EtherNet/IP gateway Description 50112893 50112892 50114154 50114155 50112891 50114156 50114157 Type overview MA 2xxi TNT 35/7-24V 14.
Type overview and accessories 14.4 Accessory ready-made cables for voltage supply 14.4.
Type overview and accessories 14.4.3 Order codes of the cables for voltage supply Type designation Description Part no. K-D M12A-5P-5m-PVC M12 socket for PWR, axial plug outlet, open cable end, cable length 5m 50104557 K-D M12A-5P-10m-PVC M12 socket for PWR, axial plug outlet, open cable end, cable length 10m 50104559 Table 14.3: 14.5 PWR cables for the MA 248i Accessory ready-made cables for bus connection 14.5.
Type overview and accessories 14.5.3 14.5.4 Specifications M12 PROFINET-IO connection cable KB ET… Operating temperature range in rest state: in motion: in motion: Material cable sheath: PUR (green), wire insulation: PE foam, free of halogens, silicone and PVC Bending radius Bending cycles > 65mm, suitable for drag chains > 106, perm. acceleration < 5m/s2 Order codes of M12 PROFINET-IO connection cable KB ET… Type designation Description Part no.
Type overview and accessories 14.6 Accessory ready-made cables for connecting Leuze Ident devices 14.6.1 Order codes for the device connection cables Type designation KB JST-3000 KB JST-HS-300 KB JST-M12A-5P-3000 KB JST-M12A-8P-Y-3000 KB JST-M12A-8P-3000 K-D M12A-5P-5m-PVC K-D M12A-5P-10m-PVC K-DS M12A-MA-5P-3m-S-PUR K-DS M12A-MA-8P-3m-S-PUR K-DS M12A-MA-5P-3m-1S-PUR KB 500-3000-Y KB 301-3000-MA200 Table 14.5: Description MA 31, BCL 90, IMRFU-1(RFU), cable length 3m Hand-held scanner, cable length 0.
Maintenance 15 Maintenance 15.1 General maintenance information The MA 248i does not require any maintenance by the operator. 15.2 Repairs, servicing Repairs to the device must only be carried out by the manufacturer. 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. Notice! When sending devices to Leuze electronic for repair, please provide an accurate description of the error. 15.
Specifications for Leuze end devices 16 Specifications for Leuze end devices Serial interface and Command mode 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.
Specifications for Leuze end devices KONTURflex specifications Settings on the MA 248i • PROFINET address is freely selectable • Device selection switch at position "0" PROFINET settings • Module selection: Dependent on number of beams used, but at least "8 bytes In" • User parameters: "Transparent mode", "Use GSD settings", baud rate 38400, "8 data bits", "No parity", "2 stop bits" KONTURflex settings First, the following settings are to be performed on the device using KONTURFlex-Soft: • • • • 88 Either
Specifications for Leuze end devices 16.2 Bar code reader BCL 8 (S4 switch position 1) Specifications for the serial interface Default parameter Baud rate Data mode Handshake Protocol Frame BCL 8 9600 8N1 no framing protocol without acknowledgment Specifications for Command mode To activate the Command mode, bit 0 must be set to 1 in control byte 0. For further information, see chapter 11.1.3 "Command mode", figure 11.2.
Specifications for Leuze end devices 16.3 Bar code reader BCL 22 (S4 switch position 2) Specifications for the serial interface Default parameter Baud rate Data mode Handshake Protocol Frame BCL 22 9600 8N1 no framing protocol without acknowledgment Specifications for Command mode To activate the Command mode, bit 0 must be set to 1 in control byte 0. For further information, see chapter 11.1.3 "Command mode", figure 11.2.
Specifications for Leuze end devices 16.4 Bar code reader BCL 300i, BCL 500i, BCL 600i (S4 switch position 4) Specifications for the serial interface Default parameter Baud rate Data mode Handshake Protocol Frame BCL 300i, BCL 500i, BCL 600i 9600 8N1 no framing protocol without acknowledgment Specifications for Command mode To activate the Command mode, bit 0 must be set to 1 in control byte 0. For further information, see chapter 11.1.3 "Command mode", figure 11.2.
Specifications for Leuze end devices 16.5 Bar code reader BCL 90, BCL 900i (S4 switch position 5) Specifications for the serial interface Default parameter Baud rate Data mode Handshake Protocol Frame BCL 90, BCL 900i 9600 8N1 no framing protocol without acknowledgment Specifications for Command mode To activate the Command mode, bit 0 must be set to 1 in control byte 0. For further information, see chapter 11.1.3 "Command mode", figure 11.2.
Specifications for Leuze end devices 16.6 LSIS 122, LSIS 222 (S4 switch position 6) Specifications for the serial interface Default parameter Baud rate Data mode Handshake Protocol Frame LSIS 122, LSIS 222 9600 8N1 no framing protocol without acknowledgment Specifications for Command mode To activate the Command mode, bit 0 must be set to 1 in control byte 0. For further information, see chapter 11.1.3 "Command mode", figure 11.2.
Specifications for Leuze end devices 16.7 LSIS 4x2i, DCR 202i (S4 switch position 7) Specifications for the serial interface Default parameter Baud rate Data mode Handshake Protocol Frame LSIS 4x2i, DCR 202i 9600 8N1 no framing protocol without acknowledgment Specifications for Command mode To activate the Command mode, bit 0 must be set to 1 in control byte 0. For further information, see chapter 11.1.3 "Command mode", figure 11.2.
Specifications for Leuze end devices 16.8 Hand-held scanner (S4 switch position 8) Specifications for the serial interface Default parameter Baud rate Data mode Handshake Protocol Frame Hand-held scanner 9600 8N1 no framing protocol without acknowledgment Notice! Command mode cannot be used with hand-held scanners. Recommended settings • Input module: dependent on the number of digits of the bar code or 2D code that is to be read.
Specifications for Leuze end devices 16.9 RFI, RFM, RFU RFID readers (S4 switch position 9) Specifications for the serial interface Default parameter Baud rate Data mode Handshake Protocol Frame RFM 12,RFM 32 and RFM 62 RFI 32 RFU (via IMRFU) 9600 8N1 no framing protocol without acknowledgment Specifications for Command mode To activate the Command mode, bit 0 must be set to 1 in control byte 0. For further information, see chapter 11.1.3 "Command mode", figure 11.2.
Specifications for Leuze end devices 16.10 BPS 8 bar code positioning system (S4 switch position A) Specifications for the serial interface Default parameter Baud rate Data mode Handshake Protocol Frame BPS 8 57600 8N1 no binary protocol without acknowledgment Specifications for Command mode To activate the Command mode, bit 0 must be set to 1 in control byte 0. For further information, see chapter 11.1.3 "Command mode", figure 11.2.
Specifications for Leuze end devices 16.11 BPS 300i bar code positioning system, ODSL xx optical distance sensors with RS 232 interface (S4 switch position B) Notice! In this switch position, 6-byte data (fixed) is always expected by the device. This is why a quick telegram sequence can be transmitted reliably even without a data frame.
Specifications for Leuze end devices ODSL 9, ODSL 30 and ODSL 96B Notice! The default settings of the ODS serial interface have to be adjusted! Further information on configuration of the interface can be found in the technical description of the corresponding device.
Specifications for Leuze end devices 16.12 Modular interfacing unit MA 3x (S4 switch position C) Specifications for the serial interface Default parameter Baud rate Data mode Handshake Protocol Frame MA 3x 9600 8N1 no framing protocol without acknowledgment Specifications for Command mode To activate the Command mode, bit 0 must be set to 1 in control byte 0. For further information, see chapter 11.1.3 "Command mode", figure 11.2.
Specifications for Leuze end devices 16.13 Resetting the parameters (S4 switch position F) To reset all parameters of the MA that can be configured with software (such as baud rate, IP address, dependent on type) to the factory settings, do the following: Set device switch S4 to F in a voltage free state. Switch the voltage on and wait until it is ready for operation. If necessary, switch the voltage off to prepare for commissioning. TNT 35/7-24V Set service switch S10 to the "RUN" position.
Appendix 17 Appendix 17.1 ASCII Table 102 HEX DEC CTRL ABB DESIGNATION MEANING 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F 20 21 22 23 24 25 26 27 28 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 ^@ ^A ^B ^C ^D ^E ^F ^G ^H ^I ^J ^K ^L ^M ^N ^O ^P ^Q ^R ^S ^T ^U ^V ^W ^X ^Y ^Z ^[ ^\ ^] ^^ ^_ NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO SI DLE DC1 DC2 DC3 DC4 NAK SYN ET
Appendix DEC 29 2A 2B 2C 2D 2E 2F 30 31 32 33 34 35 36 37 38 39 3A 3B 3C 3D 3E 3F 40 41 42 43 44 45 46 47 48 49 4A 4B 4C 4D 4E 4F 50 51 52 53 54 55 56 57 58 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 Leuze electronic CTRL ABB DESIGNATION MEANING ) * + , .
Appendix 104 HEX DEC 59 5A 5B 5C 5D 5E 5F 60 61 62 63 64 65 66 67 68 69 6A 6B 6C 6D 6E 6F 70 71 72 73 74 75 76 77 78 79 7A 7B 7C 7D 7E 7F 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 CTRL ABB Y Z [ \ ] ^ _ ‘ a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ DEL DESIGNATION MEANING OPENING BRACKET REVERSE SLANT CLOSING BRACKET CIRCUMFLEX UNDERSCORE GRAVE ACCENT Opening bracket Reverse slan
Index A I Accessories . . . . . . . . . . . . . . . . . . . . . . . . . 81 Bus connection cables . . . . . . . . . . . . . . 83 Cables for Leuze ident devices . . . . . . . . 85 Connector . . . . . . . . . . . . . . . . . . . . . . . . 81 Voltage supply cables . . . . . . . . . . . . . . . 82 ASCII Table . . . . . . . . . . . . . . . . . . . . . . . . . 102 Input byte 0 Buffer overflow . . . . . . . . . . . . . . . . . . . . Data exist . . . . . . . . . . . . . . . . . . . . . . . . Data loss . . . . . .
Index Mounting the device . . . . . . . . . . . . . 11, 28 N Neighborhood detection . . . . . . . . . . . . . . . 71 O Operating modes Operation . . . . . . . . . . . . . . . . . . . . . . . . Service fieldbus gateway . . . . . . . . . . . . Service Leuze device . . . . . . . . . . . . . . . Output byte 0 Address bits 0 .. 4 . . . . . . . . . . . . . . . . . . Broadcast . . . . . . . . . . . . . . . . . . . . . . . . Command mode . . . . . . . . . . . . . . . . . . . New data . . . . . . . . . . . . . . .