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.2Declaration of Conformity
The MA 248i modular interfacing units have been designed and manufactured in accordance with applicable European directives and standards.
Notice!
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 certified quality assurance system in accordance with ISO 9001.
The MA 248i modular interfacing unit is "UL LISTED" in accordance with American and
Canadian safety standards and fulfills the requirements of Underwriter Laboratories Inc.
(UL).
6MA248iLeuze electronic
Page 9
1.3Description of functions
The MA 248i modular interfacing unit is used to connect Leuze devices directly to the
fieldbus.
Bar code reader:BCL 8, 22, 300i, 500i, 600i, 90, 900i
This is accomplished by transmitting the data from the DEV via an RS 232 (V.24) interface
to the MA 248i and converting it into the PROFINET format. The data format on the RS 232
interface corresponds to the Leuze standard data format (9600bd, 8N1 and STX, data, CR,
LF).
The integration of the GSDML file in the hardware manager of the PLC is necessary to ensure
the correct function of the MA 248i.
The corresponding Leuze devices are selected using a rotary code switch on the circuit
board of the connector unit. Many additional RS 232 devices can be connected through a
universal position.
General information
Leuze electronicMA 248i7
TNT 35/7-24V
Page 10
General information
1.4Definition 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 2
• Data length:
Size of a valid, continuous data packet in bytes.
• GSD file (device master file):
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 completely 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 248i,
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 registered data is sent by the PLC to the MA 248i.
0
.
8MA248iLeuze electronic
Page 11
2Safety
This device was developed, manufactured and tested in line with the applicable safety standards. It corresponds to the state of the art.
2.1Intended 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. The protection of per-
sonnel 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.
NOTICE
Comply with conditions and regulations!
Observe the locally applicable legal regulations and the rules of the employer's liability
insurance association.
Safety
Attention
For UL applications, use is permitted exclusively in Class 2 circuits according to NEC
(National Electric Code).
2.2Foreseeable 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:
• Rooms with explosive atmospheres
• As stand-alone safety component in accordance with the machinery directive
• For medicinal purposes
1) Use as safety-related component within the safety function is possible, if the component combination is designed correspondingly by the machine manufacturer.
Leuze electronicMA 248i9
1)
TNT 35/7-24V
Page 12
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.3Competent 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.
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 standards and regulations, certified electricians are able to perform work on electrical systems and independently 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.4Disclaimer
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.
10MA 248iLeuze electronic
Page 13
Fast commissioning / operating principle
PWR OUT
VOUT
123
4
SWIO_2
SWIO_1
GND
FE
5
PWR IN
SWIO_1
SWIO_2
321
4
5
GNDVIN
FE
HOST / BUS IN
TD+
123
4
RD+
RD-
TD-
LEUZE Device
BUS OUT
TD+
123
4
RD+
RD-
TD-
M12 connector
(A-coded)
M12 socket
(A-coded)
M12 socket
(D-coded)
M12 socket
(D-coded)
3Fast 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.1Mounting
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.2Device arrangement and selection of the mounting location
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.
Detailed information can be found in chapter 6.3.1.
3.3Electrical connection
The devices from the MA 2xxi 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 is dependent
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 248i connections
Detailed information can be found in chapter 7.
Leuze electronicMA 248i11
TNT 35/7-24V
Page 14
Fast commissioning / operating principle
3.3.1Connecting 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.
Now screw the PG cable gland into the threaded opening to provide strain relief and
ensure protection class IP 65.
Finally, close the housing of the MA 248i.
Attention!
Only then may the supply voltage be applied.
Upon startup of the MA 248i, the device selection switch is queried and the gateway automatically sets itself to the Leuze device.
Connecting 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.
3.3.2Connecting the power supply and the bus cable
Ideally, use the ready-made cables listed in chapter 14.4.3 to connect the gateway to the
power supply via the PWR IN connection.
The ready-made cables listed in chapter 14.5.4 are preferred for connecting the gateway
to the fieldbus 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.4Starting the device
Apply the supply voltage +18 … 30VDC (+24VDC model); the MA 248i starts up.
The PWR LED displays that it is ready for operation.
First, you need to assign its individual device name to the MA 248i. The PLC must communicate this device name to the participant during the "device naming". Further information
may be found below and in chapter "Step 6 – Configuration of the device name - naming
the device" on page 69.
12MA 248iLeuze electronic
Page 15
Fast commissioning / operating principle
3.5Commissioning 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.1Preparing 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.
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.
3.5.2Installation of the GSD file
For the subsequent configuration of the IO devices, e.g., MA 248i, the corresponding GSD
file must be loaded first. All data in modules required for operating the device is described
in this file. These are input and output data and device parameters for the functioning of the
device and the definition of the control and status bits.
Install the GSD file associated with the device in the PROFINET-IO Manager of your
control.
Leuze electronicMA 248i13
TNT 35/7-24V
Page 16
Fast commissioning / operating principle
3.5.3Configuration
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.4Configuration of the modules
Now select a corresponding data module for the input and output area.
A number of different modules are available with various data lengths (4, 8, 12, 16,
20, 32 … 1024 bytes).
Notice!
Because the data module contains 2 bytes for the control and status bytes, the actual user
data length is always 2 bytes smaller than the selected data module.
E.g., when using the data module with 12 bytes, there are effectively 10 bytes available for
user data on the Leuze device after subtracting the 2 bytes for status and control bytes.
14MA 248iLeuze electronic
Page 17
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.4,
section "Examples of sensible settings for corresponding Leuze devices" on page 68.
3.5.5Transfer of the configuration to the IO Controller
Transfer the PROFINET-IO configuration to the IO Controller (S7 PLC)
After the correct transfer to the IO Controller (S7 PLC), the PLC automatically carries out
the following activities:
• Check device names
• Assignment of the IP addresses that were configured in the HW Config to the
IO devices
• Establishment of a connection between the IO Controller and configured IO devices
• Cyclical data exchange
Notice!
Participants that have not been "named" cannot be contacted yet at this point in time!
Leuze electronicMA 248i15
TNT 35/7-24V
Page 18
Fast commissioning / operating principle
3.5.6Configuration 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.
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.
Figure 3.3:Assigning the device names to the configured IO devices
16MA 248iLeuze electronic
Page 19
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.
3.5.7Device name check
After completing the configuration phase, recheck the "device names" that have been
assigned. Please ensure that these names are unique and that all participants are located
in the same subnet.
Leuze electronicMA 248i17
TNT 35/7-24V
Page 20
Device description
4Device description
4.1General 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.
With a stored parameter structure for the connectable RS 232 devices, commissioning
could hardly be simpler.
4.2Characteristics of the connector units
A special characteristic of the MA 248i device family are three function modes:
1.Transparent mode
In this function mode, the MA 248i 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 purpose, device-dependent commands (so-called online commands) are predefined via the device selection switch, see chapter 16 "Specifications for Leuze end
devices".
18MA 248iLeuze electronic
Page 21
4.3Device construction
Fieldbus
Fieldbus
MA 248i
Leuze
device
Either
network or other devices
with RS 232
RS 232
(V.24)
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.
Device description
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 248i and connected there with the PCB connectors.
The MA 248i is intended as a gateway for any RS 232 devices, e.g., BCL 300i, hand-held
scanners, scales or for coupling a multiNet network.
The RS 232 cables are internally connectable using JST plug connectors. 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.
Leuze electronicMA 248i19
TNT 35/7-24V
Page 22
Device description
4.4Operating 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. 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
Notice!
If the service switch is on one of the service settings, the SF 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.
20MA 248iLeuze electronic
Page 23
Service interface
5 GND
3 TxD
2 RxD
GND 5
TxD 3
RxD 2
1
1
PC/terminal
COM interface
MA 248i
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.
Figure 4.3:Connecting the service interface to a PC/terminal
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.
4.5Fieldbus systems
Various product variants of the MA 2xxi series are available for connecting to different
fieldbus systems such as PROFIBUS DP, PROFINET-IO, DeviceNet and Ethernet.
Device description
4.5.1PROFINET-IO
The MA 248i is designed as a PROFINET-IO device (acc. to IEEE 802.3). It supports a transmission rate of up to 100 Mbit/s (100Base TX), full duplex, as well as auto-negotiation and
auto-crossover.
The functionality of the device is defined via parameter sets which are clustered in modules.
These modules are contained in a GSDML file.
Each MA 248i is sealed with a unique MAC-ID. This information is used to assign a unique,
plant-specific device name ("NameOfStation") to the device via the "Discovery and Configuration Protocol (DCP)". When configuring a PROFINET-IO system, the assignment of the
device names to the configured IO devices creates a name-based relationship for the participating IO devices ("device naming"). Further information can be found in section "Step 6 –
Configuration of the device name - naming the device" on page 69.
The MA 248i features multiple M12 connectors / sockets for the electrical connection of the
supply voltage, the interface and the switching inputs and outputs. Additional information
Leuze electronicMA 248i21
on the electrical connection can be found in chapter 7.2.
TNT 35/7-24V
Page 24
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)
PROFILE_SPECIFIC_TYPE58UNSIGNED16Info about subchannels and submodules
IM_VERSION602xUNSIGNED8Implemented I&M version V 1.10x01,0x01
IM_SUPPORTED62Bit[16]Optional I&M records available0
Table 4.1:Base record I&M0
"0…65535"
corresponds to "V1.3.0"
modules
This function is not supported
Not relevant
dependent
dependent
Devicedependent
Devicedependent
0
(generic device)
0x01,0x01
The MA 248i supports further protocols and services for communication:
• TCP/IP (firmware upload via web server)
•DCP
•ARP
•PING
Further information on commissioning can be found in chapter 12.
22MA 248iLeuze electronic
Page 25
Device description
MA 248i
"192.168.0.100"
PC / PLC host interface
Other network participants
PC / PLC host interface
MA 248i
"192.168.0.100"
to other network participants
MA 248i
"192.168.0.101"
MA 208i
"192.168.0.102"
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".
Figure 4.4:PROFINET-IO in a star topology
PROFINET-IO – linear topology
The innovative further development of the MA 248i with integrated switch functionality offers
the option of connecting multiple connector units of type MA 248i to one another without
direct connection to a switch. In addition to the classic "star topology", a "linear topology"
is thus also possible.
Leuze electronicMA 248i23
Figure 4.5:PROFINET-IO in a linear topology
Each participant in this network requires its own unique device name that is assigned by
the PLC during the "device naming". For specific information, please refer to chapter "Step
6 – Configuration of the device name - naming the device" on page 69.
The maximum length of a segment (connection from the hub to the last participant) is limited
to 100m.
TNT 35/7-24V
Page 26
Specifications
5Specifications
5.1General specifications
Electrical data
Interface type2x PROFINET-IO, integrated switch,
ProtocolsPROFINET-IO RT-communication
Baud rate10/100MBaud
Data formatsData bit: 8, parity: None, stop bit: 1
Service interface RS 232, 9-pin Sub-D connector, Leuze standard
Switching input/output1 switching input/1 switching output
Operating voltage18 … 30V DC (PELV, Class 2)
Power consumptionMax. 5VA (without DEV, current consumption max.
Max stress on the connector
(PWR IN/OUT)
Indicators
LED LINK0 greenConnection possible
yellow RX/TX0 data transmission
LED LINK1 green Connection possible
yellow RX/TX1 data transmission
BF LED red Bus error
SF LED red Collection error
Mechanical data
Protection classIP 65 (with screwed-on M12 and connected Leuze
Weight700 g
Dimensions (HxWxD)130 x 90 x 41mm / with plate: 180 x 108 x 41mm
HousingDiecast aluminum
Connection2 x M12: BUS IN / BUS OUT PROFINET-IO
Environmental data
Operating temperature range0 °C … +55°C
Storage temperature range-20°C … +60 °C
Air humidityMax. 90% rel. humidity, non-condensing
DCP
TCP/IP (firmware upload via web server)
ARP
PING
device-dependent voltage
300mA)
3A
device)
1 connector: RS 232
1 x M12: Power IN/GND and switching input/output
1 x M12: Power OUT/GND and switching input/output
1)
24MA 248iLeuze electronic
Page 27
VibrationIEC 60068-2-6, test FC
ShockIEC 60068-2-27, test Ea
Electromagnetic compatibilityEN 61000-6-3:2007 (interference emissions for resi-
CertificationsUL 60950-1, CSA C22.2 No. 60950-1
1) For UL applications: only for use in "Class 2" circuits acc. to NEC.
5.2Dimensioned drawings
Specifications
dential, commercial and light-industrial environments)
EN 61000-6-2:2005 (interference rejection for industrial sectors)
1)
Figure 5.1:MA 248i dimensioned drawing
Leuze electronicMA 248i25
TNT 35/7-24V
Page 28
Specifications
5.3Type 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.
FieldbusDevice typePart no.
PROFIBUS DP V0MA 204i50112893
Ethernet TCP/IPMA 208i50112892
PROFINET-IO RTMA 248i50112891
DeviceNet MA 255i50114156
CANopen MA 235i50114154
EtherCAT MA 238i50114155
EtherNet/IP MA 258i50114157
Table 5.1:Type overview MA 2xxi
26MA 248iLeuze electronic
Page 29
6Installation and mounting
6.1Storage, transportation
Attention!
When transporting or storing, package the device s o that it is prot ected 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.
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 2xxi type your device is. For specific
information, please refer to the package insert or chapter 14.2.
Name plate of the connector unit
Installation and mounting
Figure 6.1:Device name plate MA 248i
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 electronic sales office.
Observe the applicable local regulations when disposing of the packaging materials.
Leuze electronicMA 248i27
TNT 35/7-24V
Page 30
Installation and mounting
Fastening
options
6.2Mounting
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 M 8 screws
Figure 6.2: Fastening options
28MA 248iLeuze electronic
Page 31
6.3Device 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.1Selecting 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.
• 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 248i by mechanical collision or jammed
parts.
6.4Cleaning
Clean the housing of the MA 248i with a soft cloth after mounting. Remove all packaging
remains, e.g. carton fibers or Styrofoam balls.
Attention!
Do not use aggressive cleaning agents such as thinner or acetone for cleaning the device.
Installation and mounting
Leuze electronicMA 248i29
TNT 35/7-24V
Page 32
Electrical connection
7Electrical 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. For the exact design, refer to the corresponding
description of the MA 2xxi device type.
Notice!
The corresponding mating connectors and ready-made cables are available as accessories
for all cables. For further information, see chapter 14 "Type overview and accessories".
Figure 7.1:Location of the electrical connections
7.1Safety notices for the electrical connection
Attention!
Before connecting the device please ensure that the supply voltage matches the value printed on the nameplate.
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
guaranteed when the functional earth is connected properly.
If faults cannot be corrected, the device should be removed from operation and protected
against possible commissioning.
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 safety class III for supply by PELV
(protective extra-low voltage with reliable disconnection).
Notice!
Protection class IP65 is achieved only if the connectors and caps are screwed into place!
30MA 248iLeuze electronic
Page 33
7.2Electrical connection
PWR OUT
VOUT
123
4
SWIO_2
SWIO_1
GND
FE
5
PWR IN
SWIO_1
SWIO_2
321
4
5
GNDVIN
FE
HOST / BUS IN
TD+
123
4
RD+
RD-
TD-
LEUZE Device
BUS OUT
TD+
123
4
RD+
RD-
TD-
M12 connector
(A-coded)
M12 socket
(A-coded)
M12 socket
(D-coded)
M12 socket
(D-coded)
PWR IN
SWIO_1
SWIO_2
3
2
1
4
5
GNDVIN
FE
M12 connector
(A-coded)
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.
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 7.2:MA 248i connections
Described in detail in the following are the individual connections and pin assignments.
Attention!
Voltage supply and bus cable are coded in the same way. Please observe the printed connection designations
Electrical connection
7.2.1PWR IN – voltage supply / switching input/output
Leuze electronicMA 248i31
PWR IN (5-pin connector, A-coded)
ThreadFEFunctional earth (housing)
Table 7.1:PWR IN pin assignment
PinNameRemark
1VINPositive supply voltage +18 … +30VDC
2SWIO_2Switching input/switching output 2
3GNDNegative supply voltage 0V DC
4SWIO_1Switching input/switching output 1
5FEFunctional earth
TNT 35/7-24V
Page 34
Electrical connection
Notice!
The designation and function of the SWIO depends on the connected device. Please observe
the following table!
For UL applications, use is only permitted in class 2 circuits in accordance with the NEC
(National Electric Code).
configurable
IO 1 / SWIO 3
IO 2 / SWIO 4
configurable
(on SWIN_1, PWRIN)
The fieldbus gateways are designed in accordance with safety class III for supply by PELV
(protective extra-low voltage with reliable disconnection).
Connecting functional earth FE
Notice!
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.
Switching input/output
The MA 248i is equipped with the SWIO_1 and SWIO_2 switching inputs/outputs. This is
located on the PWR IN M12 connector and on the PWR OUT M12 connector. The connection of the switching inputs/outputs from PWRIN to PWROUT 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.
32MA 248iLeuze electronic
Page 35
7.2.2PWR OUT switching input/output
M12 socket
(A-coded)
HOST / BUS IN
TD+
1
2
3
4
RD+
RD-
TD-
M12 socket
(D-coded)
PWR OUT (5-pin socket, A-coded)
PWR OUT
SWIO_2
2
VOUT
1
SWIO_1
Table 7.2:PWR OUT pin assignment
Notice!
The maximum admissible current of the PWR OUT and IN connectors is maximum 3 A. To
be subtracted from this is the current consumption of both the 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.
On delivery, the SWIO 1/2 are connected in parallel on PWR IN/OUT. This connection can
be separated with a jumper.
GND
3
5
4
FE
PinNameRemark
1VOUT
2SWIO_2Switching input/switching output 2
3GNDGND
4SWIO_1Switching input/switching output 1
5FEFunctional earth
ThreadFEFunctional earth (housing)
Electrical connection
Voltage supply for additional devices
(VOUT identical to VIN at PWR IN)
7.3BUS IN
Leuze electronicMA 248i33
The MA 248i makes a PROFINET-IO interface available as host interface.
BUS IN (4-pin socket, D-coded)
PinNameRemark
1TD+Transmit Data +
2RD+Receive Data +
3TD-Transmit Data -
4RD-Receive Data -
ThreadFEFunctional earth (housing)
Table 7.3:Pin assignment HOST / BUS IN
For the host connection of the MA 248i, the "KB ET - … - SA-RJ45" ready-made cables
are preferred, see table 14.4 Bus connection cable for the MA 248i on page 84.
TNT 35/7-24V
Page 36
Electrical connection
Twisted Pair
Twisted Pair
max. 100m
shielded cable
RJ45 - assignment and wire colors
PinSignalName
Wire color according
to PROFINET
Wire color according
to EIA T568B
1TD+ Transmission Data + yellowwhite/orange
2TD
-
Transmission Data - orangeorange
3RD+ Receive Data + whitewhite/green
6RD
-
Receive Data
-
bluegreen
PROFINET-IO cable assignments
MA 248 HOST / BUS INRJ 45
RD+
2
TD+
1
Figure 7.3:HOST/BUS IN cable assignments on RJ-45 (shown here is the device connection)
Notice for connecting the PROFINET-IO interface!
Ensure adequate shielding. The entire connection cable must be shielded and earthed. The
RD+/RD- and TD+/TD- wires must be stranded in pairs.
Use CAT 5 cable for the connection.
3
4
RD-
TD-
TD+ (1)
TD- (2)
1
RD+ (3)
RD- (6)
8
34MA 248iLeuze electronic
Page 37
7.4BUS OUT
BUS OUT
TD+
1
2
3
4
RD+
RD-
TD-
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.
If you use user-configurable cables, note the following:
Notice!
Ensure adequate shielding. The entire connection cable must be shielded and earthed. The
signal lines must be stranded in pairs.
Use CAT 5 cable for the connection.
Notice!
For the MA 248i as standalone device or as the last participant in a linear topology,
termination on the BUS OUT socket is not mandatory!
Electrical connection
BUS OUT (4-pin socket, D-coded)
PinNameRemark
1TD+Transmit Data +
2RD+Receive Data +
3TD-Transmit Data -
4RD-Receive Data -
ThreadFEFunctional earth (housing)
Leuze electronicMA 248i35
TNT 35/7-24V
Page 38
Electrical connection
7.5Device interfaces
Figure 7.4:Open MA 248i
7.5.1RS 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. For hand-held scanners, BCL 8 and BPS 8 with 5V DC supply (from the MA)
on pin 9, the 12-pin X30 PCB connection is available as well.
By using an additional cable (cf. "Type overview and accessories" on page 81), the system
connection can be established on M12 or 9-pin Sub-D, e.g., for hand-held scanners.
36MA 248iLeuze electronic
Page 39
7.5.2Service interface (internal)
5 GND
3 TxD
2 RxD
GND 5
TxD 3
RxD 2
1
1
PC/terminal
COM interface
MA 248i
Service interface
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.
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. A hardware handshake via RTS, CTS is not
supported at the service interface.
Electrical connection
Figure 7.7:Connecting the service interface to a PC/terminal
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.
Notice!
To configure the devices connected to the external interface, e.g., BCL 8 (JST plug connector "X30"), a cable specially configured for this purpose is necessary. The service switch must
be in the "DEV" or "MA" position (Service Leuze device/MA).
Leuze electronicMA 248i37
TNT 35/7-24V
Page 40
Electrical connection
7.6PROFINET-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.
The individual MA 248i devices in a linear topology are connected with the
"KB ET - … - SSA" cable, see "Bus connection cable for the MA 248i" on page 84.
For unavailable cable lengths, you can configure your cables yourself. When doing so, make
certain that you connect TD+ on the M12 connector with RD+ on the RJ-45 connector and
TD- on the M12 connector with RD- on the RJ-45 connector, respectively, etc.
Notice!
Use the recommended connectors / sockets or the ready-made cables (see chapter 14 "Type
overview and accessories").
For further information on the topologies, see chapter 4.5.1 "PROFINET-IO".
7.7Cable lengths and shielding
Observe the following maximum cable lengths and shielding types:
ConnectionInterfaceMax. cable lengthShielding
MA 248i– – ServiceRS 23210mnot necessary
MA 248i – HostPROFINET-IO RT100mabsolutely required, shielded
MA 248i – Power
supply unit
Switching input10mnot necessary
Switching output10mnot necessary
Table 7.5:Cable lengths and shielding
38MA 248iLeuze electronic
30mnot necessary
Page 41
Status displays and operational controls
8Status displays and operational controls
Figure 8.1:LED indicators on the MA 248i
8.1LED status indicators
8.1.1LED indicators on the circuit board
LED (Status)
offDevice OFF
- no operating voltage or device defect
continuous green lightDevice ok
- readiness for operation
continuous orange lightDevice error / firmware available
flashing green-orangeDevice in boot mode
-no firmware
Leuze electronicMA 248i39
TNT 35/7-24V
Page 42
Status displays and operational controls
SF
SF
BF
Link 0
RX/TX 0
Link 0
RX/TX 0
Link 1
RX/TX 1
Link 1
RX/TX 1
8.1.2LED indicators on the housing
SF LED
flashing greenDevice in service mode
continuous red lightNetwork error
BF LED
continuous red lightNetwork error
LINK 0/RX/TX 0 LED
continuous green lightLINK0
flashing yellowRX/TX0
- system error
for details, see chapter 15 "Diagnostics
and troubleshooting"
-errors on PROFINET
for details, see chapter 15 "Diagnostics
and troubleshooting"
- connection exists
- data exchange
LINK 1/RX/TX 1 LED
continuous green light LINK1
- connection exists
flashing yellowRX/TX1
- data exchange
40MA 248iLeuze electronic
Page 43
Status displays and operational controls
CB
A
D
E
G
F
= Standard settings
A MA 248i: not equipped
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
F3 JST plug connectors: connection of the Leuze devices
G MA 248i: not equipped
8.2Internal interfaces and operational controls
8.2.1Overview 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.
Figure 8.2:Front view: operational controls of the MA 248i
Leuze electronicMA 248i41
TNT 35/7-24V
Page 44
Status displays and operational controls
Circuit board element
desig.
X1
Operating voltage
X2
Output voltage
X4
HOST interface
X5
HOST interface
X30
Leuze device
X31
Leuze device
X32
Leuze device
X33
RS 232 service interface
S4
Rotary switch
S10
DIP switch
J1, J2
Jumper
Function
PWR IN
M12 connector for operating voltage (18 … 30VDC) MA 248i and connected
Leuze device xx
PWR OUT
M12 connector for other devices (MA, BCL, sensor, …)
VOUT = VIN max. 3A
BUS IN
HOST interface for connecting to the fieldbus
BUS OUT
Second BUS interface for creating a network with other participants in a linear
topology
JST plug connector with 12 pins
Connection of the Leuze devices with 5V / 1A
(BCL 8, BPS 8 and hand-held scanner)
JST plug connector with 10 pins
Connection of the Leuze devices (BCL, RFI, RFM,…)
Pin VINBCL with standard setting = V+ (18 - 30 V)
JST plug connector with 6 pins
Connection of the Leuze devices (BCL, RFI, RFM,…)
Pin VINBCL with standard setting = V+ (18 - 30 V)
9-pin SUB-D connector
RS 232 interface for service/setup operation. Enables the connection of a PC via
serial null modem cable for configuring the Leuze device and the MA 248i
Rotary switch (0 … F) for device selection
Standard setting = 0
Service switch
Switch between service Leuze device (DEV), service fieldbus gateway (MA) and
operation (RUN).
Standard setting = operation.
Bridging, separating switching input/output
(interruption of connection between the two PWR M12 connectors of the
SWIO 1/SWIO 2)
42MA 248iLeuze electronic
Page 45
8.2.2Connector 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.3RS 232 service interface – X33
The X33 RS 232 interface facilitates the configuration of the Leuze device and the MA 248i
via PC, which is connected by means of a serial null modem cable.
X33 pin assignment – service connector
SERVICE (9-pin SUB-D connector)
PinNameRemark
2RXDReceive Data
3TXDTransmit Data
Status displays and operational controls
5GNDFunctional earth
Table 8.1:SERVICE pin assignment
8.2.4S10 service switch
The S10 DIP switch can be used to select between the "operation" and "service" modes,
i.e. you switch between the following options here:
• Operation (RUN) = default setting
• Service Leuze device (DEV) and
• Service fieldbus gateway (MA)
Figure 8.4:DIP switch service - operation
Leuze electronicMA 248i43
TNT 35/7-24V
Page 46
Status displays and operational controls
For further information on the corresponding options, see chapter 4.4 "Operating modes".
8.2.5Rotary 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 deviceSwitch positionLeuze deviceSwitch position
Standard setting
Other RS 232 devices such as
KONTURflex QUATTRO
BCL 8 1 Hand scanner8
BCL 22 2
n.c.3 BPS 8A
BCL 300i, BCL 500i,
BCL 600i
BCL 90, BCL 900i5 MA 3xC
LSIS 122, LSIS 2226 Reset to factory setting F
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.
0 LSIS 4x2i, DCR 202i7
4
RFID (RFI xx,
RFM xx, RFU xx)
ODS 9, ODSL 30, ODSL 96B,
BPS 300i
9
B
Notice!
In switch position "0", a distance of >20ms must be maintained between two telegrams so
they can be distinguished from one another.
The parameters of the Leuze end devices are described in chapter 16.
44MA 248iLeuze electronic
Page 47
9Configuration
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.com in the respective Download area:
Notice!
In order to display the help texts, a PDF viewer program (not included in the delivery contents)
must also be installed. For important information on configuring and on the configurable
functions, please refer to the description of the respective device.
9.1Connecting the service interface
The RS 232 service interface is connected after opening the device cover of the MA 248i
via the 9-pin Sub-D and a cross-wired null modem cable (RxD/TXD/GND). For connection,
see chapter "Service interface (internal)" on page 37.
The service interface is activated with the help of the service switch and establishes a direct
connection to the connected device with the "DEV" (Leuze device) or "MA" (gateway)
setting.
9.2Reading out information in Service mode
After starting up in the "RUN" switch position, set the service switch of the MA to the
"MA" position.
Now start one of the following terminal programs: e.g., BCL, RF, BPS Config.
Alternatively, you can also use the Windows tool "Hyperterminal".
Start the program.
Select the correct COM port (e.g., COM1) and set the interface as follows:
Configuration
TNT 35/7-24V
Leuze electronicMA 248i45
Page 48
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.
vGeneral service information.
sEnable memory mode for the last frames.
lThe memory mode shows the last RX and TX frames for ASCII and fieldbus.
Table 9.1:Available commands
Information
VersionVersion information.
Firmware dateFirmware date.
Table 9.2:General firmware information
46MA 248iLeuze electronic
Page 49
Configuration
Selected scannerCurrently selected Leuze device (selected via switch S4).
Gateway modeTransparent or Collective mode.
Ring buffer fill levelCurrent fill level of the ring memory in Collective mode (ASCII->Fieldbus).
Received ASCII FramesNumber of received ASCII frames.
ASCII Framing Error (GW)Number of received framing errors.
Number of Received CTB'sNumber of CTB commands.
Number of Received SFB'sNumber of SFB commands.
Command-Buffer fill levelCurrent fill level of the ring memory in Command mode (fieldbus->ASCII).
Number of received transparent framesNumber of received fieldbus frames without CTB/SFB.
Number of send fieldbus framesNumber of frames sent via the fieldbus.
Number of invalid commandsNumber of invalid commands.
Number of ASCII stack send errorsNumber of frames that the ASCII memory could not send.
Number of good ASCII send framesNumber of frames that the ASCII memory sent successfully.
Table 9.3:General gateway information
NDCurrent status of ND bit.
W-AckCurrent status of W-Ack bit.
R-AckCurrent status R-Ack bit.
Data lossCurrent status of data loss bit.
Ring buffer overflowCurrent status of ring buffer overflow bit.
DEXCurrent status of DEX bit.
BLRCurrent status of BLR bit.
Table 9.4:Current states of the status and control bits
1024 bytes max.
1024 bytes max.
ASCII-Start-ByteCurrently configured start byte
ASCII-End-Byte1Currently configured stop byte 1
ASCII-End-Byte2Currently configured stop byte 2
ASCII baud rateCurrently configured baud rate
ASCII warm start statusIndicates whether the ASCII memory has detected and accepted a valid
(dependent on switch position S4).
(dependent on switch position S4).
(dependent on switch position S4).
(dependent on switch position S4).
configuration.
Table 9.5:ASCII configuration
Leuze electronicMA 248i47
TNT 35/7-24V
Page 50
Configuration
PNS substitute moduleIndicates whether the default PROFINET slave configuration was changed by the
PNS input data lengthCurrently configured PROFINET input frame length in slot 1.
PNS output data lengthCurrently configured PROFINET output frame length in slot 2.
IP addressDisplays the set IP address.
Gateway addressDisplays the set gateway address.
Network maskDisplays the set network mask.
master. "0" means that the expected configuration matches the current configuration.
Table 9.6:PNS configuration (only for MA 248i devices)
48MA 248iLeuze electronic
Page 51
10Telegram
10.1Structure 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. In this case, the DL (data loss) bit is set.
The following telegram structure is used between PLC -> fieldbus gateway:
Data byte / parameter byte 0Data
Data byte / parameter byte 1
…
This telegram structure is used between fieldbus gateway -> PLC:
76543210
NDBODLBLRDEXSMAW-ACKStatus byte 0
mode
Telegram
Control byte 0
DLC7DLC6DLC5DLC4DLC3DLC2DLC1DLC0Status byte 1
Data byte / parameter byte 0
Data byte / parameter byte 1
…
Data
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.
Further information on the broadcast control bytes and address bits 0 … 4 can be found in
chapter "Modular interfacing unit MA 3x (S4 switch position C)" on page 100.
Leuze electronicMA 248i49
TNT 35/7-24V
Page 52
Telegram
10.2Description of the input bytes (status bytes)
10.2.1 Structure and meaning of the input bytes (status bytes)
76543210
NDBODLBLRDEXSMAW-ACKStatus byte 0
DLC7DLC6DLC5DLC4DLC3DLC2DLC1DLC0Status byte 1
Data byte / parameter byte 0
Data byte / parameter byte 1
…
Data
Table 10.1:Structure of the input bytes (status bytes)
Bits of the input byte (status byte) 0
Bit no.DesignationMeaning
0W-ACKWrite-Acknowledge (write confirmation when using buffer)
2SMAService mode active(service mode activated)
3DEXData exist (data in transmit buffer)
4BLRNext block ready (new block ready)
5DLData loss
6BOBuffer overflow
7NDNew data only in Transparent mode
Bits of the input byte (status byte) 1
Bit no.DesignationMeaning
0…7DLC0… DLC7Data Length Code (length of the following user data)
Notice!
T-bit means toggle bit, i.e. this bit changes its state on each event ("0" → "1" or "1" → "0").
50MA 248iLeuze electronic
Page 53
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.
Telegram
Input dataDescriptionAddr. Data
Write-Acknowledge
(write confirmation)
Write handshake
Indicates that the data was successfully sent by the PLC to
W-ACK
the gateway.
Write-Acknowledge is indicated via this bit. The W-ACK bit
is toggled by the fieldbus gateway whenever a transmit command has been successfully executed. This applies both for
the transmission of data to the transmit buffer with the CTB
command and for sending the transmit buffer contents with
the SFB command.
0.0Bit
Value rangeDefault
type
0->1: Successfully
written
1->0: Successfully
written
0
Bit 2: Service mode active: SMA
Input dataDescriptionAddr. Data
Service mode active (SMA)
The SMA bit is set if the service switch is set to "MA" or
SMA
"DEV", i.e. if the device is in either fieldbus gateway or Leuze
device service mode. This is also indicated by a flashing PWR
LED on the front side of the device. Upon changing to the normal operating mode "RUN", the bit is reset.
0.2Bit
Value rangeDefault
type
0: Device in operating mode
1: Device in service
mode
0h
Bit 3: Data exist: DEX
This bit is only relevant for reading slave data in Collective mode relevant, see chapter 11.1.1.
Input dataDescriptionAddr. Data
Data exist
(data in transmit buffer)
DEX
Indicates that further data is stored in the transmit buffer
which is ready for transmission to the control. This flag bit is
always set to high ("1") by the fieldbus gateway as long as
data is in the buffer.
0.3Bit
Value rangeDefault
type
0: No data in the
transmit buffer
1: Further data in
the transmit buffer
0h
TNT 35/7-24V
Leuze electronicMA 248i51
Page 54
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 dataDescriptionAddr. Data
Next block ready to transmit
(new block ready)
The Block Ready toggle bit changes its state whenever the
BLR
fieldbus gateway has removed received data from the
receive buffer and registered it in the corresponding receivedata bytes. This signals to the master that the quantity of data
indicated in the DLC bits to be present in the input data bytes
originated in the data buffer and is current.
0.4Bit
Value rangeDefault
type
0->1: Data
transmitted
1->0: Data
transmitted
0
Bit 5: Data loss: DL
This bit is important for monitoring data transmission in Transparent and Collective mode.
Input dataDescriptionAddr. Data
Data loss
(Data transmission monitoring)
This bit is set until the device is reset (bit pattern see chapter
10.4 "RESET function / deleting memory") in case gateway
DL
data was not able to be sent to the PLC and was lost. Furthermore, this bit is set in case the configured data frame,
e.g. 8 bit, should be smaller than the data to be transmitted
to the PLC, e.g. bar code with 20 digits. In this case, the first
8 digits are transmitted to the PLC, the rest are truncated and
are lost. In this process, the Data loss bit is also set.
0.6Bit
Value rangeDefault
type
0->1:
Data loss
0
Bit 6: Buffer overflow: BO
Input dataDescriptionAddr. Data
Buffer overflow
(buffer overflow)
This flag bit is set to high ("1") when the buffer overflows.
BO
The bit is automatically reset when the buffer again has
memory space available. While the BO bit is set, the RTS signal of the serial interface is deactivated.
The memory size of the gateway for the data of both the PLC
and the Leuze end device is 1 kByte.
0.6Bit
Value rangeDefault
type
0->1: Buffer
overflow
1->0:
Buffer o.k.
0
52MA 248iLeuze electronic
Page 55
Bit 7: New data: ND
This bit is only relevant in Transparent mode.
Telegram
Input dataDescriptionAddr. Data
New data
ND
(new data)
This bit is toggled on each data set that is sent from the gateway to the PLC. This can be used to differentiate between
multiple, identical data sets that are sent to the PLC.
0.7Bit
Value rangeDefault
type
0->1; 1->0:
On each status
change for new data
10.2.3 Detailed description of the bits (input byte 1)
Bit 0 … 7: Data length code: DLC0 … DLC7
Input dataDescriptionAddr. Data
Data length code
DLC0 … DLC7
(number of user data in bytes)
Stored in these bits is the number of user data bytes transmitted to the PLC which follow.
1.0 …
1.7
Value rangeDefault
type
1
Bit
FF
10.3Description of the output bytes (control bytes)
10.3.1 Structure and meaning of the output bytes (control bytes)
Table 10.2:Structure of the output bytes (control bytes)
Command
(00001b) …
h
(00255b)
h
mode
0
0h (00000b)
Control byte 0
DataData byte 2
TNT 35/7-24V
Bits of the output byte (control byte) 0
Bit no.DesignationMeaning
0Command modeCommand mode
1BroadcastBroadcast
(only relevant with a connected MA 3x)
2 … 6Address 0 .. 4 Address bits 0 .. 4
(only relevant with a connected MA 3x)
7NDNew data
Leuze electronicMA 248i53
Page 56
Telegram
Bits of the output byte (control byte) 1
Bit no.DesignationMeaning
0R-ACKRead-Acknowledge
2SFBSend data from transmit buffer
3CTBCopy to transmit-buffer
10.3.2 Detailed description of the bits (output byte 0)
Bit 0: Command mode: Command mode
Output dataDescriptionAddr. Data
Command mode
This bit is used to activate Command mode. In Command
Command mode
mode, no data is sent by the PLC to the Leuze end device via
the gateway. In Command mode, various bits that execute
corresponding commands depending on the selected Leuze
device can be set in the data- or parameter field. For further
information, see chapter 11.1.3 "Command mode".
0.0Bit
Value rangeDefault
type
0: Default, transparent data transmission
1: Command mode
0
The following two control bits ("Bit 1: Broadcast: Broadcast" on page 54 and "Bits 2 … 6:
address bits 0 .. 4: address 0 .. 4" on page 54) are only relevant with a connected MA 3x.
With other devices, these fields are ignored.
Bit 1: Broadcast: Broadcast
Output dataDescriptionAddr. Data
Broadcast
Broadcast
A broadcast only functions with a multiNet network connected via the MA 3x. If this bit is activated, the gateway
automatically adds the broadcast command "00B" before
the data. This is directed at all participants in the multiNet.
0.1Bit
Value rangeDefault
type
0: No broadcast
1: Broadcast
0
Bits 2 … 6: address bits 0 .. 4: address 0 .. 4
Output dataDescriptionAddr. Data
Address bits 0 .. 4
Address 0..4
As with the broadcast command, individual devices in the
multiNet can also be addressed via the MA 3x . In this case,
the corresponding address of the device precedes the data
field telegram.
0.2
…
0.6
Value rangeDefault
type
00000: Addr. 0
00001: Addr. 1
Bit
00010: Addr. 2
00011: Addr. 3
…
0
Bit 7: New data: ND
Output dataDescriptionAddr. Data
ND
New data
This bit is needed if several identical pieces of data are to be
sent in sequence.
0.7Bit
Value rangeDefault
type
0->1; 1->0:
On each status
change for new data
0
54MA 248iLeuze electronic
Page 57
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.
Telegram
Output dataDescriptionAddr. Data
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
R-ACK
in order to be able to receive the next data set. This toggle
bit is switched by the master after valid received data has
been read out of the input bytes and the next datablock can
be requested. If the gateway detects a signal change in the
R-ACK bit, the next bytes are automatically written from the
receive buffer to the input data words and the BLR bit toggled. Further toggling erases the memory (to 00h).
1.0 Bit
Value rangeDefault
type
0->1 or
1->0: Successfully
written & ready for
the next transmission
0
Bit 2: Send data from buffer: SFB
This bit is only relevant for writing slave data in blocks (Collective mode), see chapter 11.1.2.
Output dataDescriptionAddr. Data
Send data from buffer
(send data from the gateway transmit buffer to the RS 232)
SFB
Toggle bit: changing this bit causes all data which was copied
to the transmit buffer of the fieldbus gateway via the CTB bit
to be transmitted to the RS 232 interface or the connected
Leuze device.
1.2Bit
Value rangeDefault
type
0->1: Data to
RS 232
1->0: Data to
RS 232
0
TNT 35/7-24V
Leuze electronicMA 248i55
Page 58
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 dataDescriptionAddr. Data
Copy to transmit buffer
(transmission data to transmit buffer)
Toggle bit: Changing this bit writes the data from the PLC to
CTB
the transmit buffer of the fieldbus gateway. This is used, for
example, for long command strings which must be transmitted to the connected ident device.
The CTB toggle bit is switched whenever transmit data is not
to be sent directly via the serial interface, but instead transferred to the transmit buffer.
Notice!
The state change of the CTB bit signals the MA that the data is going into the buffer; therefore,
it's essential to observe the order!
When the CTB is not used, the telegram (which fits in one cycle) is transmitted directly to
the RS 232 interface. Please make sure it is complete!
10.4RESET function / deleting memory
For many applications, it is helpful to be able to reset the MA buffer (in Collective mode) or
status bits.
The following bit pattern can be transmitted from the PLC for this purpose (if >20 ms is
pending):
Control byte 0:10101010 (AAh)
Control byte 1:10101010 (AAh)
OUT data byte 0/parameter byte 0: AAh
OUT data byte 1/parameter byte 1: AAh
1.3Bit
Value rangeDefault
type
0->1: Data in buffer
1->0: Data in buffer
0
This sets the memory or status/control bits to 00h.
Please observe that the data image may need to be updated by toggling in Collective mode.
56MA 248iLeuze electronic
Page 59
11Modes
11.1Functionality 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.
The distance between two successive telegrams (without frame) must be more than
20ms, since there is otherwise no clear separation between them.
ASCII characters are typically expected as data content; under certain circumstances,
the MA therefore detects different control characters as invalid characters in the data
range and truncates them. At 00
because unnecessary bytes are also filled with 00
• Collective mode
In Collective mode, the data of the serial end device is stored temporarily in the fieldbus
gateway by toggling the CTB bit and is not sent to the PLC in blocks until prompted
to do so by the PLC.
On the PLC, a status bit (DEX) then signals that new data is ready for retrieval. This
data is then read out from the fieldbus gateway in blocks (toggle bit).
In order to distinguish between the individual telegrams on the PLC, in Collective mode
the serial frame is sent to the PLC in addition to the data.
The size of the buffer is 1 kByte.
in the data range, the MA cuts the telegram off
h
Modes
.
h
Notice!
In Collective mode, the CTB and SFB bits are needed for communication handling via the
buffer. Telegrams that can also be completely transmitted in one cycle in Collective mode
(including data frame) go directly through. If PLC data is provided and transferred without a
state change of the CTB bit, it goes directly to the RS 232 interface with the set telegram
data length. Incomplete (incl. data frame) or faulty telegrams can cause error messages in
the connected device!
Combination with the Command mode is possible.
Data exchange in blocks must be programmed on the PLC.
Leuze electronicMA 248i57
TNT 35/7-24V
Page 60
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.
If the buffer still contains more data ("DEX bit = 1), the next remaining user data present in
the buffer is transmitted by toggling the "R-ACK" control bit. This process is to be repeated
until the "DEX" bit returns to "0"; all data has then been removed from the buffer. "R-ACK"
must be toggled here again once more as a terminating read confirmation in order to release
data transmission for the next read cycle.
Used status and control bits:
•DLC
•BLR
•DEX
•R-ACK
11.1.2 Writing slave data in Collective mode (PLC -> gateway)
Writing in blocks
The data sent by the master to the slave is first collected in a "transmit buffer" by setting
the "CTB" bit (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!
Afterward, the buffer is again empty and can be written with new data.
Notice!
With this function, it is possible to temporarily store longer data strings in the gateway
independent of how many bytes the used fieldbus can transmit at once. With this function,
longer PT sequences or RFID write sequences, for example, can be transmitted, since the
connected devices can, in this way, receive their commands (e.g., PT or W) in a continuous
string. The respective frame (STX CR LF) is needed to differentiate between the individual
telegrams.
Used status and control bits:
•CTB
•SFB
•W-ACK
If PLC data is provided and transferred without a state change of the CTB bit, it goes directly
to the RS 232 interface with the set telegram data length. Incomplete (incl. data frame) or
faulty telegrams can cause error messages in the connected device!
58MA 248iLeuze electronic
Page 61
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).
Send long online commands to the DEV, read RS 232 answer from DEV
60MA 248iLeuze electronic
Figure 11.1: Data transmission scheme with long online commands
Page 63
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).
With the Command mode, it is possible to set various device-specific bits in the data- or
parameter field that execute the corresponding serial commands (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> v <CR> <LF> frame.
The Leuze end device also answers the gateway with data (e.g. bar code content, NoRead,
device version, etc.) in response to most commands. The answer is immediately passed on
to the PLC by the gateway.
Notice!
The parameters available for the individual Leuze devices are listed in chapter 16.
Command mode cannot be used with hand-held scanners.
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.
Device executes the corresponding function (cf. chap. 16).
For function to be reestablished, the ND bit and the selected bit
in byte 2 must be toggled, byte 0.0 can stay.
No
No
Yes
Yes
Bit 0.0 =1?
Byte 2:
Bit set?
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
No detectable function
Select bit, or incorrect byte
Command mode sequence diagram
Set control byte 0, bit 0.0 to 1
Figure 11.2: Execution of command after activation of the Command mode
62MA 248iLeuze electronic
Page 65
Triggering the ident devices and reading the data
Triggering scanner
Reception of data
Has the slave
received data from
the RS 232?
BLR = ! BLR
Rescue data
e.g. data block
DLC = number of valid
binary-coded data bytes
Is there still data
in the receive buffer?
DEX = 1 set
(status bit 0.3)
Transmit the next
data with toggle bit
R-ACK = ! R-ACK
(control bit 1.0)
Confirm data retrieval
with toggle bit
R-ACK = ! R-ACK
(control bit 1.0)
No
No
Yes
Modes
Figure 11.3: Activating DEV and reading data
Notice!
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 87.
Leuze electronicMA 248i63
TNT 35/7-24V
Page 66
Commissioning and configuration
M12 connector
(A-coded)
M12 socket
(A-coded)
M12 socket
(D-coded)
M12 socket
(D-coded)
12Commissioning and configuration
12.1Measures 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.
Connecting the Leuze device
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.
Now screw the PG cable gland into the threaded opening to provide strain relief and
ensure protection class IP 65.
Finally, close the housing of the MA 248i.
Attention!
Only then may the supply voltage be applied.
Upon startup of the MA 248i, the device selection switch is queried and the gateway
automatically sets itself to the Leuze device.
PWR IN
SWIO_2
GNDVIN
321
5
4
FE
SWIO_1
VOUT
PWR OUT
SWIO_2
123
5
4
SWIO_1
LEUZE Device
GND
FE
HOST / BUS IN
RD+
TD+
123
4
RD-
TD-
TD+
Figure 12.1: Connections of the MA 248i seen from below, device on mounting plate
Check the applied voltage. It must be in the range between +18V … 30VDC.
Connecting 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.
On delivery, the SWIO 1/2 are connected in parallel on PWR IN/OUT. This connection can
be separated with a jumper.
64MA 248iLeuze electronic
BUS OUT
RD+
123
4
RD-
TD-
Page 67
Commissioning and configuration
12.2Starting the device
Apply the supply voltage +18 … 30VDC (+24VDC model); the MA 248i starts up.
12.3Configuration steps for a Siemens Simatic S7 control
The following steps are necessary for commissioning with a Siemens S7 control:
1.Preparation of the control system (S7 PLC)
2.Installation of the GSDML file
3.Hardware configuration of the S7 PLC
4.Configuration of the modules
5.Transmission of the PROFINET configuration to the controller (S7 PLC)
6.Naming the device
• Configuration of the device name
• Naming the device
• Assignment of the device names to the configured IO devices (Figure 10.3...)
• Assignment of MAC address - IP address - individual device name (Figure 10.4)
7.Check device name
Leuze electronicMA 248i65
TNT 35/7-24V
Page 68
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.2 Step 2 – Installation of the GSD file
For the subsequent configuration of the IO devices, e.g., MA 248i, the corresponding GSD
file must be loaded first.
General information on the GSD file
The term GSD stands for the textual description of a PROFINET-IO device model.
For the description of the more complex PROFINET-IO device model, the XML-based
GSDML (Generic Station Description Markup Language) was introduced.
In the following, the terms "GSD" or "GSD file" always refer to the GSDML-based format.
The GSDML file can support an arbitrary number of languages in one file. Every GSDML file
contains a version of the MA 248i device model. This is also reflected in the file name.
You can find the GSD file at www.leuze.com.
All data in modules required for operating the MA 248i is described in this file. These are
input and output data and device parameters for the functioning of the MA 248i and the definition of the control and status bits.
If parameters are changed, e.g., in the project tool, these changes are stored on the PLC
side in the project, not in the GSD file. The GSD file is a certified and integral part of the
device and must not be changed manually. The file is not changed by the system either.
The functionality of the MA 248i is defined via parameter sets. The parameters and their
functions are structured in the GSD file using module. A user-specific configuration tool is
used during PLC program creation to integrate the required modules and configure them
appropriately for their respective use. During operation of the MA 248i on the PROFINET-IO,
all parameters are set to default values. If these parameters are not changed by the user,
the device functions with the default settings delivered by Leuze electronic.
For the default settings of the MA 248i, please refer to the following module descriptions.
66MA 248iLeuze electronic
Page 69
Commissioning and configuration
12.3.3 Step 3 – Hardware configuration of the S7 PLC: Configuration
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.
A number of combinable modules are available with various data lengths (4, 8, 12, 16, 20,
32 … 1024 bytes). In total, a maximum of 1024 bytes are possible for both the input bytes
and for the output bytes.
Notice!
Because the data module contains 2 bytes for the control and status bytes, the actual user
data length is always 2 bytes smaller than the selected data module.
E.g., when using the data module with 12 bytes, there are effectively 10 bytes available for
user data on the Leuze device after subtracting the 2 bytes for status and control bytes.
Recommendation
In most cases, the 4-byte module is sufficient for the output module.
Leuze electronicMA 248i67
TNT 35/7-24V
Page 70
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.
Examples of sensible settings for corresponding Leuze devices
BPS 8 and BPS 300i
• Input module: 8 bytes
• Output module: 4 bytes
Hand-held scanner
• Input module: individual
The size of the input module is dependent on the number of digits of the bar code or
2D code that is to be read. For example, with an 12-digit bar code (+ 2 bytes of status
bytes), the input module with 16 bytes is sensible.
• Output module: none
Because the hand-held scanner does not typically send any data, no output module
is necessary.
BCL bar code scanners, RFID devices (RFM, RFI and RFU), LSIS 222 and DCR 202i
• Input module: individual
The size of the input module is dependent on the number of digits of the bar code,
RFID code or 2D code that is to be read. For example, with an 18-digit bar code
(+ 2 bytes of status bytes), the input module with 20 bytes is sensible.
• Output module: 4 bytes
12.3.5 Step 5 – Transmission of the configuration to the controller (S7 PLC)
After correct transmission to the controller (S7 PLC), the PLC automatically carries out the
following activities:
• Check device names
• Assignment of the IP addresses that were configured in the HW Config to the
IO devices
• Establishment of a connection between the controller and configured IO devices
• Cyclical data exchange
Notice!
Participants that have not been "named" cannot be contacted yet at this point in time!
68MA 248iLeuze electronic
Page 71
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)".
The PROFINET-IO also uses the "Discovery and Configuration Protocol" (DCP) for the
IP address assignment during each system boot-up if the IO device is located in the same
subnet.
Notice!
All MA 248i participants in a PROFINET-IO network must be located in the same subnet!
Naming the device
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
Figure 12.1: Assigning the device names to the configured IO devices
Leuze electronicMA 248i69
TNT 35/7-24V
Page 72
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.
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 12.2: MAC address - IP address -individual device name
From now on, and when programming, only the unique "device name" (max. 255 characters)
is used.
12.3.7 Step 7 – Check device names
After completing the configuration phase, it is sensible to recheck the "device names" that
have been assigned. Please ensure that these names are unique and that all participants
are located in the same subnet.
70MA 248iLeuze electronic
Page 73
Commissioning and configuration
12.4Commissioning 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
level. The data exchange with the devices is mainly
monitoring and alarm handling, however,
Depending on the communication requirements, PROFINET-IO offers suitable protocols
and transfer methods:
• Real Time communication (RT) via prioritized Ethernet frames for
• Cyclical process data (I/O data stored in the I/O area of the control)
• Neighborhood information
• Address assignment/address resolution via DCP
• TCP/IP communication via standard Ethernet TCP/IP frames for
• Establishing communication and
• Acyclic data exchange, and also for the transfer of various information types such
as:
- Parameters for the configuration of the modules during the establishment of the
- I&M data (Identification & Maintenance functions) (read)
- Reading diagnostic information via RS 232
- Reading I/O data
- Writing device data
communication profile is designed for efficient data exchange on the field
acyclic
communication (write)
cyclical
. For the configuration, operation,
communication services are also used.
Conformance classes
PROFINET-IO devices are categorized into conformance classes to simplify the evaluation
and selection of the devices for the users. The MA 248i can use an existing Ethernet network
infrastructure and corresponds to Conformance Class B (CC-B). Thus, it supports the
following features:
• Cyclical RT communication
• Acyclic TCP/IP communication
•Alarms/diagnostics
• Automatic address assignment
• I&M functionality 0-4
• Neighborhood detection basic functionality
In the factory settings, which can be re-set if necessary through a restart in device
switch position F, the MA 248i supports neighborhood detection.
• In the PLC, the BUS IN connection is detected as Port1 and BUS OUT as Port2.
• FAST Ethernet 100 Base-TX
• Convenient device exchange without engineering tools
• SNMP support
Leuze electronicMA 248i71
TNT 35/7-24V
Page 74
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., Simatic
Manager for the Siemens programmable logic control, the required modules are integrated
into a project during commissioning and its settings and parameters are adjusted accordingly. These modules are provided by the GSD file.
Notice!
All input and output modules described in this documentation are described from the controller's perspective:
- Input data arrives at the controller.
- Output data is sent out by the controller.
Detailed information on how to prepare the control and the GSD file may be found in chapter
"Configuration steps for a Siemens Simatic S7 control" on page 65.
For the default settings of the MA 248i, please refer to the following module descriptions.
Notice!
Please note that the set data is overwritten by the PLC!
Some controls make available a so-called "universal module". This module must not be
activated for the MA 248i!
From the perspective of the device, a distinction is made between PROFINET-IO parameters
and internal parameters. PROFINET-IO parameters are all parameters that can be changed
via the PROFINET-IO and are described in the following modules. Internal parameters, on
the other hand, can only be changed via a service interface and retain their value even
following a PROFINET-IO configuration.
During the configuration phase, the MA 248i receives parameter telegrams from the
controller (master). Before this is evaluated and the respective parameter values are set, all
PROFINET-IO parameters are reset to default values. This ensures that the parameters of
modules that are not selected are set to the default values.
72MA 248iLeuze electronic
Page 75
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.
In Simatic Manager, the permanently defined parameters are set via object properties of
the device. The module parameters are set via the module list of the selected device. By
selecting the project properties of a module, the respective parameters may be set if
required.
The following list contains the device parameters that are permanently defined in the
MA 248i (DAP Slot 0/Subslot 0) but are configurable. These parameters always exist and
are available independent of the modules.
Parameter DescriptionAddr. Data typeValue rangeDefaultUnit
Data Bits0.2Bit7, 8, 98
Parity0.3BitYes, NoneNone
Stop bit0.4Bit0.11
Use separator0.5BitYes, NoNo
Use status
and control
bits
0:0Bit
0.6BitYes, NoNo
Table 12.1:Device parameters
Parameter length: 33 byte
0:Transparent mode
1:Collective mode
0-
Input data
None
Output data
None
Leuze electronicMA 248i73
TNT 35/7-24V
Page 76
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. A device module (DAP, see
Permanently defined parameters/device parameters) is used for basic configuration of the
MA 248i and is permanently integrated into the project. Further modules may be included
into the project according to requirements and application.
The modules fall into the following categories:
• Parameter module for the configuration of the MA 248i.
• Status or control modules that influence the input/output data.
• Modules that may include both parameters and control or status information.
A PROFINET-IO module defines the existence and meaning of the input and output data.
In addition, it defines the necessary parameters. The arrangement of the data within a
module is defined.
The composition of the input/output data is defined via the module list.
The MA 248i interprets the incoming output data and triggers the appropriate reactions in
the MA 248i. The interpreter for processing the data is adapted to the module structure
during initialization.
The same applies for the input data. Using the module list and the defined module properties, the input data string is formatted and referenced to the internal data.
During cyclic operation, the input data is then passed on to the controller.
During the startup or initialization phase, the MA 248i sets the input data to an initial value
(usually 0).
Notice!
The modules can be grouped together in any order in the engineering tool. Note, however,
that many MA 248i modules contain related data. It is important to maintain the consistencyof these data.
The MA 248i offers different modules. Each of these modules may only be selected once;
otherwise, the MA 248i ignores the configuration.
The MA 248i checks its max. permissible number of modules. A maximum of 1024 bytes
can be used for both the input data and for the output data.
The specific limits of the individual modules of the MA 248i are declared in the GSD file.
The following module overview shows the characteristics of the individual modules:
74MA 248iLeuze electronic
Page 77
Commissioning and configuration
ModuleDescriptionInput dataOutput data
4 bytes inputData content with max. 2 bytes4
8 bytes inputData content with max. 6 bytes8
12 bytes inputData content with max. 10 bytes12
16 bytes inputData content with max. 14 bytes16
20 bytes inputData content with max. 18 bytes20
32 bytes inputData content with max. 30 bytes32
64 bytes inputData content with max. 62 bytes64
128 bytes inputData content with max. 126 bytes128
256 bytes inputData content with max. 254 bytes256
384 bytes inputData content with max. 382 bytes384
512 bytes inputData content with max. 510 bytes512
640 bytes inputData content with max. 638 bytes640
768 bytes inputData content with max. 766 bytes768
896 bytes inputData content with max. 894 bytes896
1024 bytes inputData content with max. 1022 bytes1024
4 bytes outputData content with max. 2 bytes4
8 bytes outputData content with max. 6 bytes8
12 bytes outputData content with max. 10 bytes12
16 bytes outputData content with max. 14 bytes16
20 bytes outputData content with max. 18 bytes20
32 bytes outputData content with max. 30 bytes32
64 bytes outputData content with max. 62 bytes64
128 bytes outputData content with max. 126 bytes128
256 bytes outputData content with max. 254 bytes256
384 bytes outputData content with max. 382 bytes384
512 bytes outputData content with max. 510 bytes512
640 bytes outputData content with max. 638 bytes640
768 bytes outputData content with max. 766 bytes768
896 bytes outputData content with max. 894 bytes896
1024 bytes outputData content with max. 1022 bytes1024
Table 12.2:Module overview
12.4.4 Preparing the control system for consistent data transmission
During programming the control system must be prepared for consistent data transmission.
This varies from control system to control system.
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.5Variable configuration of the communication data width
The communication of the MA 248i with the fieldbus system can be configured with a variable data width; the upper limit is restricted by the fieldbus. The following sizes are available
for the data frame for PROFINET-IO:
4 … 1024 bytes
Leuze electronicMA 248i75
TNT 35/7-24V
Page 78
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.6Setting the read parameters on the Leuze device
Commissioning the Leuze device
To commission a read station, you must prepare the Leuze device on the MA 248i for its
reading task. Communication with the Leuze device occurs via the service interface.
Notice!
For further information on connecting and using the service interface, see chapter 9 "Configuration".
To do this, connect the Leuze device to the MA 248i.
Depending on the Leuze device, this occurs either via a connection cable (accessory no.:
KB 031-1000) or directly on the MA 248i. The service connector and corresponding
switches can be accessed with the housing cover open.
Select the "DEV" service switch position.
Connect the service interface; call up the terminal program
Connect your PC to the service connector via the RS 232 cable.
On the PC, call up a terminal program (e.g., BCL-Config) and check whether the interface
(COM 1 or COM 2) to which you have connected the MA 248i is set to the following Leuze
standard setting: 9600 baud, 8 data bits, no parity, 1 stop bit and STX, data, CR, LF.
You can download the config. tool from www.leuze.com for BCL, RFID, etc.
76MA 248iLeuze electronic
Page 79
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. Activation of the Leuze device can now
occur via the switching input on the MA 248i, via the process data word Out bit 1 (bit 0.2)
or by transmitting a "+" command to the Leuze device (see chapter 16 "Specifications for
Leuze end devices"). For further information on the fieldbus transmission protocol, see see
chapter 10 "Telegram".
Reading out information in service mode
Set the service switch of the gateway to switch position "MA" (gateway).
Send a "v" command to call up all service information of the MA 248i.
An overview of the available commands and information can be found in chapter "Reading
out information in Service mode" on page 45.
12.6.1 Specific feature for the use of hand-held scanners
(bar code and 2D devices, combi devices with RFID)
Notice!
For a description of device configuration and the required codes, please see the corresponding documentation at www.leuze.com.
12.6.1.1 Cable-connected hand-held scanners on the MA 248i
All hand-held scanners and mobile combi devices available in the Leuze electronic product
line can be used with the corresponding connection cable.
When using the MA 248i, 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). The corresponding cable is to be selected for the respective hand-held scanner and
ordered separately. The 9-pin Sub-D cable (KB JST-HS-300, part no. 50113397) is
connected to this cable, which is connected to the MA 248i. This cable must also be ordered
separately.
In this example, triggering occurs by means of a trigger button on the hand-held scanner.
Leuze electronicMA 248i77
TNT 35/7-24V
Page 80
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. The corresponding cable
is to be selected for the respective hand-held scanner and ordered separately. The 9-pin
Sub-D cable (KB JST-HS-300, part no. 50113397) is connected to this cable, which is
connected to the MA 248i. This cable must also be ordered separately.
In this example, triggering occurs by means of a trigger button on the hand-held scanner.
The following codes for configuring the devices are necessary for these devices as well.
12.6.2 Specific features in the operation of an RFM/RFI
When using the MA 248i in connection with an RFID device, we recommend a data width
of at least 24 bytes to be able to transmit information to or from the reader in a telegram.
Shown here is a sample telegram for a write command in combination with an RFID device.
Notice!
Also note that all characters which are sent to a transponder are hex-encoded ASCII characters. Each of these (hexadecimal) characters is, in turn, to be handled as an individual ASCII
character and converted to hexadecimal format for transmission via the fieldbus.
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.1General causes of errors
ErrorPossible error causesMeasures
Data loss
(DL bit)
Data in the RS 232
instead of in the
buffer
Data telegram longer than the bus
telegram in bus cycle/memory size.
Incorrect order.
Increase in bus telegram length.
Toggle out data earlier.
Correct order:
Provide data, toggle CTB.
PWR status LED on the circuit board
Off
Green/orange,
flashing
Continuous orange
light
SF LED on the housing
Green, flashingDevice in service mode.Reset service mode with webConfig tool.
Red continuous light Network error.
BF LED on the housing
Red continuous light
Table 13.1:General causes of errors
No supply voltage connected to the device. Check supply voltage.
Hardware error.Send the device to customer service.
Device in boot mode.
Device error.
Firmware update failed.
Communication error on the PROFINET-IO:
No communication to IO Controller established ("no data exchange").
No valid firmware, send device to customer service.
Send the device to customer service.
Check interface.
Cannot be rectified by a reset.
Send the device to customer service.
Check interface.
Cannot be rectified by a reset.
Send the device to customer service.
TNT 35/7-24V
Leuze electronicMA 248i79
Page 82
Diagnostics and troubleshooting
13.2Interface errors
ErrorPossible error causesMeasures
No communication via
PROFINET-IO
BF continuous red light
LED
Sporadic errors at the
PROFINET-IO
Figure 13.1: Interface error
Notice!
Please use chapter 13 as a master copy should servicing be required.
Cross the items in the "Measures" column which you have already examined, fill out the following address field and fax the pages together with your service contract to the fax number
listed below.
Customer data (please complete)
Device type:
Company:
Contact partner / department:
Phone (direct):
Fax:
Street / No:
ZIP code/City:
Country:
Incorrect wiring.Check wiring.
Different protocol settings.Check protocol settings.
Incorrect device name set.Check device name.
Incorrect configuration.
Incorrect wiring.
Effects due to EMC.
Overall network expansion
exceeded.
Check configuration of the device in the configuration tool.
Check wiring.
In particular, check wire shielding.
Check the cable used.
Check shielding (shield covering in place up to
the clamping point).
Check grounding concept and connection to
functional earth (FE).
Avoid EMC coupling caused by power cables laid
parallel to device lines.
Check max. network expansion as a function of
the max. cable lengths.
Leuze Service fax number:
+49 7021 573 - 199
80MA 248iLeuze electronic
Page 83
14Type overview and accessories
14.1Part number code
MA 2xx i
i = Integrated fieldbus technology
Interface04 PROFIBUS DP
08 Ethernet TCP/IP
35 CANopen
38 EtherCAT
48 PROFINET RT
55 DeviceNet
58 EtherNet/IP
MA Modular interfacing unit
14.2Type overview
Type designationDescriptionDescription
MA 204iPROFIBUS gateway50112893
MA 208iEthernet TCP/IP gateway50112892
MA 235iCANopen gateway50114154
MA 238iEtherCAT gateway50114155
MA 248iPROFINET-IO RT gateway50112891
MA 255iDeviceNet gateway50114156
MA 258iEtherNet/IP gateway50114157
Table 14.1:Type overview MA 2xxi
Type overview and accessories
14.3Accessory connectors
Type designationDescriptionDescription
KD 095-5AM12 socket for voltage supply50020501
KS 095-4AM12 connector for SW IN/OUT50040155
D-ET1RJ45 connector for user-configuration50108991
KDS ET M12 / RJ 45 W - 4PConverter from M12 D-coded to RJ 45 socket50109832
S-M12A-ETEthernet connector, M12 axial. Connector, 4-pin, D-coded50112155
Table 14.2:Connectors for the MA 248i
Leuze electronicMA 248i81
TNT 35/7-24V
Page 84
Type overview and accessories
PWR IN
1
2
3
4
SWIO_2
SWIO_1
FE
5
GNDVIN
M12 socket
(A-coded)
M12 connector
(A-coded)
14.4Accessory ready-made cables for voltage supply
14.4.1 Contact assignment of PWR connection cable
PWR IN (5-pin socket, A-coded)
PinNameCore color
1VINbrown
2SWIO_2white
3GNDblue
4SWIO_1black
5FEgray
ThreadFEbare
PWR OUT (5-pin connector, A-coded)
PWR OUT
SWIO_2
2
GNDVOUT
3
FE
5
4
SWIO_1
1
PinNameCore color
1VOUTbrown
2SWIO_2white
3GNDblue
4SWIO_1black
5FEgray
ThreadFEbare
14.4.2 Specifications of the cables for voltage supply
Operating temperature range in rest state: -30°C … +70° C
in motion: 5°C … +70°C
Material sheathing: PVC
Bending radius > 50mm
82MA 248iLeuze electronic
Page 85
Type overview and accessories
Ethernet
TD+
RD+
TD
RD
SH
M12 connector
(D-coded)
Core color
Conductor class: VDE 0295, EN 60228, IEC 60228 (class 5)
WH
YE
BU
OG
14.4.3 Order codes of the cables for voltage supply
Type designationDescriptionPart no.
K-D M12A-5P-5m-PVC
K-D M12A-5P-10m-PVC
Table 14.3:PWR cables for the MA 248i
M12 socket for PWR, axial plug outlet,
open cable end, cable length 5m
M12 socket for PWR, axial plug outlet,
open cable end, cable length 10m
50104557
50104559
14.5Accessory ready-made cables for bus connection
14.5.1 General information
•Cable KB ET… for connecting to PROFINET-IO via M 12 connector
• Standard cable available in lengths from 2 … 30m
• Special cables on request
14.5.2 Contact assignment of M12 PROFINET-IO connection cable KB ET…
The MA 248i does not require any maintenance by the operator.
15.2Repairs, 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.3Disassembling, packing, disposing
Repacking
For later reuse, the device is to be packed so that it is protected.
Notice!
Electrical scrap is a special waste product! Observe the locally applicable regulations
regarding disposal of the product.
86MA 248iLeuze electronic
Page 89
Specifications for Leuze end devices
16Specifications 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. To
send the corresponding command to the RS 232 device after activating the Command
mode in byte 0 (control bit 0.0), set the corresponding bit in byte 2.
The Leuze end device also responds to most commands by sending data, such as the bar
code contents, NoRead, device version, etc., back to the gateway. The answer is not evaluated by the gateway, but is instead passed on to the PLC.
For the BPS 8, BPS 300i and hand-held scanners, a number of specific features are to be
noted.
16.1Standard setting, KONTURflex (S4 switch position 0)
This switch position can be used with almost all devices, since a data frame is transmitted
along with it if necessary. A 00h in the data range of the control is interpreted as the end of
a telegram/invalid, however.
The distance between two successive telegrams (without frame) must be more than 20ms
in this switch position, since there is otherwise no clear separation between them. If necessary, the settings have to be adjusted on the device.
Leuze measuring sensors with RS 232 interface (such as a KONTURflex Quattro RS) do not
necessarily use a telegram frame, which is why these are also operated in switch position 0.
Specifications for the serial interface
Default parameterStandard
Baud rate9600
Data mode8N1
Handshakeno
Protocolframing protocol without acknowledgment
Frame<Data>
Data Mode transparent
Notice!
The data frame is specified via the switch position.Only the data mode and the baud rate
can also be set via the GSD file.
In the factory setting, the S4 switch position is 0. Resetting the settings to these is possible
in S4 switch position F. The procedure for doing this is described in chapter 16.13.
Leuze electronicMA 248i87
TNT 35/7-24V
Page 90
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:
• Either "Autosend (fast)" or "Autosend with data in Modbus format"
• Repeat time "31.5ms"
• Autosend baud rate "38.4KB"
• 2 stop bits, no parity
88MA 248iLeuze electronic
Page 91
Specifications for Leuze end devices
16.2Bar code reader BCL 8 (S4 switch position 1)
Specifications for the serial interface
Default parameterBCL 8
Baud rate9600
Data mode8N1
Handshakeno
Protocolframing protocol without acknowledgment
Frame<STX> <Data> <CR> <LF>
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.
Control bitMeaningCorresponds to
0Version queryv
1Activation / deactivation reading gate+ / 2Reference-code 1 teach-in RT1
3Reference-code 2 teach-in RT2
4Automatic configuration of reading task activation / deactivationCA+ / CA5Switching output 1 activationOA1
6
7Switching output 1 deactivationOD1
8System standbySOS
9System activeSON
10Query reflector pollingAR?
11Output version of the boot kernel with check sum VB
12Output version of the decoder program with check sumVK
13Reset parameters to default valuesPC20
14Device restartH
Recommended settings
• Input module: dependent on the number of digits of the bar code that is to be read.
serial command
(ASCII)
TNT 35/7-24V
With an 18-digit bar code (+ 2 bytes of status bytes), for example, the input module
with 20 bytes is advisable.
• Output module: 4 bytes
Leuze electronicMA 248i89
Page 92
Specifications for Leuze end devices
16.3Bar code reader BCL 22 (S4 switch position 2)
Specifications for the serial interface
Default parameterBCL 22
Baud rate9600
Data mode8N1
Handshakeno
Protocolframing protocol without acknowledgment
Frame<STX> <Data> <CR> <LF>
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.
Control bitMeaningCorresponds to
0Version queryv
1Activation / deactivation reading gate+ / 2Reference-code 1 teach-in RT1
3Reference-code 2 teach-in RT2
4Automatic configuration of reading task activation / deactivationCA+ / CA5Switching output 1 activationOA1
6Switching output 2 activationOA2
7Switching output 1 deactivationOD1
8Switching output 2 deactivationOD2
9
10
11Output version of the boot kernel with check sum VB
12Output version of the decoder program with check sumVK
13Reset parameters to default valuesPC20
14Device restartH
15
serial command
(ASCII)
Recommended settings
• Input module: 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, the input module
with 20 bytes is advisable.
• Input module: dependent on the number of digits of the RFID code that is to be read.
For example, it is advisable to use the input module/output module setting with 24
bytes during the reading of a serial number with 16 characters (+ 2 bytes of status bytes).
• Output module: 4 bytes
If data is to be written, it is advisable to use the setting with 24 bytes or 32 bytes.The RFID
devices expect the telegrams / data in HEX format.
96MA 248iLeuze electronic
Page 99
Specifications for Leuze end devices
16.10 BPS 8 bar code positioning system (S4 switch position A)
Specifications for the serial interface
Default parameterBPS 8
Baud rate57600
Data mode8N1
Handshakeno
Protocolbinary protocol without acknowledgment
Frame<Data>
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.
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 electronicMA 248i97
Page 100
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.
BPS 300i
Specifications for the serial interface
Default parameterBPS 300i
Baud rate38400
Data mode8N1
Handshakeno
Protocolbinary protocol without acknowledgment
Frame<Data>
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.
Control bitMeaningCorresponds to
0Transmit individual position value = single shotC0F131
1Cyclically transmit position valuesC0F232
2Stop cyclical transmissionC0F333
3Laser diode onC0F434
4Laser diode offC0F535
5Transmit single speed valueC0F636
6Cyclically transmit speed valuesC0F737
7Transmit single position and speed valueC0F838
8Cyclically transmit position and speed valuesC0F939
9Transmit marker informationC0FA3A
10Not used / reserved
11Transmit diagnostic informationC0FC3C
12Activate standbyC0FD3D
13
14
15
serial command
(ASCII)
Recommended settings
• Input module: 8 bytes
• Output module: 8 bytes
98MA 248iLeuze electronic
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.