background image

XI/ON: XN-1RS232

09/2011 MN05002013Z-EN

www.eaton.com

25

2 Integrating the Module in PROFIBUS-DP

PROFIBUS-DP data image

TX_CNT

0 - 3

The value RX_CNT is linked and transferred with 
every data segment of the process output data. 
The sequence of the TX_CNT values is: 
00->01->10->11->00... 
(decimal: 0->1->2->3->0...)
A faulty sequence indicates that data segments 
are missing.

TX_BYTE_CNT

0 - 7

Number of valid user data bytes in this data 
segment. In the Profibus-DP fieldbus, a data 
segment consists of up to 6 user data bytes.

Designation

Value

Description 

Содержание XN-1RS232

Страница 1: ...User Manual XI ON 09 2011 MN05002013Z EN replaces M001777 02 04 2007 XN 1RS232 Technology Module...

Страница 2: ...owner concerned Copyright Eaton Automation AG CH 9008 St Gallen All rights reserved also for the translation None of this document may be reproduced or processed duplicated or distrib uted by electro...

Страница 3: ...wire breakage on the signal side does not result in undefined states in the auto mation devices Ensure a reliable electrical isolation of the low voltage for the 24 volt supply Only use power supply u...

Страница 4: ...h regard to cable cross sections fuses PE All work relating to transport installa tion commissioning and maintenance must only be carried out by qualified personnel IEC HD 60364 DIN VDE 0100 and natio...

Страница 5: ...11 Schematic diagram of the transmit sequence 12 Technical features 13 Block diagram of the XN 1RS232 13 Technical data of the XN 1RS232 module 14 Indication elements 16 Base modules 17 Technical dat...

Страница 6: ...rating the Module in CANopen 59 Introduction 59 General description 59 Object description 60 Object 5600hex RS232 RS4xx parameters 60 Object 5601hex RS232 RS4xx RxD 65 Object 5602hex RS232 RS4xx TxD 6...

Страница 7: ...Warns of a hazardous situation that could result in slight damage to the product or components Caution Warns of the possibility of a hazardous situation that could result in major damage and minor inj...

Страница 8: ...About This Manual Writing conventions 8 XI ON XN 1RS232 09 2011 MN05002013Z EN www eaton com...

Страница 9: ...artner such as a PLC or transfers data to be sent from the communication partner to the device The module can be fitted or removed during oper ation without damaging the module electronics Once the mo...

Страница 10: ...ith the field device The data transmission from the communication partner e g PLC to the transmit buffer of the XN 1RS232 module or from the receive buffer of the XN 1RS232 module to the communication...

Страница 11: ...RES 1 No STATRES 0 RX_CNT RX_CNT_ACKN Yes No new receive data present No No RX_CNT RX_CNT_ACKN 1 MOD4 PLC application error Segment sequence error Save note error Yes RX_CNT_ACK RX_CNT Check whether a...

Страница 12: ...t sequence Check whether an active diagnostics or a communi cation error is present Check whether ongoing jobs are completed Transfer data to the module STATRES 1 STATRES 0 STAT 1 Read diagnostics No...

Страница 13: ...Description Technical features Technical features Block diagram of the XN 1RS232 Figure 1 XN 1RS232 electronic module Figure 2 Block diagram of the XN 1RS232 module Module bus interface Module bus DC...

Страница 14: ...op bits Transmit signal active 15 to 3 V DC Transmit signal inactive 3 to 15 V DC Common mode range 7 to 12 V DC RS232 cable length 15 m Nominal supply from supply terminal UL range 24 V DC 18 to 30 V...

Страница 15: ...IEC EN 61000 4 5 HF asymmetrical IEC EN 61000 4 6 Line conducted emission interference voltage IEC EN 61000 6 4 Radiated high frequency emission IEC EN 61000 6 4 IEC CISPR 11 EN 55011 Class A Degree...

Страница 16: ...nd this module Check the power supply of the module bus Red flashing approx 0 5 Hz Diagnostics message present Only if diagnostics is enabled by the parame ters and a diagnostics message is active Spe...

Страница 17: ...17 1 Product Description Base modules Base modules The following base modules can be used as termi nals for connecting the XN 1RS232 Figure 3 XN S4x SBBS base module Designation With tension clamp co...

Страница 18: ...rge voltage 4 kV Pollution degree 2 TOP connection technology Tension clamp or screw connection Protection class IP20 Insulation stripping length 8 0 to 9 0 mm 0 32 to 0 36 inch Max wire range 0 5 to...

Страница 19: ...ls for a 9 pole submin D plug 24 23 22 21 14 13 12 11 TxD RxD GND SHLD RTS CTS Pin No Signal designation 1 DCD Data Carrier Detect 2 RxD Receive Data 3 TxD Transmit Data 4 DTR Data Terminal Ready 5 GN...

Страница 20: ...1 Product Description Base modules 20 XI ON XN 1RS232 09 2011 MN05002013Z EN www eaton com...

Страница 21: ...in a 128 byte receive memory and then transferred in segments to the PLC via the module bus and the gateway This is transferred in an 8 byte format as follows 6 bytes are used to contain the user dat...

Страница 22: ...eters The diag nostics data indicates the cause of the communi cation fault Chapter Diagnostics This bit must be reset by the user program with STATRES in the process output data field TX_CNT_ACK 0 3...

Страница 23: ...te transmit buffer The PROFIBUS DP fieldbus transmission is carried out in the following 8 byte format 6 bytes are used to contain the user data 1 byte contains signals for triggering the clearing of...

Страница 24: ...the receive buffer STATRES 0 1 The STATRES bit is used for resetting the STAT bit of the process input data The STAT bit is reset from 0 to 1 with the tran sition from 1 to 0 falling edge If this bit...

Страница 25: ...sferred with every data segment of the process output data The sequence of the TX_CNT values is 00 01 10 11 00 decimal 0 1 2 3 0 A faulty sequence indicates that data segments are missing TX_BYTE_CNT...

Страница 26: ...en consist of the following elements 2 bytes of gateway diagnostics device related diagnostics 64 bits of ID specific diagnostics n 3 bytes of channel specific diagnostics n number of channels with ac...

Страница 27: ...tructure of the DTE A frame error is output if the param eter setting number of data bits stop bits type of parity is incorrect data flow control error Bit 5 0 o k 1 The data terminal device connected...

Страница 28: ...it to the data format of the data terminal device 4 bytes are used for the module parameters Table 10 Meaning of the data bits parameters Parameter designation Value Name of the values Description dia...

Страница 29: ...0 bps 8 19200 bps 9 28800 bps 10 38400 bps 11 57600 bps 12 115200 bps 13 reserved 14 reserved 15 reserved data flow control 0 None The data flow control is deacti vated 1 XON XOFF Software handshake X...

Страница 30: ...so that the number of bits set to 1 data and parity bit together is even stop bits 0 1 Number of stop bits 1 2 XON character 0 255 17 XON character This character is used to start the data transfer of...

Страница 31: ...odule The transfer format is 8 bytes in length consisting of 2 bytes of control data and 6 bytes of user data The data range of the data bytes to be transmitted or received within the Siemens S7 PLC i...

Страница 32: ...r trans mitting data to the XN 1RS232 module Figure 5 Transmit function block for the SIMATIC S7 software Enable Quit RxD_K1 TxD_K1 SendData Max_Bytes RETVAL SendDataCnt RETVALSFC14 RETVALSFC15 Busy F...

Страница 33: ...propriate modules The address ranges are selected and displayed in the hardware configurator of the software WORD format is used for the addresses and therefore consists of 2 bytes Example The decimal...

Страница 34: ...urn values of the function status or error code 0 Everything OK No error 8008hex Parameter error 8010h Communication error Hardware error 8020h Communication error Data flow control error 8040h Commun...

Страница 35: ...data from the XN 1RS232 module Figure 6 Receive function block for the SIMATIC S7 software Enable Quit RxD_K1 TxD_K1 SendData Max_Bytes RETVAL SendDataCnt RETVALSFC14 RETVALSFC15 Busy FBSENDRSXXX BOOL...

Страница 36: ...e appropriate modules The address ranges are selected and displayed in the hardware configurator of the software WORD format is used for the addresses and therefore consists of 2 bytes Example The dec...

Страница 37: ...of the function status or error code 0 Everything OK No error 8008hex Parameter error 8010hex Communication error Hardware error 8020hex Communication error Data flow control error 8040hex Communicati...

Страница 38: ...simultaneously transmitting data to and receiving data from the XN 1RS232 module Figure 7 Send receive function block for the SIMATIC S7 software RxD_K1 TxD_K1 RecvData MaxRecvData SendData MaxSendBy...

Страница 39: ...ffer is preset The buffer is always successfully cleared if EnableRecv 0 Quit 1 0 No influence on the module function CLRBuf_Send 1 The clearing of the transmit buffer is preset The buffer is always s...

Страница 40: ...ormat is used for the addresses and therefore consists of 2 bytes Example The decimal value 258 must be transferred in hexadecimal code as W 16 102 RecvData Start address for storing receive data This...

Страница 41: ...the function status or error code 0000hex Everything OK No error 8008hex Parameter error 8010hex Communication error Hardware error 8020hex Communication error Data flow control error 8040hex Communic...

Страница 42: ...2 Integrating the Module in PROFIBUS DP Function blocks for SIMATIC S7 42 XI ON XN 1RS232 09 2011 MN05002013Z EN www eaton com...

Страница 43: ...ibute names which also correspond to the rele vant functions The bits and bit groups assigned to the names indi cate numerical values The meaning of the numerical values is explained in the descriptio...

Страница 44: ...3Z EN www eaton com Table 18 Structure of the data bytes in the DeviceNet ACTIVE MODE 2byte ctrl status header PDInp B7 B6 B5 B4 B3 B2 B1 B0 Byte0 Status STATUS TX COUNT ACKNOWLEDGE RX COUNT RX BYTE C...

Страница 45: ...provide numer ical values The meaning of the numerical values is explained in the description of the attributes Table 19 Structure of the data bytes in the DeviceNet with ACTIVE MODE 1byte ctrl statu...

Страница 46: ...th RXBUF FLUSH 1 will be ignored If STATUS RESET CONTROL 0 With RXBUF FLUSH 1 The receive buffer is cleared 2 TXBUF FLUSH The TXBUF FLUSH bit is used for clearing the transmit buffer If STATUS RESET C...

Страница 47: ...ec hex Attribute name Access Type Description 100 64hex CLASS REVISION G UINT Contains the revision number of this class Maj Rel x 1000 Min Rel 101 65hex MAX INSTANCE G USINT Contains the number of th...

Страница 48: ...empty base module 1 XI ON module is plugged in 102 66hex TERMINAL SLOT NUMBER G USINT The slot number of the base module base module to the right of the gateway No 1 belonging to the module Correspon...

Страница 49: ...odule 34 22hex 32 bit counter module 40 28hex SSI module 49 31hex motor starter module as DOL or reversing starter 50 32hex electronic motor starter 65 41hex RS232 module 66 42hex RS485 422 module 67...

Страница 50: ...UNT is transferred together with every data segment of the process input data The sequence of the RX COUNT values is 00 01 10 11 00 decimal 0 1 2 3 0 A faulty sequence indicates that data segments are...

Страница 51: ...is not faulty 116 74hex PROCCESS DIAGNOS TICS DATA G BYTE Diagnostics information The diagnostics data is part of the process input data if ACTIVE MODE 1 and 2bytes ctrl status header has been set Di...

Страница 52: ...eserved 117 75hex RX DATA G ARRAY OF BYTE Receive data Number 0 to 7 bytes 118 76hex RX DATA AND RELEASE G ARRAY OF BYTE Receive data and an acknowledge ment of successful receipt The receive buffer i...

Страница 53: ...STATUS bit of the process input data The STATUS bit is reset from 0 to 1 with the transition from 1 to 0 falling edge If this bit is 0 all changes in the data fields TX BYTE CNT TX CNT and RX CNT ACKN...

Страница 54: ...232 09 2011 MN05002013Z EN www eaton com 125 7Dhex TX DATA AND RELEASE S ARRAY OF BYTE Send data The transfer is initiated immediately The transmit buffer is immediately released again Number 0 to 7 b...

Страница 55: ...faulty Bit 5 0 ok 1 handshake error The data terminal device connected to the XN 1RS232 module is not responding to the XOFF or RTS handshake The internal receive buffer can overflow Bit 6 0 ok 1 fra...

Страница 56: ...data section is 6 bytes 129 81hex BIT RATE G S ENUM USINT Bit transmission rate 0 reserved 1 300 bit s 2 600 bit s 3 1200 bit s 4 2400 bit s 5 4800 bit s 6 9600 bit s 7 14400 bit s 8 19200 bit s 9 288...

Страница 57: ...dd The parity bit is set so that the number of bits set to 1 data and parity bit together is odd 2 even The parity bit is set so that the number of bits set to 1 data and parity bit together is even 1...

Страница 58: ...3 Integrating the Module in DeviceNet RS232 Module Class VSC114 58 XI ON XN 1RS232 09 2011 MN05002013Z EN www eaton com...

Страница 59: ...with the XN 1RS485 422 modules As there is not a corresponding device profile for this module group all objects created for addressing these modules are stored in the manufacturer specific range of th...

Страница 60: ...rdware can be selected The number of data bits embedded in the telegram the type of parity the number of stop bits the bit transmis sion rate and the XON XOFF character used must be configured in the...

Страница 61: ...he Module in CANopen Object description Table 25 Structure of the data bytes Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 0 Disable Diag nostics Disable Reduced Control X Select RS485 BitRate...

Страница 62: ...5601hex 1 DisableR educedControl 0 The diagnostics messages are not part of the process input data object 5601hex Bytes1 to 7 can therefore be used for the user data 1 The diagnostics messages are con...

Страница 63: ...rol Flow control 0 The data flow control is deactivated 1 Software handshake XON XOFF activated 2 Hardware handshake RTS CTS activated 3 reserved Data Data bits 0 The number of data bits is 7 1 The nu...

Страница 64: ...acter 0 255 17 XON character This character is used to start the data transfer of the data terminal device with software handshake acti vated XOFFChar XOFF character 0 255 19 XOFF character This chara...

Страница 65: ...is entered in a 128 byte receive buffer and then transferred in segments to the communication partner via the module bus and the gateway This is transferred in an 8 byte format as follows 6 bytes or...

Страница 66: ...x Table 29 Structure of the data bytes with DisableReducedControl 0 in object 5600hex PDInp B7 B6 B5 B4 B3 B2 B1 B0 Byte 0 Status STAT TX_CNT_ACK RX_CNT RX_BYTE_CNT Byte 1 Diagnos tics Buf Ovfl Frame...

Страница 67: ...e TX_CNT was transferred together with the last data segment of the process output data The value TX_CNT_ACK is a confirmation of successful acceptance of the data segment using TX_CNT RX_CNT 0 3 The...

Страница 68: ...1RS232 module is not responding to the XOFF or RTS handshake The internal receive buffer can overflow buffer overflow 1 HwFailure Bit 4 0 ok 1 Hardware error The module must be exchanged as the EEPROM...

Страница 69: ...partner in the XN 1RS232 module is entered in a 64 byte transmit buffer This is transferred in an 8 byte format as follows 6 bytes or 7 bytes are used to contain the user data With the corresponding p...

Страница 70: ...object 5600hex Table 33 Structure of the data bytes with DisableReducedControl 0 in object 5600hex PZDA B7 B6 B5 B4 B3 B2 B1 B0 Byte 0 Control STATRES RX_CNT_ACK TX_CNT TX_BYTE_CNT Byte 1 reserved RX...

Страница 71: ...e and transmit buffer by the RXBUF FLUSH TXBUF FLUSH RX_CNT_ACK 0 3 The value RX_CNT_ACK is a copy of the value RX_CNT The value RX_CNT was transferred together with the last data segment of the proce...

Страница 72: ...le configuration required The first XN 1RS232 module generates in the TPDO18 a mapping entry object 5601hex Si 1 and in RPDO18 a mapping entry object 5602hex Si 1 The second XN 1RS232 module generates...

Страница 73: ...y an XN 1RS232 module Error code Name Byte 3 Byte 4 Byte 5 Meaning 7000hex Additional modules Module no Channel no always 1 08hex Parameter error 7000hex Additional modules Module no 1 10hex Hardware...

Страница 74: ...ialisation function block of the CoDeSys software MXpro for the CANopen fieldbus system xDisableReducedCrtl xSelectRS485 usiDataRate usiFlowControl usiDataBits usiParity dwAbortCode XION_INIT_4CAN_RSX...

Страница 75: ...his CAN driver number is typically 0 usiNodeAdress Node address 0 to 127 usiNoOfRSxxxModul This number selects the nth RSXXX_module xDisableDiag Detailed description of the structure and content of th...

Страница 76: ...iled wRetVal FB return variable Value 8000h fault 8010hex Incorreect CAN driver number 8011hex Incorrect node address 8012hex Incorrect slot number 8013hex Value for the data rate DataRate not defined...

Страница 77: ...lock Figure 9 Transmit receive function block for the CoDeSys software MXpro RxData TxData RxBuffer MaxRecvData TxBuffer MaxSendData RetVal SendDataCnt BusySend XION_HTB_RSXXX BOOL POINTER TO ARRAY 0...

Страница 78: ...learing of the receive buffer is preset The buffer is always successfully cleared if EnableRecv 0 Quit 1 0 No influence on the module function CLR_Buf_Tx 1 The clearing of the transmit buffer is prese...

Страница 79: ...or n corresponds to the number bytes in the message telegram and can be up to 65535 Possible data types are inputs outputs markers and data function blocks MaxRecvData Maximum number of bytes to be re...

Страница 80: ...possible RETVAL Return values of the function status or error code 0000hex Everything OK No error 8008hex Parameter error 8010hex Communication error Hardware error 8020hex Communication error Data fl...

Страница 81: ...ssioning the Module in xSystem XION_HTB_RSXXX data handling function block Note It should be ensured without fail that the memory provided with RxBuffer and TxBuffer is enough or more than enough for...

Страница 82: ...5 Commissioning the Module in xSystem XION_HTB_RSXXX data handling function block 82 XI ON XN 1RS232 09 2011 MN05002013Z EN www eaton com...

Страница 83: ...diagram Submin D plug 19 Connection type 14 Cover label 13 CTS 19 D Data buffer 14 Data exchange 10 Data transmission PLC 10 DCD 19 Degree of protection 15 DeviceNet Integration 43 57 Diagnostics CAN...

Страница 84: ...Operating temperature 15 P Parameter definition 9 Parameters CANopen 60 74 DeviceNet 56 PROFIBUS DP 28 Power loss 14 Power supply 9 Process input CANopen 65 DeviceNet 43 PROFIBUS DP 21 Process output...

Страница 85: ...SIMATIC S7 38 Storage temperature 15 Submin D plug Signal types 19 T Technical data Base modules 18 XN 1RS232 14 15 Transmission channels 14 Transmission procedure 9 Transmit buffer Clear 24 46 Size...

Страница 86: ...Index 86 XI ON XN 1RS232 09 2011 MN05002013Z EN www eaton com...

Отзывы: