or reproduction in any form require the written consent of the manufacturer.
Product names are used without a guarantee of free usage.
Changes reflecting technical improvements may be made.
The symbols used in this operating manual are explained below.
Attention!
This symbol precedes text messages which must stri
this information results in injuries to persons or damage to the equipment.
Notice!
This symbol indicates text passages containing important info
1.2Declaration of Conformity
The MA 208i 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
General information
ctly be observed. Failure to comply with
rmation.
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.
Leuze electronicMA 208i5
TNT 35/7-24V
General information
1.3Description of functions
The MA 208i modular interfacing unit is used to connect Leuze devices directly to the
fieldbus.
This is accomplished by transmitting the data from the DEV via an RS 232 (V.24) interface
to the MA 208
on the RS 232 interface corresponds to the Leuze standard data format (9600 bd, 8N1 and
STX, data, CR, LF).
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.
i where a module converts it into the Ethernet TCP/IP format. The data format
6MA 208iLeuze electronic
1.4Definition of terms
For better understanding of the explanations provided in this document, a definition of terms
follows below:
General information
• 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.
• 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 208
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.
• Tog g le b its :
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 208
i.
0
.
i,
TNT 35/7-24V
Leuze electronicMA 208i7
Safety notices
2Safety notices
2.1General safety notices
Documentation
All entries in this technical description must strictly be observed, in particular those in the
"Safety notices" section. Keep this technical description in a safe place. It should be
available at all times.
Safety regulations
Observe the locally applicable legal regulations and the rules of the employer's liability
insurance association.
Repair
Repairs must only be carried out by the manufacturer or an authorized representative.
2.2Safety standards
The devices of the series MA 2xx
with the applicable safety standards. They correspond to the state of the art.
2.3Intended use
i were developed, manufactured and tested in accordance
Attention!
The protection of personnel and the device is guaranteed only if the device is operated in a
manner corresponding to its intended use.
Areas of application
The MA 208
or 2D code readers, hand-held scanners, RFID read-write devices, etc. directly to the
fieldbus. A detailed list can be found in "Description of functions" on page 6.
8MA 208iLeuze electronic
i modular interfacing unit is used for connecting Leuze devices such as barcode-
2.4Working safely
Attention!
Access to or changes on the device, except where expressly described in this operating
manual, is not authorized.
Safety regulations
Observe the locally applicable legal regulations and the rules of the employer's liability
insurance association.
Qualified personnel
Mounting, commissioning and maintenance of the device must only be carried out by
qualified personnel.
Electrical work must be carried out by a certified electrician.
Safety notices
Leuze electronicMA 208i9
TNT 35/7-24V
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-
M 12 connector
(A-coded)
M 12 socket
(A-coded)
M 12 socket
(D-coded)
M 12 socket
(D-coded)
3Fast commissioning / operating principle
Notice!
Below you will find a short description for the initial commissioning of the Ethernet
gateway MA 208
handbook.
3.1Mounting
The gateway mounting plate MA 208
• using four threaded holes (M 6) or
• using two M8x6 screws on the two lateral grooves.
3.2Device arrangement and selection of the mounting location
Ideally, the MA 208
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 2xx
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.
i. Detailed explanations for the listed points can be found throughout the
i can be mounted in two different ways:
i should be mounted so that it is easily accessible near the Ident device
i family feature four M 12 connectors/sockets which are coded
Figure 3.1:MA 208
i connections
Detailed information can be found in chapter 7.
10MA 208iLeuze electronic
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 208
for BCL 32) 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 208
Attention!
Only then may the supply voltage be applied.
Upon startup of the MA 208i, 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.
i and guide the corresponding device cable (see chapter 14.6, e.g., KB 031
i.
TNT 35/7-24V
3.4Starting the device
Apply the supply voltage +18 … 30 V DC (typ. +24 V DC); the MA 208
The PWR LED displays that it is ready for operation.
Leuze electronicMA 208i11
i starts up.
Fast commissioning / operating principle
3.5MA 208i on Ethernet
Setting the communication parameters
With the communication parameters, you determine how data is exchanged between
i and host system, monitor PCs etc.
MA 208
The communication parameters are independent of the topology in which the MA 208i is
operated (see "Ethernet" on page 18).
On delivery from firmware 1.1.0.0, automatic address assignment is deactivated via DHCP
and a permanent IP address is set:
Device address: 192.168.61.100.
Net mask: 255.255.255.0
The setting can be adapted via Leuze configuration software BCL-Config, BPS-Config or
RF-Config. In these tools, the MA 208
parameters in the usual way via the service interface.
3.5.1Manually setting the IP address
If the IP address of the devices should be permanently set on your system, proceed as
follows:
Have the network administrator specify the data for IP address, net mask and gateway
address of the MA 208
Select the connected device via the device selection switch.
Apply the supply voltage +18 … 30 V DC (typ. +24 V DC); the MA 208
Now switch the service switch to "MA".
i.
i has been created as a device to enable setting of
i starts up.
Notice!
The service switch must be in switch position "MA" here so that the MA 208
addressed via the service interface.
Connect the serial RS 232 Sub-D interface of the MA 208i to the serial interface of your
PC.
Make the necessary settings in the configuration window.
12MA 208iLeuze electronic
i can be
Fast commissioning / operating principle
Figure 3.2:Setting the parameters manually
3.5.2Ethernet host communication
The Ethernet host communication enables the configuration of connections to an external
host system. Both UDP as well as TCP/IP (in either client or server mode) can be used. The
connection-free UDP protocol is used primarily to transfer process data to the host (monitor
operation). The connection-oriented TCP/IP protocol can also be used to transfer
commands from the host to the device. With this connection, the data is backed up by the
TCP/IP protocol itself.
If you would like to use the TCP/IP protocol, you must also define whether the MA 208
to operate as a TCP client or as a TCP server.
Contact your network administrator to determine which communication protocol is used.
Leuze electronicMA 208i13
i is
TNT 35/7-24V
Fast commissioning / operating principle
3.5.3TCP/IP
Set the TCP/IP mode of the MA 208
In TCP client mode, the MA 208
system (PC / PLC as server). The MA 208
(host system) and the port number on which the server (host system) accepts a connection.
In this case, the MA 208
With a MA 208
In TCP server mode, the primary host system (PC / PLC) actively establishes the connection and the connected MA 208
requires information from the user regarding the local port of the MA 208
which the connection requests of a client application (host system) are to be accepted. If
there is a connection request and a connection is established by the primary host system
(PC / PLC as client), the MA 208
sent and received.
With a MA 208
The corresponding adjustment options can be found in the configuration tool.
3.5.4UDP
The MA 208
cation partner. Correspondingly, the host system (PC / PLC) now also requires the set
IP address of the MA 208
a socket is formed via which the data can be sent and received.
Set the following values:
The corresponding adjustment options can be found in the configuration tool.
i determines when and with whom a connection is established!
i as TCP client, set the following values:
• IP address of the TCP server (normally the PLC/host computer)
• Port number of the TCP server
• Optional: Timeout for the wait time for an answer from the server
• Optional: Repetition time for renewed communication attempt following a timeout
i as TCP server, also set the following values:
• Port number for the communication of the MA 208
i requires from the user the IP address and the port number of the communi-
i and the selected port number. By assigning these parameters,
• IP address of the communication partner
• Port number of the communication partner
i.
i actively establishes the connection to the primary host
i requires from the user the IP address of the server
i waits for the connection to be set up. The TCP/IP stack
i (server mode) accepts the connection. Data can then be
i (port number) on
i with the TCP client
14MA 208iLeuze electronic
4Device description
4.1General Information to the connector units
The modular interfacing unit of the MA 2xx
RS 232 devices (e.g., BCL 22 bar code readers, RFID devices, RFM 32, AMS 200) in the
respective fieldbus. The MA 2xx
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.
i gateways are intended for use in industrial environments
4.2Characteristics of the connector units
A special characteristic of the MA 208
1.Transparent mode
In this function mode, the MA 208
munication 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.
i family is a versatile gateway for integrating Leuze
i device family are three function modes:
i functions as a pure gateway with automatic com-
Device description
Notice!
The Collective mode is not available for the MA 208
length, data can always be transmitted in its entirety independent of its length. It is not
necessary to transfer data in blocks.
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".
Leuze electronicMA 208i15
i. Due to a variable telegram
TNT 35/7-24V
Device description
Fieldbus
Fieldbus
MA 208
i
Leuze
device
Either
network or other devices
with RS 232
RS 232
(V.24)
4.3Device construction
The MA 208i 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 208
converts it into the fieldbus format. The data format of the RS 232 interface corresponds to
the standard Leuze data format.
i where a module
Figure 4.1:Connection of a Leuze device (BCL, RFI, RFM, VR) to the fieldbus
The cable of the respective Leuze device is guided through cable bushings with PG cable
glands into the MA 208
The MA 208i is intended as a gateway for any RS 232 devices, e.g., BCL 90 with MA 90,
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.
i and connected there with the PCB connectors.
16MA 208iLeuze electronic
4.4Operating modes
For fast commissioning, the MA 208i offers an additional operating mode, the "Service
mode", in addition to the "Standard mode". 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 ’v’ command.
Device description
Figure 4.2:Service-switch switch positions
Notice!
If the service switch is on one of the service settings, the PWR LED flashes on the front side
of the device, see chapter 8.1.2 "LED indicators on the housing".
Furthermore, on the control, the SMA service bit of the status bytes signals that the MA is
in service mode.
Leuze electronicMA 208i17
TNT 35/7-24V
Device description
5 GND
3 TxD
2 RxD
GND 5
TxD 3
RxD 2
1
1
PC/terminal
COM interface
MA 208i
Service interface
Service interface
The service interface can be accessed once the MA 208
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 9600 bd, 8N1 and STX, data, CR, LF.
4.5Fieldbus systems
Various product variants of the MA 2xx
fieldbus systems such as PROFIBUS DP, PROFINET-IO, DeviceNet and Ethernet.
i housing cover has been removed
i series are available for connecting to different
4.5.1Ethernet
The MA 208
rate of 10/100 Mbit. A fixed MAC ID is assigned to each MA 208
ID cannot be changed.
The MA 208
100 Mbit/s (10Base TX), as well as auto-negotiation and auto-crossover.
The MA 208
supply voltage, the interface and the switching inputs and outputs. Additional information
on the electrical connection can be found in chapter 7.
The MA 208
• TCP / IP (client / server)
•UDP
•DHCP
•ARP
•PING
18MA 208iLeuze electronic
i is designed as an Ethernet device (acc. to IEEE 802.3) with a standard baud
i by the manufacturer; this
i automatically supports the transmission rates of 10 Mbit/s (10Base T) and
i features multiple M 12 connectors / sockets for the electrical connection of the
i supports the following protocols and services:
Device description
MA 208i
192.168.60.xxx
PC / PLC host interface
Other network participants
PC / PLC host interface
MA 208
i
"192.168.60.xxx"
To other network participants
MA 208i
"192.168.60.yyy"
MA 208
i
"192.168.60.zzz"
For communication with the superior host system, the corresponding TCP/IP protocol
(client/server mode) or UDP must be selected.
Further information on commissioning can be found in chapter 12.
Ethernet – star topology
The MA 208
with individual IP address.
The IP address is either set permanently via the RS 232 interface or assigned dynamically
via a DHCP server.
Figure 4.4:Ethernet with star topology
Ethernet – linear topology
The innovative further development of the MA 208
the option of connecting multiple gateways of type MA 208
connection to a switch. In addition to the classic "star topology", a "linear topology" is thus
also possible.
i can be operated as a single device (standalone) in an Ethernet star topology
i with integrated switch functionality offers
i to one another without direct
Leuze electronicMA 208i19
Figure 4.5:Ethernet with linear topology
Each participant in this network requires its own unique IP address, which must be assigned
to it via the RS 232 interface. Alternatively, the DHCP procedure can be used.
The maximum length of a segment (connection from the hub to the last participant) is limited
to 100 m.
TNT 35/7-24V
Specifications
5Specifications
5.1General specifications
Electrical data
Interface type 1Ethernet TCP/IP, integrated switch,
Protocols Ethernet TCP/IP communication (client/server)
Baud rate 10/100 MBd
Interface type 2RS 232
Baud rate 300 bit/s … 115200 bit/s, default: 9600
Service interface RS 232, 9-pin Sub-D connector, Leuze standard
Data format data bit: 8, parity: None, stop bit: 1
Operating voltage18 … 30 V DC
Power consumption
Max stress on the connector
(PWR IN/OUT)
Indicators
LED LINK0 green connection possible
yellow RX/TX0 data transmission
LED LINK1 green connection possible
yellow RX/TX1 data transmission
COM LED green bus state ok
red bus error
PWR LED green power
red collection error
Mechanical data
Protection classIP 65 (with screwed-on M12 and connected Leuze device)
Weight700 g
Dimensions (H x W x D)130 x 90 x 41 mm / with plate: 180 x 108 x 41 mm
Housingdiecast aluminum
Connection2 x M 12: BUS IN / BUS OUT Ethernet TCP/IP
BUS: 2x M12 socket (D-coded)
PWR/IO: 1x M 12 connector (A-coded), 1x M 12 socket
(A-coded)
UDP
DHCP
ARP
PING
device-dependent voltage
max. 5VA (without DEV, current consumption max. 300 mA)
3 A
1 connector: RS 232
1 x M12: Power IN/GND and switching input/output
1 x M12: Power OUT/GND and switching input/output
20MA 208iLeuze electronic
Environmental data
Operating temperature range0 °C … +55 °C
Storage temperature range-20 °C … +60 °C
Air humiditymax. 90% rel. humidity, non-condensing
VibrationIEC 60068-2-6, test FC
ShockIEC 60068-2-27, test Ea
Electromagnetic compatibilityEN 61000-6-3:2007 (interference emissions for residen-
5.2Dimensioned drawings
Specifications
tial, commercial and light-industrial environments)
EN 61000-6-2:2005 (interference rejection for industrial
sectors)
LINK0
COM
LINK1
PWR
Figure 5.1:MA 208i dimensioned drawing
Leuze electronicMA 208i21
TNT 35/7-24V
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 204
Ethernet TCP/IPMA 208
PROFINET-IO RTMA 248i50112891
DeviceNet MA 255
CANopen MA 235
EtherCAT MA 238
EtherNet/IP MA 258
Table 5.1:Type overview MA 2xx
i50112893
i50112892
i50114156
i50114154
i50114155
i50114157
i
22MA 208iLeuze electronic
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 2xx
information, please refer to the package insert or chapter 14.2.
Name plate of the connector unit
Installation and mounting
i type your device is. For specific
Figure 6.1:MA 208i device name plate
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 208i23
TNT 35/7-24V
Installation and mounting
Fastening
options
6.2Mounting
The gateway mounting plate MA 208i can be mounted in two different ways:
• using four threaded holes (M 6) or
•using two M 8 screws on the two lateral grooves.
Fastening by means of four M 6 or two M 8 screws
Figure 6.2:Fastening options
24MA 208iLeuze electronic
6.3Device arrangement
Ideally, the MA 208i 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 208
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 208
parts.
6.4Cleaning
Clean the housing of the MA 208i 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
i and the host system depending
i by mechanical collision or jammed
Leuze electronicMA 208i25
TNT 35/7-24V
Electrical connection
7Electrical connection
The fieldbus gateways MA 2xxi are connected using variously coded M 12 connectors.
An RS 232 device interface allows the respective devices to be connected with system
connectors. The device cables are equipped with a prefabricated PG cable gland.
Coding varies and the design is implemented as either socket or connector depending on
the HOST (fieldbus) interface and function. For the exact design, refer to the corresponding
description of the MA 2xx
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.
i device type.
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!
26MA 208iLeuze electronic
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-
M 12 connector
(A-coded)
M 12 socket
(A-coded)
M 12 socket
(D-coded)
M 12 socket
(D-coded)
PWR IN
SWIO_1
SWIO_2
3
2
1
4
5
GNDVIN
FE
M 12 connector
(A-coded)
The MA 208i features two M 12 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 M 12 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.
Electrical connection
7.2.1PWR IN – voltage supply / switching input/output
Leuze electronicMA 208i27
Figure 7.2:MA 208
i 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
PWR IN (5-pin connector, A-coded)
PinNameRemark
1VINPositive supply voltage +18 … +30 V DC
2SWIO_2Switching input/switching output 2
3GNDNegative supply voltage 0 V DC
4SWIO_1Switching input/switching output 1
5FEFunctional earth
ThreadFEFunctional earth (housing)
Table 7.1:PWR IN pin assignment
TNT 35/7-24V
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).
IO 1 / SWIO 3
configurable
IO 2 / SWIO 4
(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 208
located on the PWR IN M 12 connector and on the PWR OUT M 12 connector. The connection of the switching inputs/outputs from PWR IN to PWR OUT can be interrupted by means
of a jumper. In this case, only the switching input and output on PWR IN are active.
The function of the switching inputs and outputs is dependent on the connected Leuze
device. Detailed information on this topic can be found in the respective operating instructions.
28MA 208iLeuze electronic
i is equipped with the SWIO_1 and SWIO_2 switching inputs/outputs. This is
7.2.2PWR OUT switching input/output
PWR OUT
VOUT
1
2
3
4
SWIO_2
SWIO_1
GND
FE
5
M 12 socket
(A-coded)
HOST / BUS IN
TD+
1
2
3
4
RD+
RD-
TD-
M 12 socket
(D-coded)
PWR OUT (5-pin socket, A-coded)
PinNameRemark
1VOUT
2SWIO_2Switching input/switching output 2
3GNDGND
4SWIO_1Switching input/switching output 1
5FEFunctional earth
ThreadFEFunctional earth (housing)
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.
Electrical connection
Voltage supply for additional devices
(VOUT identical to VIN at PWR IN)
7.3BUS IN
Leuze electronicMA 208i29
The MA 208
i makes an Ethernet interface available as host interface.
Table 7.3:Pin assignment HOST / BUS IN
For the host connection of the MA 208
are preferred, see table 14.4 Bus connection cable for the MA 208ion page 64.
BUS IN (4-pin socket, D-coded)
PinNameRemark
1TD+Transmit Data +
2RD+Receive Data +
3TD-Transmit Data -
4RD-Receive Data -
ThreadFEFunctional earth (housing)
i, the "KB ET - … - SA-RJ45" ready-made cables
TNT 35/7-24V
Electrical connection
Twisted pair
Twisted pair
BUS OUT
TD+
1
2
3
4
RD+
RD-
TD-
M 12 socket
(D-coded)
Ethernet TCP/IP cable assignments
MA 208 HOST / BUS IN
RD+
TD+
1
RD-
Figure 7.3:HOST/BUS IN cable assignments on RJ-45 (shown here is the device connection)
Notice for connecting the Ethernet TCP/IP 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.
7.4BUS OUT
To set up an Ethernet network with other participants with linear topology, the MA 208
makes available another Ethernet interface. The use of this interface drastically reduces the
cabling requirements, as only the first MA 208
via which it can communicate with the host. All other MA 208
the first MA 208
2
TD-
3
4
i,(see figure 4.5 on page 19).
BUS OUT (4-pin socket, D-coded)
RJ 45
TD+ (1)
TD- (2)
RD+ (3)
RD- (6)
i requires a direct connection to the switch,
i are connected in series to
PinNameRemark
1TD+Tra ns mi t Data +
2RD+Receive Data +
3TD-Transmit Dat a -
4RD-Receive Data -
1
8
i
ThreadFEFunctional earth (housing)
Table 7.4:Pin assignment HOST/BUS OUT
For the host connection of the MA 208
i, the "KB ET - … - SSA" ready-made cables are
preferred, see table 14.4 Bus connection cable for the MA 208ion page 64.
If you use user-configurable cables, note the following:
30MA 208iLeuze electronic
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 208
termination on the BUS OUT socket is not mandatory!
i as standalone device or as the last participant in a linear topology,
7.5Device interfaces
Electrical connection
Figure 7.4:Open the MA 208
i
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 as well as BCL 32, VR with KB 031.
Figure 7.5:RS 232 device interface
Leuze electronicMA 208i31
TNT 35/7-24V
Electrical connection
5 GND
3 TxD
2 RxD
GND 5
TxD 3
RxD 2
1
1
PC/terminal
COM interface
MA 208i
Service 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 5 V 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 61), the system
connection can be established on M 12 or 9-pin Sub-D, e.g., for hand-held scanners.
7.5.2Service interface (internal)
Figure 7.6:RS 232 service switch and service interface
Following activation, this interface enables access via the RS 232 to the connected Leuze
device and the MA for configuration using the 9-pin Sub-D. The connection between the
fieldbus interface and the device interface is switched off during access. The fieldbus itself
is, however, not interrupted as a result.
The service interface can be accessed once the MA 208
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.
i housing cover has been removed
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).
32MA 208iLeuze electronic
7.6Ethernet wiring
A Cat. 5 Ethernet cable should be used for wiring.
For the connection technology transition from M 12 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 208
table 14.4 Bus connection cable for the MA 208ion page 64.
The individual MA 208
"KB ET - … - SSA" cable, see "Bus connection cable for the MA 208i" on page 64.
For unavailable cable lengths, you can configure your cables yourself. When doing so, make
certain that you connect TD+ on the M 12 connector with RD+ on the RJ-45 connector and
TD- on the M 12 connector with RD- on the RJ-45 connector, respectively, etc.
Notice!
Use the recommended connectors / sockets or the ready-made cab les (see chapter 14 "Type
overview and accessories").
For further information on the topologies, see chapter 4.5.1 "Ethernet".
i devices in a linear topology are connected with the
7.7Cable lengths and shielding
Observe the following maximum cable lengths and shielding types:
ConnectionInterfaceMax. cable lengthShielding
Electrical connection
i, see
i– – ServiceRS 23210 mnot necessary
MA 208
MA 208i – HostEthernet100 mabsolutely required, shielded
Network from the first
MA 208
i to the last
MA 208
i
MA 208
i – Power
supply unit
Switching input10 mnot necessary
Switching output10 mnot necessary
Table 7.5:Cable lengths and shielding
Leuze electronicMA 208i33
Ethernet
the maximum segment length
must not exceed 100 m for
100Base-TX Twisted Pair
(min. Cat. 5)
30 mnot necessary
absolutely required, shielded
TNT 35/7-24V
Status displays and operational controls
8Status displays and operational controls
Figure 8.1:LED indicators on the MA 208i
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
34MA 208iLeuze electronic
8.1.2LED indicators on the housing
COM
PWR
PWR
Link 1
RX/TX 1
COM LED
Status displays and operational controls
COM
continuous green lightBus operation ok
continuous red lightConfiguration error
PWR LED
offDevice OFF
continuous green lightDevice ok
PWR
PWR
flashing greenDevice ok, device in service mode
flashing redConfiguration error
LINK 0/RX/TX 0 LED
Link 0
RX/TX 0
continuous green light LINK0
-network mode ok
- connection and communication to the
host established
-network error
- no connection established
- no communication possible
- no operating voltage or device error
for details, see chapter 15 "Diagnostics
and troubleshooting"
- self test successfully finished
-ready
- baud rate or address incorrect
TNT 35/7-24V
- connection exists
Link 0
RX/TX 0
flashing yellow RX/TX0
- data exchange
LINK 1/RX/TX 1 LED
continuous green light LINK1
- connection exists
Link 1
RX/TX 1
flashing yellow RX/TX1
- data exchange
Leuze electronicMA 208i35
Status displays and operational controls
CB
A
D
E
G
F
= Standard settings
A MA 208i: not equipped
B Rotary switch S4 for device selection
C Service switch
D RS 232
Sub-D service interface
EJumper for bridging, separating switching input/output PWR IN/OUT
F3 JST plug connectors: connection of the Leuze devices
G MA 208
i: without function/not equipped
8.2Internal interfaces and operational controls
8.2.1Overview of operational controls of the
The operational controls of the MA 208
the MA 208
i with opened housing cover.
i are described in the following. The figure shows
Figure 8.2:Front view: operational controls of the MA 208
i
36MA 208iLeuze electronic
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
M 12 connector for operating voltage (18 … 30 V DC) MA 208
Leuze device xx
PWR OUT
M 12 connector for other devices (MA, BCL, sensor, …)
VOUT = VIN max. 3 A
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 5 V / 1 A (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 208
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)
i and connected
i.
TNT 35/7-24V
Leuze electronicMA 208i37
Status displays and operational controls
8.2.2Connector X30 … connectors
PCB connectors X30 … X32 are available in the MA 208
Leuze devices via RS 232.
Figure 8.3:Connections for Leuze devices
Attention!
Several Leuze devices may not be connected to the MA 208
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 208
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
5GNDFunctional earth
i for connecting the respective
i simultaneously, as only one
i
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
For further information on the corresponding options, see chapter 4.4 "Operating modes".
38MA 208iLeuze electronic
Status displays and operational controls
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
BCL 32 3 BPS 8A
BCL 300i, BCL 500i 4
BCL 90 5 MA 3xC
LSIS 122 6 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.
Notice!
In switch position "0", a distance of >20 ms must be maintained between two telegrams so
they can be distinguished from one another.
0 LSIS 4x2i7
RFID (RFI xx,
RFM xx, RFU xx)
AMS,
ODS 9, ODSL 30, ODSL 96B
9
B
TNT 35/7-24V
The parameters of the Leuze end devices are described in chapter 16.
Leuze electronicMA 208i39
Configuration
9Configuration
The connected device is normally configured via the service interface of the gateway with
the help of a suitable configuration program. In these tools, the MA 208
as a device to enable setting of gateway parameters as well in the usual way via the service
interface.
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 in the Download area:
www.leuze.com \ download \ identify
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 208
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 32.
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.
i has been created
i
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:
40MA 208iLeuze electronic
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 208
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
Leuze electronicMA 208i41
i by sending the following commands.
TNT 35/7-24V
Configuration
Information
VersionVersion information.
Firmware dateFirmware date.
Table 9.2:General firmware information
Selected scannerCurrently selected Leuze device (selected via switch S4).
Gateway modeTransparent or Collective mode.
State and Control Bytes UsedDisplays whether the status and control bytes can be used.
Separator LengthDisplay of the separator length.
Separator (hex)Display of the set separator.
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 send serial framesNumber of serial frames sent without CTB/SFB.
Number of send fieldbus framesNumber of frames sent via the fieldbus.
Number of invalid commandsNumber of invalid commands.
Number of serial stack send errorsNumber of frames that the serial memory could not send.
Number of good serial send framesNumber of frames that the serial memory sent successfully.
Table 9.3:General gateway information
1024 bytes max.
1024 bytes max.
NDCurrent status of ND bit.
Data lossCurrent status of data loss bit.
Table 9.4:Current states of the status and control bits
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
42MA 208iLeuze electronic
Configuration
Lost packets while TCPIP in progressLost packets.
DHCPDHCP.
IP addressDisplays the set IP address.
Gateway addressDisplays the set gateway address.
Network maskDisplays the set network mask.
TCP-UDP modeDisplays the configured mode: TCP client, TCP server or UDP.
Remote IP addressDisplays the IP address of the communication partner.
Local portDisplays the local port address.
Remote portDisplays the port address of the communication partner.
Table 9.6:MA 208i communication parameters
Leuze electronicMA 208i43
TNT 35/7-24V
Telegram
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:
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 81.
44MA 208iLeuze electronic
10.2Description of the input bytes (status bytes)
10.2.1 Structure and meaning of the input bytes (status bytes)
Table 10.1:Structure of the input bytes (status bytes)
Bits of the input byte (status byte) 0
Bit no.DesignationMeaning
2SMAService mode active(service mode activated)
5DLData loss
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").
TNT 35/7-24V
Leuze electronicMA 208i45
Telegram
10.2.2 Detailed description of the bits (input byte 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 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 if gateway data could not be sent to the PLC
DL
and were 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 7: New data: ND
This bit is only relevant in Transparent mode.
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
0
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
1h (00001b) …
Bit
FFh (00255b)
0h (00000b)
46MA 208iLeuze electronic
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)
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
DataData byte 2
TNT 35/7-24V
Leuze electronicMA 208i47
Telegram
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.2 "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 48 and "Bits 2 … 6:
address bits 0 .. 4: address 0 .. 4" on page 48) 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
48MA 208iLeuze electronic
11Modes
11.1Functionality of the data exchange
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 20 ms,
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
bytes are also filled with 00h .
11.1.1 Writing slave data in Collective mode (PLC -> gateway)
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).
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
Set control byte 0, bit 0.0 to 1
Modes
Figure 11.1: Execution of command after activation of the Command mode
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 67.
Leuze electronicMA 208i51
TNT 35/7-24V
Commissioning and configuration
M 12 connector
(A-coded)
M 12 socket
(A-coded)
M 12 socket
(D-coded)
M 12 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 208
i.
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 208
for BCL 32) 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 208
Attention!
Only then may the supply voltage be applied.
Upon startup of the MA 208i, the device selection switch is queried and the gateway
automatically sets itself to the Leuze device.
i and guide the corresponding device cable (e.g., KB 031
i.
PWR IN
SWIO_2
GNDVIN
321
5
4
FE
SWIO_1
VOUT
PWR OUT
SWIO_2
123
5
4
SWIO_1
GND
FE
Figure 12.1: Connections of the MA 208
LEUZE Device
i seen from below, device on mounting plate
HOST / BUS IN
RD+
TD+
123
4
RD-
TD-
TD+
Check the applied voltage. It must be in the range between +18V … 30 V DC.
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.
52MA 208iLeuze electronic
BUS OUT
RD+
123
4
RD-
TD-
Commissioning and configuration
12.2Starting the device and setting the communication parameters
First, you must start the device and set the communication parameters of the MA 208i. With
the communication parameters, you determine how data is exchanged between MA 208
and host system, monitor PCs etc.
The communication parameters are independent of the topology in which the MA 208i is
operated (see "Ethernet" on page 18).
On delivery, the MA 208
Notice!
The default address of the MA is 192.168.61.100.
The setting can be adapted via Leuze configuration software BCL-Config, BPS-Config or
RF-Config. In these tools, the MA 208
parameters in the usual way via the service interface.
12.2.1 Manually setting the IP address
If the IP address of the devices should be permanently set on your system, proceed as
follows:
Have the network administrator specify the data for IP address, net mask and gateway
address of the MA 208
Select the connected device via the device selection switch.
Apply the supply voltage +18 … 30 V DC (typ. +24 V DC); the MA 208
Now switch the service switch to "MA".
i is assigned a permanent IP address.
i has been created as a device to enable setting of
i.
i starts up.
i
Notice!
The service switch must be in switch position "MA" here so that the MA 208
addressed via the service interface.
Connect the serial RS 232 Sub-D interface of the MA 208
PC.
Make the necessary settings in the configuration window.
Leuze electronicMA 208i53
i to the serial interface of your
i can be
TNT 35/7-24V
Commissioning and configuration
Figure 12.2: Setting the parameters manually
12.2.2 Ethernet host communication
The Ethernet host communication enables the configuration of connections to an external
host system. Both UDP as well as TCP/IP (in either client or server mode) can be used. The
connection-free UDP protocol is used primarily to transfer process data to the host (monitor
operation). The connection-oriented TCP/IP protocol can also be used to transfer
commands from the host to the device. With this connection, the data is backed up by the
TCP/IP protocol itself.
If you would like to use the TCP/IP protocol, you must also define whether the MA 208
to operate as a TCP client or as a TCP server.
Contact your network administrator to determine which communication protocol is used.
54MA 208iLeuze electronic
i is
12.2.3 TCP/IP
Set the TCP/IP mode of the MA 208
In TCP client mode, the MA 208
system (PC / PLC as server). The MA 208
(host system) and the port number on which the server (host system) accepts a connection.
In this case, the MA 208
With a MA 208
• IP address of the TCP server (normally the PLC/host computer)
• Port number of the TCP server
• Optional: Timeout for the wait time for an answer from the server
• Optional: Repetition time for renewed communication attempt following a timeout
In TCP server mode, the primary host system (PC / PLC) actively establishes the connection and the connected MA 208
requires information from the user regarding the local port of the MA 208
which the connection requests of a client application (host system) are to be accepted. If
there is a connection request and a connection is established by the primary host system
(PC / PLC as client), the MA 208
sent and received.
With a MA 208
• Port number for the communication of the MA 208
The corresponding adjustment options can be found in the configuration tool.
12.2.4 UDP
The MA 208
cation partner. Correspondingly, the host system (PC / PLC) now also requires the set IP
address of the MA 208
socket is formed via which the data can be sent and received.
Set the following values:
• IP address of the communication partner
• Port number of the communication partner
The corresponding adjustment options can be found in the configuration tool.
Commissioning and configuration
i.
i actively establishes the connection to the primary host
i requires from the user the IP address of the server
i determines when and with whom a connection is established!
i as TCP client, set the following values:
i waits for the connection to be set up. The TCP/IP stack
i (port number) on
i (server mode) accepts the connection. Data can then be
i as TCP server, also set the following values:
i with the TCP client
i requires from the user the IP address and the port number of the communi-
i and the selected port number. By assigning these parameters, a
TNT 35/7-24V
12.3Setting 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 208
reading task. Communication with the Leuze device occurs via the service interface.
Leuze electronicMA 208i55
i for its
Commissioning and configuration
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 208i.
Depending on the Leuze device, this occurs either via a connection cable (accessory no.:
KB 031-1000) or directly on the MA 208
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 208
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 -> Download -> Identify for BCL,
RFID, VR etc.
In order to communicate with the connected Leuze device, the STX, data, CR, LF framing
must be set on the PC terminal program, as the Leuze device is preconfigured ex works for
this frame character.
STX (02h):Prefix 1
CR (0Dh):Postfix 1
LF (0Ah):Postfix 2
i. The service connector and corresponding
i is set to the following Leuze
Operation
Switch the MA 208
The Leuze device is now connected to the fieldbus. Activation of the Leuze device can now
occur via the switching input on the MA 208
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
chapter 10 "Telegram".
i to switch position "RUN" (operation).
i, via the process data word Out bit 1 (bit 0.2)
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 208
An overview of the available commands and information can be found in chapter "Reading
out information in Service mode" on page 40.
56MA 208iLeuze electronic
i.
Commissioning and configuration
12.3.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 -> Download -> identify -> Bar code
hand-held readers or 2D code hand-held readers.
12.3.1.1 Cable-connected hand-held scanners on the MA 208
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 208
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 208
separately.
In this example, triggering occurs by means of a trigger button on the hand-held scanner.
12.3.1.2 Wireless hand-held scanners on the MA 208
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 230 VAC connection (socket) is usually necessary for the charging station. Here, a data
connection of the charging station is established with the MA 208
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 208
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.
i, the voltage supply of the hand-held scanner (5 V/at 1 A) can be
i. This cable must also be ordered
i
i. This cable must also be ordered separately.
i
i. The corresponding cable
TNT 35/7-24V
Leuze electronicMA 208i57
Commissioning and configuration
12.3.2 Specific features in the operation of an RFM/RFI
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 208i 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 telegram longer than the bus
telegram in bus cycle/memory size.
Increase in bus telegram length.
Toggle out data earlier.
PWR status LED on the circuit board
Off
Green/orange,
flashing
Continuous orange
light
COM LED on the housing (see figure 8.1 on page 34)
Red continuous light Configuration error.Check interface.
PWR LED on the housing (see figure 8.1 on page 34)
OffNo supply voltage connected to the device. Check supply voltage.
Green, flashingSERVICE active.Service switch on RUN.
Red, flashingIncorrect baud rate / address.
Red continuous light Device error.Send the device to customer service.
LINK /RX/TX LEDs on the housing (see figure 8.1 on page 34)
OffNo connection.Check wiring/IP address.
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.
No valid firmware, send device to
customer service.
Send the device to customer service.
Check switch settings.
Check baud rate or address.
TNT 35/7-24V
Leuze electronicMA 208i59
Diagnostics and troubleshooting
13.2Interface errors
ErrorPossible error causesMeasures
No communication via
Ethernet interface
COM continuous red
light LED
Sporadic errors at the
Ethernet interface
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.
Protocol not released.Activate TCP/ IP or UDP.
Incorrect wiring.
Effects due to EMC.
Overall network expansion
exceeded.
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
60MA 208iLeuze electronic
14Type overview and accessories
14.1Part number code
MA
2xx i
i = Integrated fieldbus technology
08 Ethernet TCP/IP
35 CANopen
38 EtherCAT
48 PROFINET RT
55 DeviceNet
58 EtherNet/IP
MA Modular interfacing unit
KD 095-5AM 12 socket for voltage supply50020501
KS 095-4AM 12 connector for SW IN/OUT50040155
D-ET1RJ45 connector for user-configuration50108991
KDS ET M12 / RJ 45 W - 4PConverter from M 12 D-coded to RJ 45 socket50109832
Table 14.2:Connectors for the MA 208
Leuze electronicMA 208i61
i
TNT 35/7-24V
Type overview and accessories
PWR IN
1
2
3
4
SWIO_2
SWIO_1
FE
5
GNDVIN
M 12 socket
(A-coded)
M 12 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)
PinNameCore color
1VOUTbrown
2SWIO_2white
3GNDblue
4SWIO_1black
5FEgray
ThreadFEbare
GND
FE
PWR OUT
SWIO_2
2
3
5
4
SWIO_1
1
VOUT
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 > 50 mm
62MA 208iLeuze electronic
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 208i
M 12 socket for PWR, axial plug outlet,
open cable end, cable length 5 m
M 12 socket for PWR, axial plug outlet,
open cable end, cable length 10 m
50104557
50104559
14.5Accessory ready-made cables for bus connection
14.5.1 General information
• Cable KB ET… for connecting to Industrial Ethernet via M 12 connector
• Standard cable available in lengths from 2 … 30 m
• Special cables on request
14.5.2 Contact assignments of M 12 Ethernet connection cable KB ET…
M 12 Ethernet connection cable (4-pin connector, D-coded, on both sides)
PinNameCore color
1TD+yellow
2RD+white
3TD-orange
4RD-blue
SH (thread)FEbare
Figure 14.1: Cable structure of Industrial Ethernet connection cable
Leuze electronicMA 208i63
TNT 35/7-24V
Type overview and accessories
14.5.3 Technical data of M 12 Ethernet connection cable KB ET…
Operating temperature range in rest state: -50°C … +80°C
in motion: -25°C … +80°C
in motion: -25°C … +60°C (when used with drag chains)
Materialcable sheath: PUR (green), wire insulation: PE foam,
free of halogens, silicone and PVC
Bending radius> 65 mm, suitable for drag chains
Bending cycles> 106, perm. acceleration < 5 m/s
14.5.4 Order codes of M 12 Ethernet connection cable KB ET…
Type designationDescriptionPart no.
M 12 connector for BUS IN, axial connector, open cable end
KB ET - 1000 - SACable length 1 m50106738
KB ET - 2000 - SACable length 2 m50106739
KB ET - 5000 - SACable length 5 m50106740
KB ET - 10000 - SACable length 10 m50106741
M 12 connector for BUS IN to RJ-45 connector
KB ET - 1000 - SA-RJ45Cable length 1 m50109879
KB ET - 2000 - SA-RJ45Cable length 2 m50109880
KB ET - 5000 - SA-RJ45Cable length 5 m50109881
KB ET - 10000 - SA-RJ45Cable length 10 m50109882
M 12 connector + M 12 connector for BUS OUT to BUS IN
KB ET - 1000 - SSACable length 1 m50106898
KB ET - 2000 - SSACable length 2 m50106899
KB ET - 5000 - SSACable length 5 m50106900
KB ET - 10000 - SSACable length 10 m50106901
Table 14.4:Bus connection cable for the MA 208i
2
64MA 208iLeuze electronic
Type overview and accessories
14.6Accessory ready-made cables for connecting Leuze Ident devices
14.6.1 Order codes for the device connection cables
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.
i does not require any maintenance by the operator.
66MA 208iLeuze electronic
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, AMS 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 20 ms
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.
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.14.
Leuze electronicMA 208i67
TNT 35/7-24V
Specifications for Leuze end devices
KONTURflex specifications
Settings on the MA 208
• Ethernet address is freely selectable
• Device selection switch at position "0"
Ethernet settings
• Setting the data length is not required.
• User parameters:
"Transparent mode", baud rate 38400, "4 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.5 ms"
• Autosend baud rate "38.4 KB"
• 2 stop bits, no parity
i
68MA 208iLeuze electronic
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.2 "Command mode", figure 11.1.
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
Setting the data length is not required.
serial command
(ASCII)
TNT 35/7-24V
Leuze electronicMA 208i69
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.2 "Command mode", figure 11.1.
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
Setting the data length is not required.
70MA 208iLeuze electronic
Specifications for Leuze end devices
16.4Bar code reader BCL 32 (S4 switch position 3)
Specifications for the serial interface
Default parameterBCL 32
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.2 "Command mode", figure 11.1.
In this switch position, the MA automatically sends a position request to the BPS 8 every
10 ms 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.
78MA 208iLeuze electronic
Specifications for Leuze end devices
16.12 AMS distance measurement device, 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.
AMS
Specifications for the serial interface
Default parameterAMS
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.2 "Command mode", figure 11.1.
Control bitMeaningCorresponds to
serial command
(HEX)
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
7
8
9
10
11
12
13
14
15
Recommended settings
Setting the data length is not required.
Leuze electronicMA 208i79
TNT 35/7-24V
Specifications for Leuze end devices
ODSL 9, ODSL 30 and ODSL 96B
Notice!
The default settings of the ODS serial interface have to be adjusted! Further information on
configuration of the interface can be found in the technical description of the corresponding
device.
Specifications for the serial interface
Default parameterAMS
Baud rate38400
Data mode8N1
Handshakeno
ProtocolASCII transmission, 5-digit measurement value
Frame<Data>
Specifications for Command mode
Command mode cannot be used with the ODSL 9, ODSL 30 and ODSL 96B.
The ODSL 9/96B is to be operated in the "Precision" measure mode. The mode is set
through the display menu via Application -> Measure mode -> Precision. You can find
more details on this in the technical description.
80MA 208iLeuze electronic
Specifications for Leuze end devices
16.13 Modular interfacing unit MA 3x (S4 switch position C)
Specifications for the serial interface
Default parameterMA 3x
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.2 "Command mode", figure 11.1.
In this switch position, the address of the multiNet slave is also transmitted in the first two
bytes of the data range!
Leuze electronicMA 208i81
Specifications for Leuze end devices
16.14 Resetting the parameters (S4 switch position F)
To reset all parameters of the MA that can be configured with software (such as baud rate,
IP address, dependent on type) to the factory settings, do the following:
Set device switch S4 to F in a voltage free state.
Switch the voltage on and wait until it is ready for operation.
If necessary, switch the voltage off to prepare for commissioning.
Set service switch S10 to the "RUN" position.
82MA 208iLeuze electronic
17Appendix
17.1ASCII Table
HEXDECCTRLABBDESIGNATIONMEANING
00 0^@NULNULLZero
01 1^ASOHSTART OF HEADINGStart of heading
02 2^BSTXSTART OF TEXTStart of text characters
03 3^CETXEND OF TEXTLast character of text
04 4^DEOTEND OF TRANSMISSIONEnd of transmission
05 5^EENQENQUIRYRequest to transmit data
06 6^FACKACKNOWLEDGEPositive acknowledgment
07 7^GBELBELLBell signal
08 8^HBSBACKSPACEBackspace
09 9^IHTHORIZONTAL TABULATORHorizontal tabulator
0A 10^JLFLINE FEEDLine feed
0B 11^KVTVERTICAL TABULATORVertical tabulator
0C 12^LFFFORM FEEDForm feed
0D 13^MCRCARRIAGE RETURNCarriage return
0E 14^NSOSHIFT OUTShift out
0F 15^OSISHIFT IN Shift in
10 16^PDLEDATA LINK ESCAPEData link escape
11 17^QDC1DEVICE CONTROL 1 (X-ON)Device control character 1
12 18^RDC2DEVICE CONTROL 2 (TAPE)Device control character 2
13 19^SDC3DEVICE CONTROL 3 (X-OFF)Device control character 3
14 20^TDC4DEVICE CONTROL 4Device control character 4
15 21^UNAKNEGATIVE (/Tape) ACKNOWLEDGENegative acknowledge
16 22^VSYNSYNCHRONOUS IDLESynchronization
17 23^WETBEND OF TRANSMISSION BLOCKEnd of data transmission block
18 24^XCANCANCELInvalid
19 25^YEMEND OF MEDIUMEnd of medium
1A 26^ZSUBSUBSTITUTESubstitution
1B 27^[ESCESCAPEEscape
1C 28^\FSFILE SEPARATORFile separator
1D 29^]GSGROUP SEPARATORGroup separator
1E 30^^RSRECORD SEPARATORRecord separator
1F 31^_USUNIT SEPARATORUnit separator
20 32SPSPACESpace
21 33!EXCLAMATION POINTExclamation point
22 34"QUOTATION MARKQuotation mark
23 35#NUMBER SIGNNumber sign
24 36$DOLLAR SIGNDollar sign
25 37%PERCENT SIGNPercent sign
26 38&ERSANDAmpersand
27 39'APOSTROPHEApostrophe
28 40(OPENING PARENTHESISOpening parenthesis