The Home of PLC    
Home | PLC Fundamental | PLC Program | Siemens PLC | Mitsubishi PLC | Omron PLC | Panasonic PLC | PLC Articles
  Current Position:Home>A-B PLC>Content
Data Highway and it's application in Allen-Bradley plc5
Source: Author: Date: 2009-10-22  

Allen-Bradley has developed the Data Highway II (DH+) network for passing data and programs between PLCs and to computers. This bus network allows up to 64 PLCs to be connected with a single twisted pair in a shielded cable. Token passing is used to control traffic on the network. Computers can also be connected to the DH+ network, with a network card to download programs and monitor the PLC. The network will support data rates of 57.6Kbps and 230 Kbps

The DH+ basic data frame is shown in See The Basic DH+ Data Frame. The frame is byte oriented. The first byte is the DLE or delimiter byte, which is always $10. When this byte is received the PLC will interpret the next byte as a command. The SOH identifies the message as a DH+ message. The next byte indicates the destination station - each node one the network must have a unique number. This is followed by the DLE and STX bytes that identify the start of the data. The data follows, and its' length is determined by the command type - this will be discussed later. This is then followed by a DLE and ETX pair that mark the end of the message. The last byte transmitted is a checksum to determine the correctness of the message.

 

The Basic DH+ Data Frame

The general structure for the data is shown in See Data Filed Values. This packet will change for different commands. The first two bytes indicate the destination, DST, and source, SRC, for the message. The next byte is the command, CMD, which will determine the action to be taken. Sometimes, the function, FNC, will be needed to modify the command. The transaction, TNS, field is a unique message identifier. The two address, ADDR, bytes identify a target memory location. The DATA fields contain the information to be passed. Finally, the SIZE of the data field is transmitted.

 

Data Filed Values

Examples of commands are shown in See DH+ Commands for a PLC-5 (all numbers are hexadecimal). These focus on moving memory and status information between the PLC, and remote programming software, and other PLCs. More details can be found in the Allen-Bradley DH+ manuals.

 

DH+ Commands for a PLC-5 (all numbers are hexadecimal)

The ladder logic in See Ladder Logic for Reading and Writing to PLC Memory can be used to copy data from the memory of one PLC to another. Unlike other networking schemes, there are no login procedures. In this example the first MSG instruction will write the message from the local memory N7:20 - N7:39 to the remote PLC-5 (node 2) into its memory from N7:40 to N7:59. The second MSG instruction will copy the memory from the remote PLC-5 memory N7:40 to N7:59 to the remote PLC-5 memory N7:20 to N7:39. This transfer will require many scans of ladder logic, so the EN bits will prevent a read or write instruction from restarting until the previous MSG instruction is complete.

 

Ladder Logic for Reading and Writing to PLC Memory

The DH+ data packets can be transmitted over other data links, including ethernet and RS-232.


 
[Add to Favorit] [Refer to] [Comment(0Item)] Back to Top Print Close this Window  
Username:New UserPassword: Anonymous
Contents: Less than 250 words. Please follow the applicable rules and laws.
  Latest Comment:
  Popular Articles
·Example of Connecting to an Al
·EXCEL applications in Symbols
·How to use Bit Shifts (BSL) in
·Upgrade Allen Bradley Panel Vi
·Symbol Programming with Allen
·Usage of OSF in a SLC 5/03
·Photoeye Make and Break Logic
·ABB PLC software
·Anti Tie Down Logic
·An Example of Connecting a Us
·Programming Application - Dial
·Ladder Logic to Control an Ana
  Related Articles
·Security problem of Internet
·Introduction of PLC Enclosures
·Programming Application - Dial
·Functional Alarms with Allen B
·How to use Bit Shifts (BSL) in
·3 Phase Motor Startup beginner
·Anti Tie Down Logic
·Photoeye Make and Break Logic
·EXCEL applications in Symbols
·Usage of OSF in a SLC 5/03
·Upgrade Allen Bradley Panel Vi
·Symbol Programming with Allen