background image

© 2005 HMS Industrial Networks.  

AB7665 User Manual

Anybus-X

Ethernet to J1939 Gateway

User Manual

Part No

.

 

AB7665

Rev 1.00

HMS Industrial Networks
Pilefeltsgatan 93-95
SE-302 50 Halmstad
Sweden

Phone +46 (0) 35 17 29 00
Web www.anybus.com

Содержание Anybus-X

Страница 1: ...rial Networks AB7665 User Manual Anybus X Ethernet to J1939 Gateway User Manual Part No AB7665 Rev 1 00 HMS Industrial Networks Pilefeltsgatan 93 95 SE 302 50 Halmstad Sweden Phone 46 0 35 17 29 00 We...

Страница 2: ...stallation 2 1 Installation and Operation Requirements 2 1 Power and Network Connections 2 2 Connecting Power 2 3 Connecting J1939 2 4 Connecting to Ethernet 2 5 Configuration Port Connector 2 5 Confi...

Страница 3: ...f Reset Option 6 10 Example Application 7 1 Scenario 1 EtherNet IP 7 1 Ethernet Network Configuration 7 2 J1939 Network Configuration 7 2 J1939 I O Configuration 7 3 Scenario 2 Modbus TCP 7 6 Ethernet...

Страница 4: ...Industrial Networks AB7665 User Manual Connectors 10 1 Power 10 1 J1939 10 2 Ethernet RJ45 10 3 Configuration RS 232 9 Pin D Subminiature 10 4 Warranty 11 1 Support 12 1 Technical Product Assistance...

Страница 5: ...orks assumes no responsibility for errors that may appear in this document There are many applications of the Anybus X module Those responsible for the use of this device must satisfy themselves that...

Страница 6: ...mmon Industrial Protocol CIP Specification ODVA www odva org Modbus Application Protocol Specification Modbus IDA www modbus org Modbus Messaging on TCP IP Implementation Guide Modbus IDA www modbus o...

Страница 7: ...TCP protocols are supported The Anybus X acts as an EtherNet IP Adapter allowing J1939 data to be transferred to an EtherNet IP Scanner device using I O or explicit messages The module acts as a Modb...

Страница 8: ...read through the other network interface The Anybus X appears as a single device on either network using standard proto col mechanisms No special or extended protocol features are required of the devi...

Страница 9: ...figurable over a range of addresses J1939 Transport Protocol for transmission and reception of large mes sages 9 1785 bytes Both connection based RTS CTS and broadcast BAM are supported Configurable C...

Страница 10: ...ction Ethernet cabling and power PC or other controller with access to the Ethernet network 24 VDC power connection PC to execute Anybus X Configuration Tool BWConfig RS 232 null modem cable to connec...

Страница 11: ...ore details on the connectors There is an 8 position DIP switch on the end of the module that can be used to select a portion of a default IP address that may be used to permit an intranet con nection...

Страница 12: ...rning Explosion Hazard Substitution of components may impair suitabil ity for Class 1 Division 2 Warning Explosion Hazard When in hazardous locations turn off power before replacing or wiring modules...

Страница 13: ...er and Network Connections The power and network connections to the Anybus X are made on the end of the module Figure 2 1 indicates the location of each connector Figure 2 1 Anybus X Power and Network...

Страница 14: ...ated on the end of the module The female terminal block connector is provided with the Anybus X Connections to be made are illustrated in Figure 2 2 The Anybus X requires 24 volts DC power The module...

Страница 15: ...e are illustrated in Figure 2 3 The CAN High and Low signal lines should be connected to the CAN High and Low connections respectively on all devices on the network The signal lines should not be swap...

Страница 16: ...shown in Figure 2 4 The Anybus X is connected to a PC for configuration using a null modem cable A null modem cable has pins 2 and 3 swapped so that the PC s Transmit line is connected to the Anybus...

Страница 17: ...Anybus X Configuration Tool BWConfig The Anybus X Configuration Tool allows you to configure the parameters associ ated with the Ethernet and J1939 network interfaces as well as to set up the con tent...

Страница 18: ...aunch BWConfig from the Anybus X Configuration folder in the Windows Start Menu When BWConfig is started it will attempt to locate a Anybus X module on one of the PC serial ports If a module is found...

Страница 19: ...Configuration 3 3 2005 HMS Industrial Networks AB7665 User manual BWConfig User Interface The Anybus X Configuration Tool s user interface is shown in Figure 3 1 Figure 3 1 BWConfig User Interface...

Страница 20: ...ration of the content and layout of the I O tables New File Create a new Anybus X configuration for the selected type of module Open File Open a previously saved Anybus X configura tion Save File Save...

Страница 21: ...module Add I O Point Add a new input or output data point to the J1939 I O configuration Edit I O Point Change the parameters associated with the selected input or output data point in the J1939 I O c...

Страница 22: ...ss is ignored If a DHCP server is not found this address is used Valid IP address Subnet Mask The subnet mask the module will use on the Ethernet network If DHCP is enabled and a DHCP server is found...

Страница 23: ...means to detect the loss of the Modbus Scanner from the Ethernet network If the option is enabled and no Modbus requests are received within the configured timeout period the module Run Idle status wi...

Страница 24: ...addresses that it can use if it is unable to claim the first address See Address Management on page 6 1 for details on how the address list is used Each address must be in the range 1 253 Up to 10 ad...

Страница 25: ...cification The NAME value can be set 2 ways using the J1939 Device NAME dialog directly or by component To set the NAME value directly simply type the desired value of each of the 8 bytes in hexadecim...

Страница 26: ...that are received on the J1939 network The Output table holds data that is written by a device on the Ethernet network to be transmitted on the J1939 network Output data points are associated with da...

Страница 27: ...ure 3 4 This dialog is used to enter new or edit existing data points in the I O configuration Note that the output edi tor is shown the input editor does not have the message priority parameter The p...

Страница 28: ...Output 0 3967 bits 0 495 bytes Data Length The amount of the data to be transferred between the I O table and the J1939 message data The length is in bits It is displayed as both bits and the corresp...

Страница 29: ...The default priority is 6 0 7 Target Address The J1939 network address associated with the data point If this is an input data point messages received must match both the PGN and source address to be...

Страница 30: ...0xFF If this is an output data point this is the rate at which the associated message will be trans mitted on the network If the Update Rate is set to 0 the message will only be transmitted when a Req...

Страница 31: ...s on J1939 The Active Diagnostics DM1 and Previously Active Diagnostics DM2 can be monitored by the Anybus X Configuring diagnostic tables is done through the input data points in much the same manner...

Страница 32: ...hold This will be the maximum amount of diagnostics that can be placed into the table If the J1939 diagnostic message from the device contains more diagnostics than fit in the table only those that f...

Страница 33: ...yte IP address In this case it is n IP address 192 168 1 n Subnet mask 255 255 255 0 Gateway address 0 0 0 0 No gateway set This is a private address and can only be used on a local intranet In such a...

Страница 34: ...ootP When DHCP BootP is enabled and a DHCP or BootP server is found the IP address Subnet mask and Gateway address is automatically configured by the DHCP BootP server It can be enabled using the Anyb...

Страница 35: ...er manual Setting the IP Address Using the Web Page The ethernet addresses can also be configured using the Status and Settings web page resident on the Anybus X The Status and Settings web page appea...

Страница 36: ...e that a power cycle or module reset is required for the changes to take effect Note If your web browser is configured to cache web pages it may appear that the Anybus X has not changed address after...

Страница 37: ...s X is powered up Figure 3 8 IP Configuration Initialization Sequence Start DIP Switch 0 No Yes IP 192 168 1 n Sub 255 255 255 0 No Gateway Valid Configuration File Yes No DHCP Enabled Yes No Use conf...

Страница 38: ...for DeviceNet and ControlNet to exchange data between nodes Product Features The Anybus X contains EtherNet IP Adapter Class functionality As an I O Server it can respond to requests for I O messages...

Страница 39: ...in the Input Table IN of the Anybus X and becomes the EtherNet IP Input data to the EtherNet IP scanner EtherNet IP Output data from the scanner is stored in the Anybus X s Output Table OUT and trans...

Страница 40: ...ion sizes when connecting to the input and output assemblies can be set according to the size of the configured I O data tables configured plus the status and command words in the I O assemblies see t...

Страница 41: ...messages The input data in the assembly is 504 bytes long however only the size of the configured input data table will be used the remaining space will be filled with 0 The status register is a bit...

Страница 42: ...bytes long however only the size configured for the output data table will be used the remaining space will be ignored The Run Idle register is a bit string with the following bit definitions Byte Off...

Страница 43: ...onjunction with the Sys tem Run Mode bit in the Command register to deter mine the run mode of the Anybus X Both bits must be set for the Anybus X to be in Run mode otherwise the module will be in Idl...

Страница 44: ...00 Offline 0x8001 Online 0x8002 Initializing 2 2 16 bit bit string J1939 Interface Faults The current fault status of the J1939 interface See the bit definitions below 4 2 UINT CAN Error Counter The n...

Страница 45: ...been issued 3 CAN Data Overrun The CAN controller has detected a receive packet overrun This is a sticky bit it will not be cleared until a Clear Fault command has been issued 4 J1939 Transport Protoc...

Страница 46: ...therNet IP scanner and the Anybus X the Generic EtherNet IP device type should be used Figure 4 2 shows an example RSLogix configuration for an Ethernet to J1939 Gateway module Note that the sizes for...

Страница 47: ...e Run Program mode of the controller The ControlLogix applica tion sees byte 4 as the beginning of the output assembly The output size must be set to 4 bytes less than the actual assembly size to acco...

Страница 48: ...ule can handle 8 simultaneous connections Supported Commands The following Modbus TCP commands are supported by the Anybus X Function Code Function Name Class Affects Address Method 1 Read Coils 1 IN...

Страница 49: ...request that was received The following exception codes will be used by the Anybus X Exception Code Name Description 01 Illegal Func tion The module does not support the function code in the query 02...

Страница 50: ...h 001h 0010h 0011h 0012h 0013h 0014h 0015h 0016h 001Eh 001Fh 0FDh 0FD0h 0FD1h 0FD2h 0FD3h 0FD4h 0FD5h 0FD6h 0FDEh 0FDFh Table 5 3 Input Addressing Word Bit Address 400h 4000h 4001h 4002h 4003h 4004h 4...

Страница 51: ...es To reference the first word of the Input Table use address 000h To reference the 10th word of the Input Table use address 009h To reference the first word of the Output Table use address 400h 1024...

Страница 52: ...east significant byte first Hence all data in the I O tables is assumed by the J1939 nodes to be stored as lit tle endian Modbus TCP is a big endian protocol values are transmitted most significant by...

Страница 53: ...pe of this section is to explain how the configuration of the address list affects address man agement Single Configured Address If a single address is configured in the address list the module will a...

Страница 54: ...ss Claimed PGN 0x00EE00 sent both destination specific and broadcast The response is dependent on the current address management state and is discussed below If the module has successfully claimed an...

Страница 55: ...t are not set from the Output table ranges in the buffer that are not referenced by output data points are set to 1 The message length is set according to the size of the data point with the largest m...

Страница 56: ...n address used for message transmission is dependant on the associ ated output data point configuration or the request message whichever caused the transmission The rules for destination addressing fo...

Страница 57: ...gured for an input data point will be parsed according to the configured data points Input data points are combined according to PGN and Target Address All input data points with matching PGN and Targ...

Страница 58: ...Input data points configured with a non zero update rate have timeout indication in the case where an associated message is not received within the configure update rate The timeout indication is all...

Страница 59: ...tion will be opened with the destination node and the message sent using RTS CTS Request To Send Clear To Send mechanisms For a complete discussion of BAM and RTS CTS refer to the J1939 21 specificat...

Страница 60: ...diagnostic tables are handled See J1939 Diagnostic Tables on page 3 15 for configuration details Diagnostic Table Format The active and previously active diagnostic tables have the same format The for...

Страница 61: ...ble contains information for a single diagnostic J1939 SPN FMI Each table entry is pair of 16 bit words with bit fields as described below Word Bit Description 0 0 2 J1939 SPN bits 16 18 0 3 7 J1939 F...

Страница 62: ...ack online is to power cycle the module Option Enabled If the bus off reset option is enabled the JMI will re initialize the CAN controller after a bus off condition is detected Once the controller is...

Страница 63: ...onitored by the controller The data required by the system controller is contained in the PGN 4608 message as 2 12 bit values The values are packed into the first 3 bytes of the message as shown in Fi...

Страница 64: ...t to that shown in the dialog J1939 Network Configuration The J1939 network configuration dialog from BWConfig is shown in Figure 7 4 Refer to Configuration on page 3 1 for more details on BWConfig Th...

Страница 65: ...the diagnostic table should be located at an offset 100 bytes into the table and contain up to 20 diagnostic entries The resulting J1939 input configuration from BWConfig is shown below 2 data points...

Страница 66: ...as shown in Figure 7 6 Notice that the table length has been set to 20 entries The target address specifies that the diagnostics of the ECM at address 10 are to be monitored by this data point The dia...

Страница 67: ...e 16 bits of data in a single PGN message the resulting configuration is quite simple It is shown in Figure 7 7 The single data point specifies that 2 bytes of data from the beginning of the Out put t...

Страница 68: ...ller The data required by the system controller is contained in the PGN 4608 message as 2 12 bit values The values are packed into the first 3 bytes of the message as shown in Figure 7 9 below The dat...

Страница 69: ...lt to that shown in the dialog J1939 Network Configuration The J1939 network configuration dialog from BWConfig is shown in Figure 7 11 Refer to Configuration on page 3 1 for more details on BWConfig...

Страница 70: ...ince Modbus registers are addressed as 16 bit words each Modbus register occupies 2 bytes in the Input table Placing values into Modbus registers requires that values be placed on even byte boundaries...

Страница 71: ...sage was configured as shown in Figure 7 13 Notice that the table length has been set to 20 entries The target address specifies that the diagnostics of the ECM at address 10 are to be monitored by th...

Страница 72: ...shown in Figure 7 14 The single data point specifies that 2 bytes of data from the beginning of the Out put table is going to be copied into the first 2 bytes of the message The message will be trans...

Страница 73: ...LED is flashing red and green for an extended period of time count the number of red and green flashes and call technical support Figure 8 1 Anybus X LEDs State Summary Description Flashing Green Idle...

Страница 74: ...interface is initial izing and getting ready to come online Solid Green Online A J1939 network address has been suc cessfully claimed and the module is online and active Flashing Red Green Online wit...

Страница 75: ...dule is in progress Table 8 3 Ethernet Module Status LED States State Summary Description Off No Power The module has no power or no IP address assigned Solid Green Network OK and commu nicating There...

Страница 76: ...ne and participating in J1939 network activ ity Table 8 5 J1939 General Status Values Bit Description 0 The address claim has failed The JMI was unable to claim a unique J1939 network address and join...

Страница 77: ...tion can be changed from this page The module status is updated approximately every 2 5 seconds Status Assembly The status assembly is an assembly object instance that is accessible from Ether Net IP...

Страница 78: ...uncil Directive 89 336 EC Electromagnetic Compatibility EMC by applying the following standards in whole or in part documented in a technical construction file EN50081 2 EMC Generic Emission Standard...

Страница 79: ...works AB7665 User manual Mechanical Specifications Mechanical Rating IP20 NEMA 1 Dimensions I O Data Sizes Input Maximum 508 bytes Input Output Maximum 508 bytes Output Status 10 bytes of Status data...

Страница 80: ...es PDU1 destination specific PDU1 broadcast PDU2 Addressing Claims and protects a single configurable address Self configurable using a list of addresses Transport Protocol Sessions Support of J1939 t...

Страница 81: ...5 HMS Industrial Networks AB7665 User manual Connectors Power Use Phoenix connector part number MSTB 2 5 2 ST 5 08 ABGY Figure 10 1 Power Connector Pin Connection 1 24 VDC 2 24 VDC Common Table 10 1 P...

Страница 82: ...art number MSTB 2 5 5 ST 5 08 ABGYAU Note The 24VDC connections on the J1939 and Power connectors are physically connected internally The module may be powered from either set of pins Pin Signal 1 24...

Страница 83: ...Connectors 10 3 2005 HMS Industrial Networks AB7665 User manual Ethernet RJ45 Pin Signal 1 TD 2 TD 3 RD 4 Termination 5 Termination 6 RD 7 Termination 8 Termination Table 10 3 RJ45 Pinout...

Страница 84: ...nectors 10 4 2005 HMS Industrial Networks AB7665 User manual Configuration RS 232 9 Pin D Subminiature Pin Signal 1 NC 2 Receive 3 Transmit 4 NC 5 Signal Ground 6 NC 7 NC 8 NC 9 NC Table 10 4 RS232 9...

Страница 85: ...N MERCHANTIBILITY FITNESS FOR A PARTICULAR PURPOSE TITLE AND NONINFRINGMENT THESE LIMITATIONS SHALL APPLY NOTWITHSTANDING THE FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITED REMEDY PROVIDED IN THIS AGREEM...

Страница 86: ...Anybus X technical support at 46 0 35 17 29 00 You can obtain technical assistance by email at support anybus com You can also obtain technical assistance and download documentation and firm ware upd...

Отзывы: