background image

AnyBus-X

J1939 to Modbus Interface

User Manual

Doc. id: SCM-7801-026 

revision 1.12

HMS Industrial Networks

www.hms-networks.com

Содержание AnyBus-X J1939

Страница 1: ...AnyBus X J1939 to Modbus Interface User Manual Doc id SCM 7801 026 revision 1 12 HMS Industrial Networks www hms networks com...

Страница 2: ...dware Description 1 5 Installation 2 1 Power and Network Connector 2 1 Configuration Port Connector 2 3 Configuration 3 1 AnyBus X Configuration Tool BWConfig 3 1 Modbus Network Configuration 3 6 J193...

Страница 3: ...6 6 Bus Off Reset Option 6 7 Status and Diagnostics 7 1 AnyBus X LEDs 7 1 Status Codes 7 3 Specifications 8 1 Environmental Specifications 8 1 EMC Directive Compliance 8 1 Electrical Specifications 8...

Страница 4: ...rks HMS Industrial Networks 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 s...

Страница 5: ...rotocol Reference Manual Schneider Automation www modicon com J1939 Recommended Practice SAE www sae org Table 1 1 Related Documentation Date Revision Change Description 2002 09 06 1 00 Initial Releas...

Страница 6: ...e 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 Examples of AnyBus X applic...

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

Страница 8: ...of large mes sages 9 1785 bytes Both connection based RTS CTS and broadcast BAM are supported Configurable CAN bus off reset option will reset the network interface and attempt to return to online whe...

Страница 9: ...odule J1939 network connection Modbus RTU network connection Modbus RTU master device 24 VDC power connection PC to execute AnyBus X Configuration Tool BWConfig RS 232 null modem cable to connect PC r...

Страница 10: ...ded for connection to a PC running the AnyBus X Configuration Tool This is a standard RS 232 DTE connection and will require a null modem cable pins 2 and 3 swapped to connect the mod ule to a PC seri...

Страница 11: ...Connections to be made are illustrated in Figure 2 1 Power Connection 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 imme...

Страница 12: ...he signal lines should not be swapped on any device connection Note Some RS 485 equipment uses and descriptors to label the signal lines The corresponds to A The corresponds to B J1939 Network Connect...

Страница 13: ...n 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 X s Receive line and the PC s Receive line is con nected to the AnyBus...

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

Страница 15: ...ol Launch 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 fo...

Страница 16: ...onfiguration 3 3 2002 HMS Industrial Networks Document Id SCM 7801 026 BWConfig User Interface The AnyBus X Configuration Tool s user interface is shown in Figure 3 1 Figure 3 1 BWConfig User Interfac...

Страница 17: ...on Configuration of the content and layout of the I O tables Open File Open a previously saved AnyBus X configu ration Save File Save the current AnyBus X configuration to a file Refresh Device Status...

Страница 18: ...parameters associated with the selected input or output data point in the J1939 I O configuration Remove I O Point Delete the selected input or output data point from the J1939 I O configuration Flash...

Страница 19: ...the master device will use when sending commands to the module All modules on the network must have a unique address 1 247 Baud Rate The network baud rate All devices on the net work must use the same...

Страница 20: ...the J1939 81 specification Network Address List The list of addresses that the module is able to use on the J1939 network The module will only claim a single address at a time This is the list of poss...

Страница 21: ...he meaning and format of the data contained in the NAME value is defined in the J1939 81 specification The NAME value can be set 2 ways using the J1939 Device NAME dialog directly or by component To s...

Страница 22: ...data from mes sages that are received on the J1939 network The Output table holds data that is written by the Modbus master and will be transmitted on the J1939 network Output data points are associa...

Страница 23: ...its 0 2047 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 corresponding byte and...

Страница 24: ...e Rate The desired update rate for the data point in milliseconds If this is in input data point the data point is expected to be updated a message received with matching PGN and address within the co...

Страница 25: ...ge data where the data associated with the data point begins This is the location where data will be trans ferred in and out of the message buffer The offset is in bits It is displayed as both bits an...

Страница 26: ...tem 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 4 2 below The data from the system controller is t...

Страница 27: ...onfig The AnyBus X s Modbus network address must be set to an unused address on the Modbus network The master connection time out has been set to 5 seconds J1939 Network Configuration The J1939 networ...

Страница 28: ...es into Modbus registers requires that values be placed on even byte boundaries in the Input table 0 2 4 The resulting J1939 input configuration from BWConfig is shown below 2 data points have been de...

Страница 29: ...e the resulting configuration is quite simple It is shown in Figure 4 6 The single data point specifies that 2 bytes of data from the first word of the Out put table is going to be copied into the fir...

Страница 30: ...ollowing serial communication parameters Baud Rates 4800 9600 or 19200 Parity None Even or Odd Stop Bits 1 or 2 Modbus Frame Delimiting The AnyBus X s Modbus interface utilizes quiet bus time to delim...

Страница 31: ...nput table 5 Force Single Coil Set the state of a single bit in the Output table 6 Preset Single Register Set the value of a single word in the Output table 7 Read Exception Status Read the exception...

Страница 32: ...See Modbus Diagnostic Register on page 5 5 for details on this register 10 Clear diagnostic registers and counters and reset module faults 11 Read Modbus bus message counter This is the number of mess...

Страница 33: ...ails on this value 32 Read J1939 fault register See J1939 Fault Register on page 5 6 for details on this value 33 Read the J1939 CAN error counter This is the number of times the CAN controller error...

Страница 34: ...the Modbus master is active 2 The AnyBus X is in Run mode The bit cleared indicates Idle mode 3 A serial communication receive overrun error has been detected 4 A serial communication parity error has...

Страница 35: ...st one time since bootup or the last fault reset 2 The CAN controller has reported a bus off condition at least one time since bootup or the last fault reset 3 A CAN receive overrun condition was dete...

Страница 36: ...areas of the I O tables that are configured with J1939 I O data points are addressable If a Modbus request is made to an address outside of the configured I O table space an exception response will b...

Страница 37: ...odbus functions that use Bit addressing will address the I O tables by bits Bits 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 0 0...

Страница 38: ...s on page 5 3 for an explanation of each diagnostic value The following register address is defined to reset diagnostic information and faults in the AnyBus X It can be written using Modbus functions...

Страница 39: ...requested address This data will be the value that was placed there by the last write to the location by either network interface When a Modbus request to write data to the Output table is received th...

Страница 40: ...he scope 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...

Страница 41: ...Address Claimed PGN 0x00EE00 sent both destination specific and broadcast The response is depen dent on the current address management state and is discussed below If the module has successfully claim...

Страница 42: ...t Address All bits in the message buffer that 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 t...

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

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

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

Страница 46: ...e back online is to power cycle the module Option Enabled If the bus off reset option is enabled the AnyBus X will re initialize the CAN controller after a bus off condition is detected Once the contr...

Страница 47: ...is flashing red and green for an extended period of time count the number of red and green flashes and call technical support Figure 7 1 AnyBus X LEDs State Summary Description Off No Power No power t...

Страница 48: ...k but faults have been detected Check the J1939 status codes to determine the cause of the fault Solid Red Offline The module is not participating in the J1939 network Flashing Red Offline with Faults...

Страница 49: ...l format to make them easier to decipher Modbus General Status Modbus Error Status Value Description Initializing The Modbus network interface is initializing Offline The Modbus interface is initializ...

Страница 50: ...network activity 1 The CAN error counter has exceeded its warning limits at least one time since bootup or the last fault reset 2 The CAN controller has reported a bus off condition at least one time...

Страница 51: ...is tested to meet the Council 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 Ge...

Страница 52: ...ifications 8 2 2002 HMS Industrial Networks Document Id SCM 7801 026 Mechanical Specifications Mechanical Rating IP20 NEMA 1 Dimensions Figure 8 1 AnyBus X J1939 to Modbus Interface Mechanical Dimensi...

Страница 53: ...en or Odd Stop bits 1 or 2 J1939 Specifications Message Types Supports transmission and reception of the following message types PDU1 destination specific PDU1 broadcast PDU2 Addressing Claims and pro...

Страница 54: ...9 1 Power and Network 15 Pin D Sub Connector Pin Connection Pin Connection 1 Not used 9 24 VDC Common 2 Not used 10 24 VDC 3 Not used 11 Modbus RS 485 A 4 Not used 12 Modbus RS 485 B 5 Not used 13 J1...

Страница 55: ...Pin Connection 1 Shield 14 Not used 2 Transmit Data 15 Not used 3 Receive Data 16 Not used 4 Not used 17 Not used 5 Not used 18 Not used 6 Not used 19 Not used 7 Signal Ground 20 Not used 8 Not used 2...

Страница 56: ...DESIGN 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 A...

Страница 57: ...46 0 35 17 29 09 Online www hms networks com HMS America Email us support hms networks com Tel 1 773 404 2271 Fax 1 773 404 1797 Online www hms networks com HMS Germany Email ge support hms networks c...

Страница 58: ......

Отзывы: