Page 1
MA 204 Modular interfacing unit for Leuze Ident and RS 232 devices on PROFIBUS DP T E C H N I C A L D E S C R I P T I O N...
Page 2
Leuze electronic GmbH + Co. KG P.O. Box 1111, D- 73277 Owen Tel. +49(0) 7021/ 573-0, Fax +49(0)7021/ 573-199 info@leuze.de w.leuze.com Sales and Service Germany Sales Region East Sales Region North Sales Region South Phone 035027/629-106 Phone 07021/573-306 Phone 07021/573-307...
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. 204i...
STX, data, CR, LF). The integration of the GSD file in the hardware manager of the PLC is necessary to ensure the correct function of the MA 204i. The corresponding Leuze devices are selected using a rotary code switch on the circuit board of the connector unit.
• Online command: These commands refer to the respective, connected ident device and may be differ- ent depending on the device. These commands are not interpreted by the MA 204i, but are instead transmitted transparently (see description of ident device).
Leuze devices such as bar code- 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 7. Leuze electronic 204i...
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. 204i Leuze electronic...
Fast commissioning / operating principle Notice! Below you will find a short description for the initial commissioning of the PROFIBUS gateway MA 204i. Detailed explanations for the listed points can be found throughout the handbook. Mounting The gateway mounting plate MA...
Finally, close the housing of the MA 204i. Attention! Only then may the supply voltage be applied. Upon startup of the MA 204i, the device selection switch and the address settings are queried and the gateway automatically sets itself to the Leuze device. Connecting functional earth FE ...
These are standard function blocks and are used to facilitate 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. Leuze electronic 204i...
3.5.2 Installation of the GSD file For the subsequent configuration of the PROFIBUS devices, e.g., MA 204i, 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.
Transmit PROFIBUS configuration to the controller (S7 PLC). After correct transmission to the controller (S7 PLC), the PLC automatically carries out the following activities: • Establishment of a connection between the controller and configured PROFIBUS devices • Cyclical data exchange Leuze electronic 204i...
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". 204i Leuze electronic...
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 electronic 204i...
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. 204i Leuze electronic...
PROFIBUS. The MA 204i features multiple M 12 connectors / sockets for the electrical connection of the supply voltage, the interface and the switching inputs and outputs. Additional information on the electrical connection can be found in chapter 7.2. Leuze electronic 204i...
Page 22
• FailSafe Mode • Device-specific diagnostic data • I&M • No changing of the slave address via the PROFIBUS For further details, see chapter 12! 204i 204i 204i PROFIBUS Terminating resistor on the last participant Figure 4.4: PROFIBUS DP 204i Leuze electronic...
1 x M12: Power IN/GND and switching input/output 1 x M12: Power OUT/GND and switching input/output Environmental data Operating temperature range 0 °C … +55 °C Storage temperature range -20 °C … +60 °C Air humidity max. 90 % rel. humidity, non-condensing Leuze electronic 204i...
Vibration IEC 60068-2-6, test FC Shock IEC 60068-2-27, test Ea Electromagnetic compatibility EN 61000-6-3:2007 (interference emissions for residential, commercial and light-industrial environments) EN 61000-6-2:2005 (interference rejection for industrial sectors) Dimensioned drawings Figure 5.1: Dimensioned drawing MA 204 204i Leuze electronic...
PROFIBUS DP V0 MA 204 50112893 EtherNet TCP/IP MA 208 50112892 PROFINET-IO RT MA 248 50112891 DeviceNet MA 255 50114156 CANopen MA 235 50114154 EtherCAT MA 238 50114155 EtherNet/IP MA 258 50114157 Table 5.1: Type overview MA 2xx Leuze electronic 204i...
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.
• 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 Fastening options Figure 6.2: Fastening options Leuze electronic 204i...
Clean the housing of the MA 204i 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. 204i Leuze electronic...
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 IP 65 is achieved only if the connectors and caps are screwed into place! Leuze electronic 204i...
Switching input/switching output 1 Functional earth SWIO_1 M 12 connector Thread Functional earth (housing) (A-coded) Table 7.1: Pin assignment PWR IN Notice! The designation and function of the SWIO depends on the connected device. Please observe the following table! 204i Leuze electronic...
Page 31
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 instruc- tions. Leuze electronic 204i...
Functional earth (housing) Table 7.3: Pin assignments for PROFIBUS DP BUS IN For the host connection of the MA 204i, the ready-made KB PB-xxxxx-Bx cables are preferred, "Bus connection cable for the MA 204i" on page 78. 204i Leuze electronic...
Functional earth (housing) Table 7.4: Pin assignments for PROFIBUS DP BUS OUT For the host connection of the MA 204i, the ready-made KB PB-xxxxx-Sx cables are preferred, "Bus connection cable for the MA 204i" on page 78. Notice! Ensure adequate shielding. For the devices and ready-made cables offered by Leuze electronic, the shield is on PIN 1.
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 75), the system connection can be established on M 12 or 9-pin Sub-D, e.g., for hand-held scanners. 204i Leuze electronic...
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 electronic 204i...
LED indicators on the circuit board LED (Status) Device OFF - no operating voltage or device defect continuous green light Device ok - readiness for operation continuous orange light Device error/ firmware available flashing green-orange Device in boot mode - no firmware 204i Leuze electronic...
- no operating voltage or device error continuous green light Device ok - self test successfully finished - ready flashing green Device ok, device in service mode red, flashing Configuration error - baud rate or address incorrect Leuze electronic 204i...
RS 232 service interface Sub-D Jumper for bridging, separating switching input/output PWR IN/OUT 3 JST plug connectors: connection of the Leuze devices Switch S3 for address selection 10² Figure 8.2: Front view: operational controls of the MA 204 204i Leuze electronic...
Page 39
Default setting: position 0 Rotary switch (0 … 9) for address selection 10^1 Rotary switch Default setting: position 0 Switch for address selection – switch between address range 0…99 or Rotary switch 100…127; default setting: address range = 0…99 Leuze electronic 204i...
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 204i Leuze electronic...
Additional parameters such as the baud rate and data mode can be configured via the GSD file with the "USE GSD settings" enable function. The data frame and, if necessary, the length are specified via the switch position. Leuze electronic 204i...
The gateway features the S1, S2 and S3 switches (ones, tens and hundreds digits) for setting the station address. Hundreds Tens Ones Figure 8.6: Rotary switch for setting the address Further information on the respective address ranges and the addressing procedure can be found in chapter 12.1. 204i Leuze electronic...
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: Leuze electronic 204i...
Page 44
Enable memory mode for the last frames. The memory mode shows the last RX and TX frames for ASCII and fieldbus. Table 9.1: Available commands Information Version Version information. Firmware date Firmware date. Table 9.2: General firmware information 204i Leuze electronic...
Page 45
Currently configured PROFIBUS input frame length in slot 1. DPS output data length Currently configured PROFIBUS output frame length in slot 2. DPS address Set Profibus address. DPS identification number Identification number of the Profibus slave. Table 9.6: PROFIBUS configuration (only for MA 204 devices) Leuze electronic 204i...
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 95. 204i Leuze electronic...
Meaning 0 … 7 DLC0 … DLC7 Data 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"). Leuze electronic 204i...
This flag bit is 1: Further data in always set to high ("1") by the fieldbus gateway as long as the transmit buffer data is in the buffer. 204i Leuze electronic...
Page 49
While the BO bit is set, the RTS 1->0: signal of the serial interface is deactivated. Buffer o.k. The memory size of the gateway for the data of both the PLC and the Leuze end device is 1 kByte. Leuze electronic 204i...
Bit no. Designation Meaning Command mode Command mode Broadcast Broadcast (only relevant with a connected MA 3x) 2 … 6 Address 0 .. 4 Address bits 0 .. 4 (only relevant with a connected MA 3x) New data 204i Leuze electronic...
Bit 7: New data: ND Output data Description Addr. Data Value range Default type New data 0->1; 1->0: This bit is needed if several identical pieces of data are to be On each status sent in sequence. change for new data Leuze electronic 204i...
Toggle bit: changing this bit causes all data which was copied RS 232 to the transmit buffer of the fieldbus gateway via the CTB bit 1->0: Data to to be transmitted to the RS 232 interface or the connected RS 232 Leuze device. 204i Leuze electronic...
OUT data byte 0/parameter byte 0: AAh OUT data byte 1/parameter byte 1: AAh 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. Leuze electronic 204i...
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. 204i Leuze electronic...
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. Leuze electronic 204i...
Page 56
Address 0 Broadcast Control byte 0 mode R-ACK Control byte 1 Data byte / parameter byte 0 Data byte / parameter byte 1 Data … Output byte 0 Output byte 1 Output byte 2 Output byte 3 204i Leuze electronic...
Page 57
All desired data in the (control bit 1.0) buffer? Send data with the SFB = ! SFB toggle bit (control bit 1.2) Command ok? W-ACK = ! W-ACK (status bit 0.0) (Display!) Figure 11.1: Data transmission scheme with long online commands Leuze electronic 204i...
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. 204i Leuze electronic...
Page 59
Device executes the corresponding function (cf. chap. 16). For function to be re-established, the ND bit and the selected bit in byte 2 must be toggled, byte 0.0 can stay. Figure 11.2: Execution of command after activation of the Command mode Leuze electronic 204i...
Page 60
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 81. 204i Leuze electronic...
Set the station address of the gateway via the rotary switch S1 - S3 (ones, tens and hundreds digits). Hundreds Tens Ones Figure 12.1: Rotary switch for setting the address Finally, close the housing of the MA 204i. Leuze electronic 204i...
Commissioning and configuration Attention! Only then may the supply voltage be applied. Upon startup of the MA 204i, the device selection switch and the address settings are queried and the gateway automatically sets itself to the Leuze device. PWR IN...
PROFIBUS DP, 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 204i, please refer to the following module descriptions. Leuze electronic...
A number of combinable modules are available with various data lengths (4, 8, 12, 16, 20, 32 … 128 bytes). In total, a maximum of 244 bytes are possible for both the input bytes and for the output bytes. 204i Leuze electronic...
Page 65
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 Leuze electronic 204i...
It must ensure that no more than one participant has permission to transmit at any given time. The PROFIBUS bus-access process includes the token-passing process and the master-slave process. 204i Leuze electronic...
Table 12.2: PROFIBUS DP master and slave types Note! The device is defined as a slave in the device master file (GSD file) of the MA 204i! All expanded services are not implemented for the MA 204i PROFIBUS profile.
3000 6000 12000 Automatic baud rate detection is indicated in the device master file of the MA 204i: Auto_Baud_supp = 1 12.5.5 Modular structure of the parameter The PROFIBUS DP functionality of the device is defined via parameter sets which are clus- tered in modules.
Default Data bits 7, 8, 9 Parity Yes, None None Stop bit Use separator Yes, No Use status and control Yes, No bits Table 12.3: Device parameters Parameter length: 33 byte Input data None Output data None Leuze electronic 204i...
204i interprets the incoming output data and triggers the appropriate reactions in the MA 204i. 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 proper- ties, the input data string is formatted and referenced to the internal data.
Taking into consideration the maximum permissible data width of 244 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. Leuze electronic 204i...
The Leuze device is now connected to the fieldbus. Activation of the Leuze device can now occur via the switching input on the MA 204i, 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").
When using the MA 204i, the voltage supply of the hand-held scanner (5 V/at 1 A) can be connected to the interface by means of a cable via the 9-pin Sub-D connector (voltage on PIN 9).
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. Example: Control byte 0 Control byte 1 Data CHAR Plain text 204i Leuze electronic...
Service switch on RUN. Incorrect baud rate / address: Check switch settings: Red, flashing Address >126: no communication Address switch S1, S2, Red continuous light Device error. Send the device to customer service. Table 13.1: General causes of errors Leuze electronic 204i...
50038537 KDS BUS OUT M12-T-5P M 12 T-connector for BUS OUT 50109834 KD 095-5A M 12 socket for voltage supply 50020501 KS 095-4A M 12 connector for SW IN/OUT 50040155 Table 14.3: Connectors for the MA 204 Leuze electronic 204i...
Thread bare (A-coded) 14.5.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 204i Leuze electronic...
Core color N.C./VCC – A (N) green N.C. N.C. N.C./ – N.C. GND 485 B (P) B (P) M 12 socket (B-coded) N.C. – A (N) N.C. N.C. Thread bare N.C. B (P) M 12 connector (B-coded) Leuze electronic 204i...
KB PB-2000-SBA Cable length 2 m 50104097 KB PB-5000-SBA Cable length 5 m 50104098 KB PB-10000-SBA Cable length 10 m 50104099 KB PB-30000-SBA Cable length 30 m 50104173 Table 14.5: Bus connection cable for the MA 204 204i Leuze electronic...
K-D M12A-5P-5000/10000 connection cable (5-pin with injection molded connector), open cable end Core color brown white blue black gray KB JST 3000 (RS 232 connection cable, JST pin strip 10-pin, open cable end) Signal Core color JST 10-pin TxD 232 RxD 232 brown orange shield Leuze electronic 204i...
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.3...
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. Leuze electronic 204i...
Page 84
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 204i Leuze electronic...
• 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 sensible. • Output module: 4 bytes Leuze electronic 204i...
• 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 sensible. • Output module: 4 bytes 204i Leuze electronic...
• 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 sensible. • Output module: 4 bytes Leuze electronic 204i...
• 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 sensible. • Output module: 4 bytes 204i Leuze electronic...
• 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 sensible. • Output module: 4 bytes Leuze electronic 204i...
• Input module: dependent on the number of digits of the 2D code that is to be read. With a 18-digit code (+ 2 bytes of status bytes), for example, the input module with 20 bytes is sensible. • Output module: 4 bytes 204i Leuze electronic...
• Input module: dependent on the number of digits of the 2D code that is to be read. With a 18-digit code (+ 2 bytes of status bytes), for example, the input module with 20 bytes is sensible. • Output module: 4 bytes Leuze electronic 204i...
• Input module: dependent on the number of digits of the bar code or 2D code that is to be read. With a 12-digit code (+ 2 bytes of status bytes), for example, the input module with 16 bytes is sensible. • Output module: none 204i Leuze electronic...
16 characters (+ 2 bytes of status bytes). • Output module: 4 bytes If data are 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. Leuze electronic 204i...
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. 204i Leuze electronic...
Cyclically transmit position values C0F232 Stop cyclical transmission C0F333 Laser diode on C0F434 Laser diode off C0F535 Transmit single speed value C0F636 Cyclically transmit speed values C0F737 Recommended settings • Input module: 8 bytes • Output module: 8 bytes Leuze electronic 204i...
Page 96
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. 204i Leuze electronic...
24-byte setting. • Output module: 4 bytes Notice! In this switch position, the address of the multiNet slave is also transmitted in the first two bytes of the data range! Leuze electronic 204i...
Record separator UNIT SEPARATOR Unit separator SPACE Space EXCLAMATION POINT Exclamation point " QUOTATION MARK Quotation mark NUMBER SIGN Number sign DOLLAR SIGN Dollar sign PERCENT SIGN Percent sign & AMPERSAND Ampersand APOSTROPHE Apostrophe OPENING PARENTHESIS Opening parenthesis 204i Leuze electronic...
Page 99
Plus sign COMMA Comma HYPHEN (MINUS) Hyphen (minus) PERIOD (DECIMAL) Period (decimal) SLANT Slant COLON Colon SEMICOLON Semicolon < LESS THAN Less than EQUALS Equals > GREATER THAN Greater than QUESTION MARK Question mark COMMERCIAL AT Commercial AT Leuze electronic 204i...