Leuze electronic MA 248i Скачать руководство пользователя страница 62

Modes

60

MA 248

i

Leuze electronic

Collective mode sequence diagram

Send long online commands to the DEV, read RS 232 answer from DEV

Figure 11.1: Data transmission scheme with long online commands

Activate Collective 

mode

Select

function mode in 

PLC via EDS file?

Save toggle bits 

as process image

Reception of data

Data is transferred 

and must be saved

Is there still data 

in the receive buffer?

DEX = 1 set

(status bit 0.3)

Transmit the next 

data with toggle bit 

R-ACK = ! R-ACK 

(control bit 1.0)

Confirm data retrieval 

with toggle bit 

R-ACK = ! R-ACK 

(control bit 1.0)

No

No

Yes

Yes

Sending of data

Number < 254

Enter user data that are to 

be sent into output data 

words starting at Out 2

DLC = number of binary-

coded data bytes

Send data in the transmit 

buffer with the 

CTB = ! CTB toggle bit

(control bit 1.3)

All desired data in the buf-

fer?

*)

Command ok?

W-ACK = ! W-ACK 

(status bit 0.0)

(Display!)

*)

Command ok?

W-ACK = ! W-ACK 

(status bit 0.0)

(Display!)

Send data with the 

SFB = ! SFB toggle bit

(control bit 1.2)

No

No

No

Yes

Yes

Содержание MA 248i

Страница 1: ...MA 248i Fieldbus Gateway PROFINET IO en 04 2017 01 50113019 We reserve the right to make technical changes Original operating instructions...

Страница 2: ...Leuze electronic MA 248i 2017 Leuze electronic GmbH Co KG In der Braike 1 D 73277 Owen Germany Phone 49 7021 573 0 Fax 49 7021 573 199 http www leuze com info leuze com...

Страница 3: ...euze device 12 3 3 2 Connecting the power supply and the bus cable 12 3 4 Starting the device 12 3 5 Commissioning the MA 248i on the PROFINET 13 3 5 1 Preparing the control system 13 3 5 2 Installati...

Страница 4: ...7 5 Device interfaces 36 7 5 1 RS 232 device interface accessible after opening the device internal 36 7 5 2 Service interface internal 37 7 6 PROFINET IO wiring 38 7 7 Cable lengths and shielding 38...

Страница 5: ...d prior to the initial commissioning 64 12 2 Starting the device 65 12 3 Configuration steps for a Siemens Simatic S7 control 65 12 3 1 Step 1 Preparing the control system S7 PLC 66 12 3 2 Step 2 Inst...

Страница 6: ...Order codes of M12 PROFINET IO connection cable KB ET 84 14 6 Accessory ready made cables for connecting Leuze Ident devices 85 14 6 1 Order codes for the device connection cables 85 14 6 2 Contact as...

Страница 7: ...h position A 97 16 11 BPS 300i bar code positioning system ODSL xx optical distance sensors with RS 232 interface S4 switch position B 98 16 12 Modular interfacing unit MA 3x S4 switch position C 100...

Страница 8: ...nformation 1 2 Declaration of Conformity The MA 248i modular interfacing units have been designed and manufactured in accor dance with applicable European directives and standards Notice The Declarati...

Страница 9: ...Rflex to Quattro RSX M12 multiNet master connection box MA 3x Additional RS 232 devices Scales third party devices This is accomplished by transmitting the data from the DEV via an RS 232 V 24 interfa...

Страница 10: ...sified 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 differ ent depending on the...

Страница 11: ...lowing cases Rooms with explosive atmospheres As stand alone safety component in accordance with the machinery directive 1 For medicinal purposes CAUTION Observe intended use Only operate the device i...

Страница 12: ...ians are able to perform work on elec trical systems and independently detect possible dangers In Germany certified electricians must fulfill the requirements of accident prevention regu lations BGV A...

Страница 13: ...rmation can be found in chapter 6 3 1 3 3 Electrical connection The devices from the MA 2xxi family feature four M12 connectors sockets which are coded differently depending on the interface The volta...

Страница 14: ...h 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 co...

Страница 15: ...oller S7 PLC and prepare the control for a consistent data transmission Notice If an S7 control is used you need to ensure that Simatic Manager Version 5 4 service pack 5 V5 4 SP5 or higher is used 3...

Страница 16: ...ration of the modules Now select a corresponding data module for the input and output area A number of different modules are available with various data lengths 4 8 12 16 20 32 1024 bytes Notice Becau...

Страница 17: ...nd in chapter 12 3 4 section Examples of sensible settings for corresponding Leuze devices on page 68 3 5 5 Transfer of the configuration to the IO Controller Transfer the PROFINET IO configuration to...

Страница 18: ...names to the configured IO devices Select the respective gateway MA 248i for the device naming based on its MAC address The unique device name which must match the participant in the HW Config is the...

Страница 19: ...r address and assign this data to the named participant device name Figure 3 4 MAC address IP address individual device name From now on and when programming only the unique device name max 255 charac...

Страница 20: ...ial 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...

Страница 21: ...M to the fieldbus The cable of the respective Leuze device is guided through cable bushings with PG cable glands into the MA 248i and connected there with the PCB connectors The MA 248i is intended as...

Страница 22: ...e 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 serv...

Страница 23: ...100 Mbit s 100Base TX full duplex as well as auto negotiation and auto crossover The functionality of the device is defined via parameter sets which are clustered in modules These modules are contain...

Страница 24: ...nd in chapter 12 Contents Index Data type Description Value Header 0 10 bytes Manufacturer specific MANUFACTURER_ID 10 UNSIGNED16 Leuze PNO manufacturer ID 338 ORDER_ID 12 ASCII string 20 bytes Leuze...

Страница 25: ...to one another without direct connection to a switch In addition to the classic star topology a linear topology is thus also possible Figure 4 5 PROFINET IO in a linear topology Each participant in t...

Страница 26: ...onsumption Max 5VA without DEV current consumption max 300mA Max stress on the connector PWR IN OUT 3A Indicators LED LINK0 green Connection possible yellow RX TX0 data transmission LED LINK1 green Co...

Страница 27: ...t FC Shock IEC 60068 2 27 test Ea Electromagnetic compatibility EN 61000 6 3 2007 interference emissions for resi dential commercial and light industrial environments EN 61000 6 2 2005 interference re...

Страница 28: ...ting the inte gration of Leuze RS 232 devices in the various fieldbus types Fieldbus Device type Part no PROFIBUS DP V0 MA 204i 50112893 Ethernet TCP IP MA 208i 50112892 PROFINET IO RT MA 248i 5011289...

Страница 29: ...g 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...

Страница 30: ...2 Mounting The gateway mounting plate MA 248i can be mounted in two different ways using four threaded holes M6 or using two M8 screws on the two lateral grooves Fastening by means of four M6 or two M...

Страница 31: ...ending 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 an...

Страница 32: ...tion of the electrical connections 7 1 Safety notices for the electrical connection Attention Before connecting the device please ensure that the supply voltage matches the value print ed on the namep...

Страница 33: ...le Figure 7 2 MA 248i connections Described in detail in the following are the individual connections and pin assignments Attention Voltage supply and bus cable are coded in the same way Please observ...

Страница 34: ...nection Switching input output The MA 248i is equipped with the SWIO_1 and SWIO_2 switching inputs outputs This is located on the PWR IN M12 connector and on the PWR OUT M12 connector The connec tion...

Страница 35: ...FINET IO interface available as host interface Table 7 3 Pin assignment HOST BUS IN For the host connection of the MA 248i the KB ET SA RJ45 ready made cables are preferred see table 14 4 Bus connecti...

Страница 36: ...ded and earthed The RD RD and TD TD wires must be stranded in pairs Use CAT 5 cable for the connection MA 248 HOST BUS IN RJ 45 TD 1 2 3 4 RD RD TD TD 1 TD 2 RD 3 RD 6 1 8 Twisted Pair Twisted Pair ma...

Страница 37: ...g Notice Ensure adequate shielding The entire connection cable must be shielded and earthed The signal lines must be stranded in pairs Use CAT 5 cable for the connection Notice For the MA 248i as stan...

Страница 38: ...devices RFI xx RFM xx BCL 22 Figure 7 5 RS 232 device interface The standard devices are connected with 6 or 10 pin connector piece to X31 or X32 respectively For hand held scanners BCL 8 and BPS 8 wi...

Страница 39: ...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 Figure 7 7...

Страница 40: ...84 For unavailable cable lengths you can configure your cables yourself When doing so make certain that you connect TD on the M12 connector with RD on the RJ 45 connector and TD on the M12 connector...

Страница 41: ...8 1 LED indicators on the MA 248i 8 1 LED status indicators 8 1 1 LED indicators on the circuit board LED Status off Device OFF no operating voltage or device defect continuous green light Device ok r...

Страница 42: ...iagnostics and troubleshooting BF LED continuous red light Network error errors on PROFINET for details see chapter 15 Diagnostics and troubleshooting LINK 0 RX TX 0 LED continuous green light LINK0 c...

Страница 43: ...ibed in the following The figure shows the MA 248i with opened housing cover Figure 8 2 Front view operational controls of the MA 248i C B A D E G F Standard settings A MA 248i not equipped B Rotary s...

Страница 44: ...uze device JST plug connector with 10 pins Connection of the Leuze devices BCL RFI RFM Pin VINBCL with standard setting V 18 30V X32 Leuze device JST plug connector with 6 pins Connection of the Leuze...

Страница 45: ...X33 The X33 RS 232 interface facilitates the configuration of the Leuze device and the MA 248i via PC which is connected by means of a serial null modem cable X33 pin assignment service connector 8 2...

Страница 46: ...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 20ms must be maintained between two...

Страница 47: ...d on the configurable functions please refer to the description of the respective device 9 1 Connecting the service interface The RS 232 service interface is connected after opening the device cover o...

Страница 48: ...e connected Leuze device Commands You can now call up information on the MA 248i by sending the following commands Table 9 1 Available commands Information Table 9 2 General firmware information v Gen...

Страница 49: ...ut CTB SFB Number of send fieldbus frames Number of frames sent via the fieldbus Number of invalid commands Number of invalid commands Number of ASCII stack send errors Number of frames that the ASCII...

Страница 50: ...d by the master 0 means that the expected configuration matches the current config uration PNS input data length Currently configured PROFINET input frame length in slot 1 PNS output data length Curre...

Страница 51: ...ture is used between fieldbus gateway PLC 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...

Страница 52: ...0 7 6 5 4 3 2 1 0 ND BO DL BLR DEX SMA W ACK Status byte 0 DLC7 DLC6 DLC5 DLC4 DLC3 DLC2 DLC1 DLC0 Status byte 1 Data byte parameter byte 0 Data Data byte parameter byte 1 Bit no Designation Meaning 0...

Страница 53: ...th for the transmission of data to the transmit buffer with the CTB command and for sending the transmit buffer contents with the SFB command 0 0 Bit 0 1 Successfully written 1 0 Successfully written...

Страница 54: ...ddr Data type Value range Default DL Data loss Data transmission monitoring This bit is set until the device is reset bit pattern see chapter 10 4 RESET function deleting memory in case gateway data w...

Страница 55: ...e PLC This can be used to differentiate between multiple identical data sets that are sent to the PLC 0 7 Bit 0 1 1 0 On each status changefornewdata 0 Input data Description Addr Data type Value rang...

Страница 56: ...ed Leuze device can be set in the data or parameter field For further information see chapter 11 1 3 Command mode 0 0 Bit 0 Default transpar ent data transmis sion 1 Command mode 0 Output data Descrip...

Страница 57: ...to receive the next data set This toggle bit is switched by the master after valid received data has been read out of the input bytes and the next datablock can be requested If the gateway detects a...

Страница 58: ...for this purpose if 20 ms is pending Control byte 0 10101010 AAh Control byte 1 10101010 AAh OUT data byte 0 parameter byte 0 AAh OUT data byte 1 parameter byte 1 AAh This sets the memory or status co...

Страница 59: ...mode In Collective mode the data of the serial end device is stored temporarily in the fieldbus gateway by toggling the CTB bit and is not sent to the PLC in blocks until prompted to do so by the PLC...

Страница 60: ...by the master to the slave is first collected in a transmit buffer by setting the CTB bit Copy to transmit buffer Please observe that data provided is transmitted directly by toggling the bit The data...

Страница 61: ...entered in control or output byte 2 To deactivate the reading gate a 2D hex must be used instead corresponds to a ASCII 7 6 5 4 3 2 1 0 ND Address 4 Address 3 Address 2 Address 1 Address 0 Broadcast C...

Страница 62: ...er DEX 1 set status bit 0 3 Transmit the next data with toggle bit R ACK R ACK control bit 1 0 Confirm data retrieval with toggle bit R ACK R ACK control bit 1 0 No No Yes Yes Sending of data Number 2...

Страница 63: ...ce 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 N...

Страница 64: ...d 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 sign...

Страница 65: ...le commands can be found in chapter Specifications for Leuze end devices on page 87 Triggering scanner Reception of data Has the slave received data from the RS 232 BLR BLR Rescue data e g data block...

Страница 66: ...ensure protection class IP 65 Finally close the housing of the MA 248i Attention Only then may the supply voltage be applied Upon startup of the MA 248i the device selection switch is queried and the...

Страница 67: ...with a Siemens S7 control 1 Preparation of the control system S7 PLC 2 Installation of the GSDML file 3 Hardware configuration of the S7 PLC 4 Configuration of the modules 5 Transmission of the PROFIN...

Страница 68: ...y GSDML file contains a version of the MA 248i device model This is also reflected in the file name You can find the GSD file at www leuze com All data in modules required for operating the MA 248i is...

Страница 69: ...dule for the input and output area A number of combinable modules are available with various data lengths 4 8 12 16 20 32 1024 bytes In total a maximum of 1024 bytes are possible for both the input by...

Страница 70: ...ner does not typically send any data no output module is necessary BCL bar code scanners RFID devices RFM RFI and RFU LSIS 222 and DCR 202i Input module individual The size of the input module is depe...

Страница 71: ...ice via the Discovery and Configuration Protocol DCP The PROFINET IO also uses the Discovery and Configuration Protocol DCP for the IP address assignment during each system boot up if the IO device is...

Страница 72: ...bar code scanner MAC address IP address individual device name At this point please assign an IP address suggested by the PLC a subnet mask and if required a router address and assign this data to th...

Страница 73: ...P frames for Establishing communication and Acyclic data exchange and also for the transfer of various information types such as Parameters for the configuration of the modules during the establishmen...

Страница 74: ...may be found in chapter Configuration steps for a Siemens Simatic S7 control on page 65 For the default settings of the MA 248i please refer to the following module descriptions Notice Please note th...

Страница 75: ...of the device The module parameters are set via the module list of the selected device By selecting the project properties of a module the respective parameters may be set if required The following l...

Страница 76: ...arrangement of the data within a module is defined The composition of the input output data is defined via the module list The MA 248i interprets the incoming output data and triggers the appropriate...

Страница 77: ...content with max 62 bytes 64 128 bytes input Data content with max 126 bytes 128 256 bytes input Data content with max 254 bytes 256 384 bytes input Data content with max 382 bytes 384 512 bytes inpu...

Страница 78: ...tion with the Leuze device occurs via the service interface Notice For further information on connecting and using the service interface see chapter 9 Con figuration To do this connect the Leuze devic...

Страница 79: ...the MA 248i An overview of the available commands and information can be found in chapter Reading out information in Service mode on page 45 12 6 1 Specific feature for the use of hand held scanners...

Страница 80: ...utton on the hand held scanner The following codes for configuring the devices are necessary for these devices as well 12 6 2 Specific features in the operation of an RFM RFI When using the MA 248i in...

Страница 81: ...tus LED on the circuit board Off No supply voltage connected to the device Check supply voltage Hardware error Send the device to customer service Green orange flashing Device in boot mode No valid fi...

Страница 82: ...Different protocol settings Check protocol settings Incorrect device name set Check device name Incorrect configuration Check configuration of the device in the config uration tool Sporadic errors at...

Страница 83: ...MA 208i Ethernet TCP IP gateway 50112892 MA 235i CANopen gateway 50114154 MA 238i EtherCAT gateway 50114155 MA 248i PROFINET IO RT gateway 50112891 MA 255i DeviceNet gateway 50114156 MA 258i EtherNet...

Страница 84: ...30 C 70 C in motion 5 C 70 C Material sheathing PVC Bending radius 50mm PWR IN 5 pin socket A coded Pin Name Core color 1 VIN brown 2 SWIO_2 white 3 GND blue 4 SWIO_1 black 5 FE gray Thread FE bare P...

Страница 85: ...Figure 14 1 Cable construction of PROFINET IO connection cable Type designation Description Part no K D M12A 5P 5m PVC M12 socket for PWR axial plug outlet open cable end cable length 5m 50104557 K D...

Страница 86: ...Part no M12 connector for BUS IN axial connector open cable end KB ET 1000 SA Cable length 1m 50106738 KB ET 2000 SA Cable length 2m 50106739 KB ET 5000 SA Cable length 5m 50106740 KB ET 10000 SA Cab...

Страница 87: ...able length 3m 50113468 KB JST M12A 8P 3000 LSIS 122 LSIS 222 cable length 3m 50111225 K D M12A 5P 5m PVC Voltage supply cable length 5m 50104557 K D M12A 5P 10m PVC Voltage supply cable length 10m 50...

Страница 88: ...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 ac...

Страница 89: ...dard 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 contro...

Страница 90: ...Module selection Dependent on number of beams used but at least 8 bytes In User parameters Transparent mode Use GSD settings baud rate 38400 8 data bits No parity 2 stop bits KONTURflex settings Firs...

Страница 91: ...isable Output module 4 bytes Default parameter BCL 8 Baud rate 9600 Data mode 8N1 Handshake no Protocol framing protocol without acknowledgment Frame STX Data CR LF Control bit Meaning Corresponds to...

Страница 92: ...ut module 4 bytes Default parameter BCL 22 Baud rate 9600 Data mode 8N1 Handshake no Protocol framing protocol without acknowledgment Frame STX Data CR LF Control bit Meaning Corresponds to serial com...

Страница 93: ...input module with 20 bytes is advisable Output module 4 bytes Default parameter BCL 300i BCL 500i BCL 600i Baud rate 9600 Data mode 8N1 Handshake no Protocol framing protocol without acknowledgment Fr...

Страница 94: ...mber of digits of the bar code that is to be read With an 18 digit bar code 2 bytes of status bytes for example the input module with 20 bytes is advisable Output module 4 bytes Default parameter BCL...

Страница 95: ...igits of the 2D code that is to be read With an 18 digit code 2 bytes of status bytes for example the input module with 20 bytes is advisable Output module 4 bytes Default parameter LSIS 122 LSIS 222...

Страница 96: ...11 2 Recommended settings Input module dependent on the number of digits of the 2D code that is to be read With an 18 digit code 2 bytes of status bytes for example the input module with 20 bytes is a...

Страница 97: ...th hand held scanners Recommended settings Input module dependent on the number of digits of the bar code or 2D code that is to be read With a 12 digit code 2 bytes of status bytes for example the inp...

Страница 98: ...module output module setting with 24 bytesduringthereadingofaserialnumberwith16characters 2bytesofstatusbytes Output module 4 bytes If data is to be written it is advisable to use the setting with 24...

Страница 99: ...is switch position the MA automatically sends a position request to the BPS 8 every 10ms until another command comes via the control Automatic request only restarts when a new position request is sent...

Страница 100: ...figure 11 2 Recommended settings Input module 8 bytes Output module 8 bytes Default parameter BPS 300i Baud rate 38400 Data mode 8N1 Handshake no Protocol binary protocol without acknowledgment Frame...

Страница 101: ...ponding device Specifications for the serial interface 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 Precisio...

Страница 102: ...e code that is to be read With an 18 digit bar code 2 bytes of status bytes 2 bytes of slave address for example it is advisable to use the 24 byte setting Output module 4 bytes Notice In this switch...

Страница 103: ...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 volt...

Страница 104: ...C1 DEVICE CONTROL 1 X ON Device control character 1 12 18 R DC2 DEVICE CONTROL 2 TAPE Device control character 2 13 19 S DC3 DEVICE CONTROL 3 X OFF Device control character 3 14 20 T DC4 DEVICE CONTRO...

Страница 105: ...51 3 34 52 4 35 53 5 36 54 6 37 55 7 38 56 8 39 57 9 3A 58 COLON Colon 3B 59 SEMICOLON Semicolon 3C 60 LESS THAN Less than 3D 61 EQUALS Equals 3E 62 GREATER THAN Greater than 3F 63 QUESTION MARK Ques...

Страница 106: ...T Grave accent 61 97 a 62 98 b 63 99 c 64 100 d 65 101 e 66 102 f 67 103 g 68 104 h 69 105 i 6A 106 j 6B 107 k 6C 108 l 6D 109 m 6E 110 n 6F 111 o 70 112 p 71 113 q 72 114 r 73 115 s 74 116 t 75 117 u...

Страница 107: ...euze device 12 Power supply and bus cable 12 Safety notices 30 F Fast commissioning 11 Fieldbus systems 21 I Input byte 0 Buffer overflow 52 Data exist 51 Data loss 52 New data 53 Next block ready to...

Страница 108: ...ths and shielding 38 Linear topology 23 Star topology 23 Wiring 38 PROFINET IO connection cable 83 Q Quality assurance 6 R Reading slave data 58 Repair 86 S Service interface 37 43 Service mode Comman...

Отзывы: