+ All Categories
Home > Documents > DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine...

DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine...

Date post: 11-Aug-2020
Category:
Upload: others
View: 4 times
Download: 0 times
Share this document with a friend
16
TS8000 DeviceNet Slave Configuration Application Note TS8923U001
Transcript
Page 1: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

TS80

00

DeviceNet Slave Configuration Application Note

TS8923U001

Page 2: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

© Copyright SSD Drives, Inc. 2006

All rights strictly reserved. No part of this document may be stored in a retrieval system, or transmitted in any form or by any means to persons not employed by an SSD Drives company without written permission from SSD Drives, Inc.

Although every effort has been taken to ensure the accuracy of this document it may be necessary, without notice, to make amendments or correct omissions. SSD Drives cannot accept responsibility for damage, injury, or expenses resulting therefrom.

Companies, names and data used as examples herein are fictitious unless otherwise stated. All trademarks and copyrights are acknowledged as the property of their respective owners.

Page 3: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

Application Overview

This document describes the necessary steps to configure the TS8000 HMI to communicate as a slave on the DeviceNet network. The configurations described in this document all require the installation of an 8000/DN/00 DeviceNet option card in the TS8000 HMI. Please note that the TS8000 DeviceNet card functions as a DeviceNet slave only, and that a third-party DeviceNet master is required to establish and configure the actual DeviceNet network. The following example requires the usage of an Allen Bradley 1756-ControlLogix PLC, along with RSLogix5000 and RSNetWorx for DeviceNet software.

Please note that this application is not intended to teach the novice user how to specifically develop and implement a DeviceNet network from scratch. This is an advanced application that assumes that the user has previous knowledge and experience with DeviceNet networks. Its purpose is solely to aid the user in setting up a TS8000 HMI to function as a DeviceNet slave. For more background information on DeviceNet, visit: http://literature.rockwellautomation.com/idc/groups/literature/documents/um/dnet-um004_-en-p.pdf or http://www.ab.com/networks/devicenet.html

Configuring The TS8000 HMI

1. Configure the 8000/DN/00 DeviceNet option card.

• Install the 8000/DN/00 option card in the TS8000 as per the provided instructions. For more information, please refer to: HA471506 – TS8000 DeviceNet Installation Manual.

• Navigate to the Communications section of DSI8000.

• In the tree on the left, select TS8000 from the top of the tree.

• Select the Edit button at the right, and select the DeviceNet Option Card from the dialog box.

Page 1 http://www.SSDDrives.com

Page 4: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

• In the tree at the left, select DeviceNet Interface from under the DeviceNet Option Card item.

• At the right, select Edit, from the Driver Picker section and select the DeviceNet Predefined Group 2 Server driver from the popup window.

• Select the DeviceNet Interface from the tree at the left, and set the appropriate Station Address, Baud Rate, and I/O Poll Size.

• Make sure the Data Format Settings are set to Transform: Swap Bytes In Word.

Page 2 http://www.SSDDrives.com

Page 5: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

• Note that the I/O Poll Size is determined by the settings in both the DeviceNet Master and the registered .EDS file for the 8000/DN/00. By default, the read and write poll sizes are set for 32 words in each direction. Changing these settings will be addressed in the Modifying An EDS File section at the end of this document.

• Select the DeviceNet device from the tree at the left, and add two Gateway Blocks: one for Read Data and one for Write Data.

• Select the first Gateway Block and select the Edit button at the right. Set the block for I/O Polled Command Data, starting at element PollC 00000. Note that for 32-bit data systems, such as this, the data type needs to be set for Word as Long. For 16-bit data systems such as the PLC-5 or SLC-500, select Word as Word.

• Set the block size for 32, and the Direction for: Device To TS8000. This will be the Read Data block.

• Set the second block for: I/O Polled Respose Data 00000, with a length of 32, and the Direction set for: TS8000 To Device. This will be the Write Data Block.

Page 3 http://www.SSDDrives.com

Page 6: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

2. Configure the Data Tags.

• Create a sample tag for to read and write each value from the DeviceNet network. These tags will be Internal Integers. In this example, we have defined thirty-two tags to read and thirty-two tags to write integer values to the ControlLogix PLC.

• Navigate back to the Communications section, and assign the tags to the Gateway Blocks. Select the polled memory location at the left, and double-click the tag on the right to map it. Note that the tags must be mapped to every other polled memory location, due to the 32-bit Integer addressing of the DeviceNet network.

Page 4 http://www.SSDDrives.com

Page 7: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

3. Configure the User Interface.

• Create an Integer text field for each data tag.

• Navigate to the Programming section and create a simple loopback program that sets each Write Tag equal to the corresponding Read Tag. Make sure to call this program “On Update” from the User Interface section.

• Save and download this configuration to the TS8000.

Page 5 http://www.SSDDrives.com

Page 8: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

Configuring the RSNetWorx for DeviceNet Software

RSNetWorx for DeviceNet is used to setup and manage a DeviceNet network. To begin the configuration, launch RSNetWorx for DeviceNet from your development PC.

• Start a new network by selecting: File / New / DeviceNet Configuration.

• Download the 8000/DN/00 EDS file (G3.EDS) from the SSD Drives website at: http://www.ssddrives.com/usa/software/G3.eds. Save this file to a location on your hard drive.

• Register the EDS file by selecting: Tools / EDS Wizard / Register an EDS file(s).

• Select Register a single file, and browse to the location where you saved the G3.EDS file.

• Make sure that the .EDS file validation is successful.

Page 6 http://www.SSDDrives.com

Page 9: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

• If desired, select a new image file to represent the 8000/DN/00.

• Review the EDS registration, and finish the process.

Page 7 http://www.SSDDrives.com

Page 10: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

• Select the DeviceNet Master by navigating from tree at the left. Navigate to: DeviceNet / Category / Communication Adapter / 1756-DNB/A. Select the appropriate Major Rev and drag it into the network workspace at the right.

• Select the TS8000 Slave by navigating from tree at the left. Navigate to: DeviceNet / Vendor / Red Lion Controls / Generic Device. Select the G3-SERVER and drag it into the network workspace at the right.

• Configure the master to add the slave device to the scanlist. Right click the DNB module and select properties. From the Scanlist tab, select the G3-SERVER from the Available Devices pane, and add it to the Scanlist pane. Select the Edit I/O Parameters button.

• Make sure that the Strobed or Change of State boxes are not selected. In the Polled section, verify that the Input and Output sizes are 128 bytes. These must match the I/O Poll Size selections made above in DSI8000. In DeviceNet networks, 4 bytes constitute a full word. Therefore the 128 byte selection represents 32 full words of addressable 32-bit data. For more information on this, see the Modifying An EDS File section at the end of this document.

• Select the Input tab. Verify that the four words of G3-SERVER data are mapped to YourDNBSlot:I.Data[0…31]. From the Output tab, verify that the four words are mapped to YourDNBSlot:O.Data[0…31].

Page 8 http://www.SSDDrives.com

Page 11: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

• Apply the changes, and save your RSNetWorx for DeviceNet configuration.

Page 9 http://www.SSDDrives.com

Page 12: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

Configuring the Allen Bradley ControlLogix PLC

Allen Bradley ControlLogix PLC’s are programmed with RSLogix 5000 programming software. To begin the DeviceNet configuration, launch RSLogix 5000 from your development PC.

• Create a ControlLogix program containing a valid DeviceNet Scanner. In this application a 1756-DNB was used.

• Configure the DeviceNet Scanner to be address 0. Make sure to set up the 32-bit Input and Output memory spaces for a size of at least 32 words (to match the configuration made above in both DSI8000 and RSNetWorx for DeviceNet.

• Select the RSNetWorx tab, and navigate to the RSNetWorx for DeviceNet configuration that you have previously created. Open the configuration from here and download it to the network.

Page 10 http://www.SSDDrives.com

Page 13: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

• In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required output is always: Local:YourDNBSlot:0.CommandRegister.Run

• Create a few rungs by taking the DeviceNet Input data, Local:2:I.Data[0…31], and adding 1 to them. Store the results in Local:2:O.Data[0…31]. Based on the program previously written in the TS8000, data will travel from the PLC to the HMI and back, incrementing by 1 with each update of the DeviceNet network.

• Save and download this configuration to the ControlLogix PLC.

Page 11 http://www.SSDDrives.com

Page 14: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

Wiring The DeviceNet Network

Please note that all DeviceNet networks require the usage of a termination resistor at the two end nodes on the network. This resistor is typically a ¼ watt 120ohm resistor. It is recommended to place the resistor between CAN H (White) and CAN L (Blue) of the DeviceNet connection.

Modifying An EDS File

DeviceNet nodes use an Electronic Data Sheet to describe the communications parameters available at each device. Unfortunately the EDS file does not detail the full communications possibility of the TS8000 HMI and its 8000/DN/00 option card.

By design, each DeviceNet master can handle a maximum of 124 Input words and 123 Output words. In the default EDS file for the 8000/DN/00, the Input and Output data sizes are set at 128 bytes each. This equates to thirty-two words of data input and thirty-two words of data output. These values can be set higher or lower, but it is important to note that if the default values are changes, they might conflict with other DeviceNet implementations.

Each time EDS parameters are modified, the EDS file will need to be re-registered within RSNetWorx for DeviceNet. These changes will also need to be reflected in the following locations:

• DSI8000 driver configuration.

• RSNetWorx master node Scanlist, Input Table, and Output Table.

• ControlLogix PLC DeviceNet Scanner configuration.

The default EDS file is detailed below. To modify the Poll Command and Poll Response message sizes, locate the Input and Output sections which relate to the Polled Command (Output2) and Polled Response (Input2). Modify the size parameters as needed and then save the file.

Page 12 http://www.SSDDrives.com

Page 15: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

$ Red Lion Controls G3 EDS www.redlion.net

[File] DescText = "G3";

CreateDate = 04-03-2006;

CreateTime = 12:00:00; ModDate = 08-08-2006;

ModTime = 12:00:00;

Revision = 1.1; [Device]

VendCode = 176;

VendName = "Red Lion Controls"; ProdType = 0x00;

ProdTypeStr = "Generic";

ProdCode = 0x100; MajRev = 1;

MinRev = 1;

ProdName = "G3-SERVER"; Catalog = "";

[IO_Info]

Default = 0x0003; PollInfo = 0x0003,

2, $ Producing Connection (Input).

2; $ Consuming Connection (Output). StrobeInfo = 0x0003,

1, $ Producing Connection (Input).

1; $ Consuming Connection (Output). Input1 = 8, $ The size is configurable 0-8.

0, $ Number of significant bits.

0x0003, $ Compatible IO Mask. "Bit-Strobe Response",

6, $ Path Size.

"20 04 24 66 30 03", $ Assy Obj Inst 102 Attr 3 "Bit-Strobe Response";

Input2 = 128, $ The size is configurable. 0, $ Number of significant bits. 0x0003, $ Compatible IO Mask.

"Polled Response",

6, $ Path Size. "20 04 24 68 30 03", $ Assy Obj Inst 104 Attr 3.

"Polled Response";

Output1 = 1, $ The size is configurable 0-1. 1, $ Number of significant bits.

0x0003, $ Compatible IO Mask.

"Bit-Strobe Command", 6, $ Path Size.

"20 04 24 67 30 03", $ Assy Obj Inst 103 Attr 3

"Bit-Strobe Command"; Output2 = 128, $ The size is configurable.

0, $ Number of significant bits.

0x0003, $ Compatible IO Mask.

Page 13 http://www.SSDDrives.com

Page 16: DSI8000 Programming Syntax - HA471055U002 · • In the Main Task tree, open the Main Routine Ladder Logic file. Create a rung of ladder to enable the DeviceNet network. The required

DeviceNet Slave Configuration Application Note

"Polled Command",

6, $ Path Size. "20 04 24 69 30 03", $ Assy Obj Inst 105 Attr 3.

"Polled Command";

[Assembly] Revision = 2;

Assem1 = "Data Read",

"20 04 24 64 30 03", $ Path to data block 512, $ Size is configurable

0, $ Descriptor

,, 512,;

Assem2 = "Data Write",

"20 04 24 65 30 03", $ Path to data block 512, $ Size is configurable

0, $ Descriptor

,, 512,;

Assem3 = "Bit-Strobe Response",

"20 04 24 66 30 03", $ Path to data block 8, $ Size is configurable

0, $ Descriptor

,, 8,;

Assem4 = "Bit-Strobe Command",

"20 04 24 67 30 03", $ Path to data block 1, $ Size is configurable

0, $ Descriptor

,, 1,;

Assem5 = "Polled Response",

"20 04 24 68 30 03", $ Path to data block 128, $ Size is configurable 0, $ Descriptor

,, 128,;

Assem6 = "Polled Command",

"20 04 24 69 30 03", $ Path to data block 128, $ Size is configurable

0, $ Descriptor

,, 128,;

Page 14 http://www.SSDDrives.com


Recommended