HMS AnyBus-X J1939 User Manual

HMS AnyBus-X J1939 User Manual

Modbus interface
Hide thumbs Also See for AnyBus-X J1939:

Advertisement

Quick Links

AnyBus-X
J1939 to Modbus Interface

User Manual

Doc. id: SCM-7801-026
revision 1.12
HMS Industrial Networks
www.hms-networks.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AnyBus-X J1939 and is the answer not in the manual?

Questions and answers

Summary of Contents for HMS AnyBus-X J1939

  • Page 1: User Manual

    AnyBus-X J1939 to Modbus Interface User Manual Doc. id: SCM-7801-026 revision 1.12 HMS Industrial Networks www.hms-networks.com...
  • Page 2: Table Of Contents

    J1939 Network Configuration ........4-2 J1939 I/O Configuration ..........4-3 Modbus Interface ............. 5-1 Network Communication ..........5-1 Supported Modbus Functions ........5-2 Diagnostic Subfunctions..........5-3 Modbus Addressing ........... 5-7 Diagnostic Registers ..........5-9 SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 3 I/O Data Sizes ............8-3 Modbus Specifications ..........8-3 J1939 Specifications ..........8-3 Connectors..............9-1 Power and Network 15-Pin D-Subminiature....9-1 Configuration 25-Pin D-Subminiature......9-2 Warranty ..............10-1 Support ..............11-1 Technical Product Assistance ........11-1 SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 4: Preface

    Preface iii Preface About This Manual This manual discusses the use of the AnyBus-X J1939 to Modbus Interface. It describes how to install, configure, and operate the module. Important User Information The data and illustrations found in this document are not binding. We reserve the right to modify our products in line with our policy of product development.
  • Page 5: Related Documentation

    Table 1-1 Related Documentation Document Revision Date Revision Change Description 2002-09-06 1.00 Initial Release 2002-12-12 1.10 First revision 2002-12-13 1.11 Minor corrections 2003-01-07 1.12 Updated company related information Table 1-2 Document Revision Log SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 6: Anybus-X Module Description

    AnyBus-X Module Description Overview The AnyBus-X J1939 to Modbus Interface (AnyBus-X) allows you to monitor and control data on a J1939 heavy duty vehicle network using a Modbus RTU master device. Data from J1939 messages are mapped to I/O table locations, mak- ing them addressable using standard Modbus read and write commands.
  • Page 7: Theory Of Operation

    No special, or extended, protocol features are required of the devices on either network to read and write the data flowing through the Passage- Way; all cross-network activity is transparent to the devices on either network. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 8: J1939 Features

    Support of all commonly used Modbus functions for reading and writing I/O data and diagnostics. • Overall module, Modbus, and J1939 status and diagnostics accessible through Modbus diagnostic functions and addressable registers. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 9: System Requirements

    DIN rail to mount the AnyBus-X. Required Software • AnyBus-X Configuration Tool software (BWConfig) to configure the AnyBus-X. • BWConfig requires that the PC be running Microsoft Windows 95, 98, NT, or 2000. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 10: Hardware Description

    AnyBus-X Module Description Hardware Description The AnyBus-X J1939 to Modbus Interface has a 15-pin D-Subminiature connec- tor for power and network connections. This connector has pins for module power, J1939 CAN connections, and Modbus RS-485 connections. See “Installa- tion” Page 2-1 for details on using this connector.
  • Page 11: Installation

    The AnyBus-X requires 24 volts DC power. Power is applied to pins 9 and 10 of the 15-pin D-Sub connector. The module will start immediately when power is applied (There is no On/Off switch on the module). SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 12 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 swapped on any device connections. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 13: Configuration Port Connector

    Note: The AnyBus-X does not make use of the modem control signals specified for a DTE connector. Connecting the module through devices, such as isolation modules, which assume control of these lines may cause the BWConfig commu- nications to be unreliable. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 14: Configuration

    Chapter 3 Configuration 3-1 Configuration This chapter describes how the AnyBus-X J1939 to Modbus Interface is config- ured using the AnyBus-X Configuration Tool (BWConfig). Detailed descriptions of each configurable parameter in the AnyBus-X are provided as well as how they are set in the tool.
  • Page 15 Make sure that the mod- ule is powered and the connection is made, then press the Refresh button on the BWConfig tool bar; this will cause the tool to rescan the serial ports for a module. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 16 Configuration 3-3 BWConfig User Interface The AnyBus-X Configuration Tool’s user interface is shown in Figure 3-1. Figure 3-1 BWConfig User Interface SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 17 AnyBus-X module. This will overwrite any configuration that is displayed on the tool’s user interface. Download Configuration Send the configuration shown on the tool’s user interface to the AnyBus-X module. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 18 J1939 I/O configuration. Flash Update Perform a field upgrade of the AnyBus-X module’s firmware. Note: Care should be taken when upgrading firmware, an incomplete update could cause irreparable harm to the module. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 19: Modbus Network Configuration

    Table 3-1 Modbus Network Configuration Parameters Note: The Modbus serial interface is configured during AnyBus-X initialization. If the network configuration is changed, the module must be power cycled before the changes will take effect. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 20: J1939 Network Configuration

    If the option is disabled, the module will remain offline after a bus-off condition until it is power cycled. For most applications, this option should be left disabled. Table 3-2 J1939 Network Configuration Parameters SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 21 Each component of the NAME value is broken out and displayed in the lower fields of the dialog; components can be edited individually using these fields. Pressing the Apply button will update either set of fields to reflect the changes that were made. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 22: J1939 I/O Configuration

    Figure 3-3. Note that both Input and Output data points have the same parameters. Figure 3-3 J1939 I/O Data Point Configuration The parameters associated with I/O data points are described in Table 3-3. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 23 Input table. If this is an output data point, a message with this PGN will be built and transmitted using data from the Output table . Table 3-3 J1939 I/O Data Point Parameters SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 24 If the Update Rate is set to 0, the message will only be transmitted when a Request PGN is received for the con- figured PGN. Table 3-3 J1939 I/O Data Point Parameters (Continued) SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 25 Note: The J1939 I/O configuration is initialized at module bootup and whenever a new configuration is downloaded to the module from BWConfig. Any changes made to the I/O configuration will take place immediately after the configuration is downloaded to the module. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 26: Example Application

    The data from the system controller is to be produced using PGN 256. The data is a 16-bit value and will be placed into the first 2 bytes of the message data. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 27: Modbus Network Configuration

    The NAME should be set according to the vendor and application where the module is being used based on the J1939 specification. The network address list is set to a single address of 128. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 28: J1939 I/O Configuration

    Both data points monitor the network for messages with PGN 4608 and any source address (Target Address 255 specifies “don’t care” source address). The resulting Input table provides the following Modbus register addresses: 30001 Value #1 30002Value #2 SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 29 (Target Address 255) so that it can be seen by everyone on the network. The Modbus register address 40001 will be used by the system controller to set the data for the message. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 30: Modbus Interface

    Network Communication Protocol The AnyBus-X J1939 to Modbus Interface supports the Modbus RTU serial pro- tocol. The module acts as a Modbus slave on the network. i.e. The module does not transmit any messages on the network unless they have been requested by the Modbus master.
  • Page 31: Supported Modbus Functions

    Set the value of a word in the Output table Register based on the AND and OR Mask provided. The register is set using the following formula: ∧ ∨ ∧ ANDMask ORMask ANDMask Table 5-1 Supported Modbus Function Codes SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 32: Diagnostic Subfunctions

    Read Modbus slave message counter. This is the number of Modbus messages that have been addressed to the AnyBus-X since bootup or the last counter reset. Table 5-3 Supported Modbus Diagnostic Subfunctions SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 33 This is the number of times a CAN frame has been received before the previous CAN frame has been handled since bootup or the last counter reset. Table 5-3 Supported Modbus Diagnostic Subfunctions (Continued) SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 34 The AnyBus-X is online and is actively participating in J1939 net- work activity. The J1939 network interface is initializing and has not yet joined the network. Table 5-5 J1939 Status Register Values SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 35 A transmit message queue has overflowed at least one time since bootup or the last fault reset. 7-15 Not used. Table 5-6 J1939 Fault Register Bit Definitions SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 36: Modbus Addressing

    The first byte of the table is addressed as one, word address two accesses the third byte of the table, and so on. Input Input Register Table Offset 30001 30002 31024 2046 Holding Output Register Table Offset 40001 40002 41024 2046 SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 37 1-8 address the first byte of the table, bits 9-16 the second byte, and so on. Input Input Table Offset (byte, bit) 10001 10002 19999 1249,7 Coil Output Table Offset (byte, bit) 00001 00002 09999 1249,7 SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 38: Diagnostic Registers

    AnyBus-X. It can be written using Modbus functions 6 and 16. Register Description 42001 Clear diagnostic registers and counters, and reset module faults. Table 5-8 Holding Register Addresses for Diagnostics SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 39: Interaction With I/O Tables

    In an attempt to alleviate most of the frustration that can occur trying to translate data in the controller used as the Modbus master, the AnyBus-X auto- matically swaps word (register) data as it is transferred between the I/O tables and the Modbus network. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 40: J1939 Interface

    J1939 network using that address. If an address cannot be claimed, the module moves to the next address in the list and attempts to claim that address. If no addresses in the list can be claimed, the module remains offline. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 41: Communications Methods

    Communications Methods The J1939 network interface supports reception and transmission of the following J1939 message types in accordance to the J1939-21 specification. •PDU1 destination specific •PDU1 broadcast •PDU2 (broadcast) SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 42: Message Transmission

    Automatic transmission for a message will occur Update Time milliseconds after the last transmission of the message, regardless of whether the last transmission was automatic or a response to a request PGN. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 43 • If the transmission is due to a request and the request was broadcast, the message will be broadcast. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 44: Receiving Messages

    Input table according to the data point configura- tion. Data of the configured length is copied from the configured message buffer offset to the configured Input table offset. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 45: Transport Protocol For Large Messages

    The BAM and RTS/CTS sessions may be active concurrently. Addi- tional BAM sessions will be ignored as long as the BAM session is active. Additional RTS connection requests will be denied until the current RTS/ CTS session is completed. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 46: Bus-Off Reset Option

    CAN errors. THIS OPTION SHOULD NEVER BE ENABLED WHEN THE MODULE IS USED ON A CONTROL NETWORK OF ANY KIND! IT SHOULD BE RESERVED FOR MONITORING NETWORKS. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 47: Status And Diagnostics

    Major, unrecoverable, faults are indicated by a series of green and red flashes. If the AnyBus-X Status LED is flashing red and green for an extended period of time, count the number of red and green flashes and call technical support. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 48 The Modbus interface is initialized and waiting for requests from a Modbus master. Solid Green Connected The Modbus interface is actively pro- cessing requests from a Modbus mas- ter. Table 7-3 Modbus Status LED States SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 49: Status Codes

    A serial communication parity error has been detected. A serial communication framing error has been detected. A CRC error on a Modbus message has been detected. 7-15 Not used. Table 7-5 Modbus Error Status Bit Definitions SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 50 A transmit message queue has overflowed at least one time since bootup or the last fault reset. 7-15 Not used. Table 7-7 J1939 Error Status Bit Definitions SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 51: Specifications

    EN50081-2-EMC Generic Emission Standard, Part 2 - Industrial Envi- ronment • EN50082-2-EMC Generic Immunity Standard, Part 2 - Industrial Envi- ronment This product is intended for use in an industrial environment. Electrical Specifications DC Power Operating voltage: 7-32 VDC. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 52: Mechanical Specifications

    Specifications 8-2 Mechanical Specifications Mechanical Rating IP20/NEMA 1 Dimensions Figure 8-1 AnyBus-X J1939 to Modbus Interface Mechanical Dimensions SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 53: I/O Data Sizes

    Self-configurable using a list of addresses. Transport Protocol Sessions Support of J1939 transport protocol for large messages with the following limita- tions: •Single outgoing session (either BAM or RTS/CTS). •1 incoming BAM and 1 incoming RTS/CTS concurrently. SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 54: Connectors

    Modbus RS-485 A Not used Modbus RS-485 B Not used J1939 CAN Shield Not used J1939 CAN Low Not used J1939 CAN High Not used Table 9-1 Power and Network Connector Pin Definitions SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 55: Configuration 25-Pin D-Subminiature

    Signal Ground Not used Not used Not used Not used Not used Not used Not used Not used Not used Not used Not used Not used Table 9-2 Configuration Connection Pin Definitions SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...
  • Page 56: Warranty

    Warranty 10-1 Warranty HMS Industrial Networks warrants all new products to be free of defects in material and workmanship when applied in the manner for which they were intended and according to HMS Industrial Networks’ published information on proper installation. The Warranty period is one year from the date of shipment.
  • Page 57: Support

    F a x : + 8 1 4 5 4 7 6 0 3 1 5 O n l i n e : w w w . h m s - n e t w o r k s . c o m SCM-7801-026 © 2002 HMS Industrial Networks Document Id:...

Table of Contents