Home

BL remote - DeviceNet™-MASTER USER MANUAL

image

Contents

1. Figure 28 Input data 1 2 map for input data mapping of the station Byte net Bit 15 14 3 2 11 10 9 8 7 6 5 4 3 2 1 0 0A15 04 14 0A13 0A12 1 04 10 9 8 0 7 0 6 0 5 0 4 3 2 04 1 0 0 E Word1 0815 08 4 0843 0812 0811 0810 089 08 8 08 7 0B 6 0B 5 0B 4 08 3 2 08 1 08 0 Word2 DeviceNet Slave Adr 11 Byte 1 DeviceNet Slave Adr 11 Byte 0 Word3 DeviceNet Slave Adr 14 Byte 1 DeviceNet Slave Adr 14 Byte 0 Word4 DeviceNet Slave Adr 22 Byte 1 DeviceNet Slave Adr 22 Byte 0 F Word5 DeviceNet Slave Adr 63 Byte 1 DeviceNet Slave Adr 63 Byte 0 For detailed information about status control word see online help DeviceNet online process data E Status Word of the station F Input data of the modules in the DeviceNet subnet DeviceNet addr 11 to addr 63 see also I O data mapping for the example station Figure 29 Ouput data 1 3 map for output data mapping of the station Byte 1 Byten Bit 15 4 13 12 11 10 9 8 7 6 ar 1 2 4 Wordo 0A15 14 0413 0412 04 10 0429 8 OA 04 6 04 5 4 3 04 2 04 1 0A 0 Word1 DeviceNet Slave Adr 11 Byte 1 Devic eNet Slave Adr 11 Byte 0 Word2 DeviceNet Slave Adr 14 Byte 1 DeviceNet Slave Adr 14 Byte 0 Word3 DeviceNet Slave Adr 22 Byte 1 DeviceNet Slave Adr 22 Byte 0 H Word4 DeviceNe
2. 2 Description of symbols used Leer iere e 3 General information 4 4 Notes concerning planning installation of this product 4 D301118 BL remote DeviceNet master 0209 0 1 About this Manual Documentation concept 0 2 This manual contains information about the DeviceNet master function integrated in TURCK l O products A DeviceNet connector on the device can be used to access a DeviceNet subnet with up to 63 manufacturer independent DeviceNet nodes detailed information see chapter 2 The following chapters contain a short DeviceNet master function description and informa tion about the handling of the DeviceNet master function for different primary fieldbus systems EtherNet IP and Modbus TCP All information hardware firmware etc about the respective devices and their connection to the primary fieldbus can be found in different device manuals EtherNet IP FXEN user manual for EtherNet IP TURCK Documentation No English 0301155 BL67 user manual for EtherNet IP TURCK Documentation No English 0300888 Modbus TCP BL67 user manual for Modbus TCP TURCK Documentation No English 0300815 D301118 BL remote DeviceNet master 0209 Description symbols used Industri A
3. None Installed 9 m gt Controller IP DN Scope FXEN IP Show Show All El Controller Tags Controller Fault Handler i Power Up Hander EtherNellP with AB ETHERNET 5 6 Tasks EtherNellP with AB ETHERNET 68 Maintask EtherNellP with DNET 0 AB ETHERNET pd pide Local 1756 DNB 5 Program Tags Local 1756 4 E Unscheduled Programs 1756 DNB St Motion Groups gt 5 MESSAGE Ungrouped Axes INT Add On Instructions FXEN_with_DN_VSC_access EW BODL B FXEN_with_DN_VSC_access ER BOOL FXEN with 5 access DN BODL Add On Defined FXEN with DN VSC access ST BOOL amp Ci Predefined wih access EN BOOL Gy Module Defined FXEN with DN VSC access BOOL Trends FXEN_with_DN_VSC_access EN_CC BOOL Configuration wih access ERR INT 1756 Backplane 1756 A7 011756455 PROJ_FXEN IP DN FXEN_with_DN_VSC_access EXERR DINT 8 1 1756 DNB DNET with DN 5 SRC SINT 8 2 1756 EtherNetIP FXEN F FXEN with 5 access DN LEN INT as Ethernet FXEN_with_DN_VSC_access REG_LEN INT 8 1756 EtherNetTP ce Ea SEE EEE FKEN with
4. 6 Configuration of the EXEI neni ERR EYE ER GER EY E PS 8 O mapping report PACTware I O ASSISTANT 3 10 Downloading the 13 data mapping for the example station 15 Examples for process data ACCES 18 data eval talOr trenes 18 Output data forcing an output 19 Explicit Messaging within the PLC program eere eere eee nenne 20 Controller Tag Ge tint 20 MESSAGE Controller Dag e ceo Ra Se i Eee 20 Start bit for 21 Data array for the MSG instruction 22 The Emm 23 Entering the MSG INStRUCTION ER 23 Triggering the MSG INStrUCTION 25 Example for VSC ACCESS m 26 Read out product name FXEN IM16 0001 IP DN 26 VSC access to DeviceNet master or DeviceNet 29 Example Read out the slave list from the master 29 Example Read out the Maj Min revision of DeviceNet
5. 3 0x0800 2048 0203 0202 0201 0200 0x3000 15616 DeviceNet Master command high byte Devi eNet Master command low byte E 0x3D01 15617 DeviceNet node adr 1 Byte 1 DeviceNel node 1 Byte 0 0 2002 15618 DeviceNet node 3 Byte 1 DeviceNet node adr 3 Byte 0 4 D Description 1 Column Register n Column Modul number register Correct position not available in this fimware version C Control word of the station D Output data of the modules in the DeviceNet subnet DeviceNet addr 1 to addr 22 Note Please observe The IO ASSISTANT mapping is depicted in byte format The mapping results have to be converted into the respective data format 5 10 D301118 BL remote DeviceNet master 0209 Modbus communications configuration Industri A I O data mapping for the example station In order to be able to calculate the l O data for the DeviceNet nodes their special data assignments have to be considered For the data mapping of the DeviceNet subnet please read l O mapping report via IO ASSISTANT FDT DTM report via IO ASSISTANT FDT DTM Note 1 The in and output sizes of the respective DeviceNet nodes be found in the documentation data sheet manual etc for these products mapping for a FDNL CSG88 T MAC ID 1 Input Bit 7 Bit 6 Bit
6. FXEN IP v Show ShowAl 2 a Name 2 Value gt Force Mask sue i Power Up Handler FXEN EtherNellP with DNET C Ei E3 Tasks _ FXEN EtherNellP D 5 68 MainTask __ FXEN EtherNetlP with 4 MainProgram DB Program Tags H MainRoutine Unscheduled Programs erc ES 2 Motion Groups FXEN_with_DN_VSC_access me Ungrouped Axes FXEN_with_DN_VSC_access Flags 1028 Hex Add On Instructions with DN VSC access EW Decimal Types 5 access Decimal i d wh DN 5 access DN Decimal G Add On Defined FXEN with DN VSC access ST Decimal Predefined FXEN with VSC access EN Decimal Cy Module Defined FXEN with DN 5 access TO Decirnal Trends with DN access EN CC Decimal w Nora TE with VSC access ERR 1680000 Hex 0 1756 155 PROJ FEN DN with DN VSC access 1680000 0000 Hex 8 1 1756 DNB DNET with access ERR SRC Decimal 8 2 1756 ENET B EtherNetIP_FxEN FXEN_with_DN_VSC_access DN_LEN 21 Decimal ds Ethernet FXEN_with_DN_ SC_access REQ_LEN Decimal 3 1756 EtherNetiP_F FXEN_with_DN_VSC_access DestinationLink Decimal FJ ETHERNET MODULE FXEN with DN access DestinationNode
7. No irs coh Saia ee Ian pace ho maie Wesdes Cammuncanus Dui Pot me D301118 BL remote DeviceNet master 0209 5 21 Application Example 81 67 with Modbus Server Tester Reading slave inputs and forcing slave outputs To read inputs and force outputs from slaves the method is similar to what is done to change parameters To receive input feedback read function codes are needed To force outputs write function codes are needed For this slave input portion of the example two proximity sensors will be used The sensors will be connected to node 3 input 1 and node 22 input 1 For the slave output portion two arbitrary bits will be forced from two different nodes 1 Click on the Send Frame icon and double click on Function code 04 In the Request Data dialog box for Function Code 4 please enter 3 00 in the Starting Address and 20 in the Quantity of Registers When complete click Finish 2 When the Send Frame dialog box appears make sure Function code 04 checkbox is checked and then press Send The results will then appear Status control Information is enabled still from the previous section Figure 77 Modbus Server Tester Input feedback File View Tests Help from the 2 prox im ity sensors Exchange Control Both sensors Sent 1 Exception 0 Invalid 8 are energized Received 1 Error Q
8. of the connected DeviceNet nodes can easily be determined by using the 5515 TANT Please read the following section I O mapping report via IO ASSISTANT FDT DTM page 3 10 D301118 BL remote DeviceNet master 0209 Configuration of the network in RSLogix 5000 Industri A Note L If the Assembly Instances 101 and 102 the Connection Parameters have to be set to a static in and output size of 128 words each In the Connection tab set the Requested Packet Interval RPI to 10 ms which normally should be the default setting For FXEN the successfully tested RPI range is 5 and higher Figure 24 lil Module Properties Ethernet 67 ETHERNET MODULE 1 1 Set connection options for General Connection Module Info FXEN Requested Packet Interval RPI my ms 1 0 3200 0 ms Inhibit Module Major Fault Controller Connection while in Run Mode Module Fault Status Offline Cancel D301118 BL remote DeviceNet master 0209 3 9 Application example FXEN at Allen Bradley PLC 1 O mapping report via IO ASSISTANT FDT DTM With IO ASSISTANT 3 FDT DTM an EtherNet IP report for each connected EtherNet IP station can be created This EtherNet IP report is part of the station report for an EtherNet IP node and contains mapping tables for the complete I O data EtherNet IP station DeviceNet nodes 1 Created a station report
9. NER M 4 4 uis 4 Configuration of the DeviceNet M 5 DeviceNet configuration with SET button hardware 5 DeviceNet configuration via PACTware M l O ASSISTANT 3 6 Address setting for the DeviceNet M subnet 10 MAC ID of the DeviceNet 10 Baud fate 10 Reset the device to factory 10 Status indicators LED DGNAVION 11 Getting started for the DeviceNet master leer esee ie annua 12 The DeviceNet master the PACTware Nl O ASSISTANT 3 14 D301118 BL remote DeviceNet master 0209 1 1 The DeviceNet master function General information 1 2 The TURCK products with DeviceNet master function provide a full DeviceNet master in addition to their standard primary fieldbus e g EtherNet IP Modbus TCP The TURCK modules work as gateways between their primary fieldbus and DeviceNet Via the DeviceNet master a complete DeviceNet network with up to 63 s
10. 5 Store to device P iet Deutsch Import Filename le alu Simulation English a Diagnostics To continue click Next Do not display channels Remove imported DTMs Channels Up Download Manager Print Additional functions 9 Add device Delete device Properties 192 168 1 11 FXEN IMI6 0001 IP DN C 380007 FXEN IM16 0001 IP DN CS30007 seni RFID amp Command 6 byte Identification 10 Mapping See Station About Station report Local I O and Slave L ce Mode control Accessory 1 t EDS fil m gt Disconnected 0 Data set a Import BL compact files lt lt noname gt Administrator Help about device LE Write device data to File Figure 9 M ware 63 Ni4 DSU online File Edit View Project Device Extras Window Help 2 terization vi Blan EUR 3 2290 Big 3355 DTM after EDS import Adc Rotary Actuator E HOST PC TCP IP g 192 168 1 1 15 FXEN IM16 0001 IP DN Beo G gt Q Ge C9 E Online parameterizatic 2 01 Intern IM16 NEWS Value 1 ugs 11 FDN20 4S 4 56 8in 4out V4 2 14 GN DeviceNet ugs 22 FDNP 508086 TT 8in 8out v4 5 192 168 1 200 5 16 0001 01 Intern XSG16 Input Summary 501 Input Data 502 Input Data SD Input Group Status Invalid SO State s Enable In
11. I O data Industri A The following table represents the scan list of the master Each node which has been scanned as being a part of the subnet is indicated by one bit the order is done by MAC ID 0 no node with this MAC ID found 1 node with the MAC ID found and stored in the master s scan list Table 7 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O Word 1 Node 7 Node 6 Node 5 Node 4 Node 3 Node 2 Node 1 Node 0 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Node 15 Node14 13 Node12 Node11 10 Node9 Node 8 Word 4 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Node 55 Node54 Node53 Node52 Node51 50 Node49 Node 48 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Node 63 Node62 Node61 60 Node59 Node58 Node57 Node 56 The following bits describe each node status They show a list of nodes to which the DeviceNet master could not build up a communication 0 node present 1 node not present Table 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O Word 5 Node 7 Node 6 Node 5 Node 4 Node 3 Node 2 Node 1 Node 0 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Node 15 Node14 13 Node12 Node11 10 Node9 Node 8 Word 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O Node 55 Node54 53 Node52 Node51 50 Node49 Node 8 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10
12. Motion Groups E FXEN with 5 access MESSAGE MSG instruction ZEN 73 Ungrouped Axes XEN star BOOL Gi Add On Instructions 5 Data Types Gi User Defined Strings Add On Defined Predefined Module Defined C Trends 2 Configuration 1756 Backplane 1756 47 fa 0 1756 L55 PROJ IP DN 1 1756 DNB DNET 8 2 1756 EtherNetIP FXEN 25 Ethernet 8 1756 EtherNetiP F fJ ETHERNET MODULE FXEN Monitor Tags Tags 4 0301118 BL remote DeviceNet master 0209 3 21 Application example at Allen Bradley PLC Data array for the MSG instruction 6 The data to be read from the VSCs or to be written to them via the MSG instruction are sent to a data array which has to be defined in the Controller Tags 7 Define this array by adding a SINT of a special data width for example 100 byte to the Controller Tags and enter a name for it in this example FXEN RW Figure 40 Select Data Type Data Types Data ay for the MSG in SELECT ENHANCED 7 SELECTABLE_NEGATE struction SELECTED_SUMMER SERIAL PORT CONTROL 5 ACTION 5 STEP SFC STOP Array Dimensions Dim 1 0 Show Data Types by Groups 3 22 D301118 BL remote DeviceNet master 0209 Explicit Messaging within the PLC program The PLC program
13. FXEN_EtherNetlP_with_DNET I Data 2 0 Decimal Input Word FDN20 45 4 SG MACHD 11 FXEN EtherNetlP with DNET I Data 3 0 Decimal Input Word FONG CSG44 T MAC ID 14 FXEN EtherNetlP with DNET I Data 4 32 Decimal Input Word FONP S0808 G TT MAC ID 22 FXEN EtherNetlP with DNET I Data 5 0 Decimal Input Word NI4 DSU65 2DNet MAC ID 63 FXEN EtherNetlP with DNET O Forced ABE L d BEREPeeiP wh DNETUDas Ic Decimal INTES FXEN_EtherNetIP_with_DNET 0 Data 0 0 Decimal Control Word EXEN IM18 D001 IP DN FXEN EtherNetlP with DNET O Data 1 0 Decimal Output Word FDN20 45 4x5G MAC D 11 EtherNetlP with DNET O Data 2 gt 0 v 2 Decimal INT Output Word FDNQ CSG44 T 14 FXEN EtherNetlP with DNET D Data 3 0 7 6 5 4 3 2 1 off Output Word 50808 5 MAC ID 22 EtherNetlP with DNET O Data 4 0 7 0 INT Output Word NI4 DSU65 2DNet MAC ID 63 Locatt I fc AB 17 Locat1 0 17 Lecatt s E AB 17 2 0301118 BL remote DeviceNet master 0209 3 19 Application example FXEN at Allen Bradley PLC Explicit Messaging within the PLC program The access to the EtherNet IP classes Mandatory and Vendor Specific of an EtherNet IP node through Explicit Messages within the PLC program is done via a MSG Message instruction Before inserting the instru
14. node can be read out from it s Identity Object VSC 123 is used to read out the Identity object of every standard DeviceNet node not only TURCK products via a TURCK Vendor Specific Class 1 To read out the Maj Min revision of the DeviceNet node with MAC ID 11 the followings VSC access has to be done VSC 123 7Bh Instance 12 Attribute 04h Note Please observe that the instance 12 is used to read out data from MAC ID 11 The instance no corresponds to the node s MAC ID 1 Please read also DeviceNet M slave class VSC 123 7Bh page 2 14 Figure 52 FXEN VSC access Sourcel ink 0 Decimal INT Major Minor x Decimal revision of VSC 0 Decimal DINT DeviceNet FXEN_VSC_access Channel s00 ASCII SINT FXEN_VSC_access Rack 8 000 Octal SINT node 11 FXEN_VSC_access Group 0 Decimal SINT FXEN 5 access Slot 0 Decimal SINT FXEN_VSC_access Path 01 02 12 r 4 STRING FXEN 5 access Remotelndex Decimal DINT access RemoteElement STRING FXEN_VSC_access UnconnectedT imeout 30000000 Decimal DINT FXEN_VSC_access ConnectionRate 7500000 Decimal DINT _ 5 _ TimeoutMultiplier 0 Decimal SINT stat VSC i Decimal BDDL Rw VSC Lem Decimal SINT 100 FXEN RWw 5 EI Decimal SINT 2 Decimal SINT 2 The result of this VSC access is again sent to FXEN RW V
15. 0 Predefined 08 Module Defined C3 Trends 3 Configuration 1756 Backplane 1756 A7 0 1756 155 DN 1 1756 DNB DNET 8 2 1756 EtherNetIP FXEN 25 Ethernet 8 1756 EtherNetIP fJ ETHERNET MODULE Force Mask FXEN DN R 0 DN VSC 21 Decimal DN Rw VSC 22 Decimal DN RW VSC 23 Decimal DN Rw VSC 24 Decimal DN RW VSC 25 Decimal DN Rw VSC 26 Decimal DN VSC 27 Decimal DN Rw VSC 28 Decimal KEdiTags 3 28 0301118 BL remote DeviceNet master 0209 Explicit Messaging within the PLC program Industri A VSC access to DeviceNet master or DeviceNet nodes To access the DeviceNet master use Vendor Specific Class VSC 122 7Ah To access the connected DeviceNet nodes use Vendor Specific Class VSC 123 7Bh Example Read out the slave list from the master The Slave list of the master can be read out from VSC122 7Ah Instance 1 attribute 109 Figure 50 Controller Tags PROJ FXEN IP DN controller Read out the Scope gt Show Show All Value Force Mask Style Data Type slave list FXEN_VSC_access DN Decimal BOOL 1 FXEN_VSC_access ST Decimal BOOL
16. Automation Industrial DEVICENET MASTER USER MANUAL ESIE ee All brand and product names are trademarks registered trade marks of the owner concerned Edition 02 2009 Hans Turck GmbH Muelheim der Ruhr rights reserved including those of the translation No part of this manual may be reproduced in any form printed photocopy microfilm or any other process or processed duplicated or distributed by means of electronic systems without written permission of Hans Turck GmbH amp Co KG Muelheim an der Ruhr Subject to alterations without notice Industri A Warning Before commencing the installation Disconnect the power supply of the device Ensure that devices cannot be accidentally restarted Verify isolation from the supply Earth and short circuit Cover or enclose neighboring units that are live Follow the engineering instructions of the device concerned Only suitably qualified personnel in accordance with EN 50 110 1 2 VDE 0 105 Part 100 may work on this device system Before installation and before touching the device ensure that you are free of electrostatic charge The functional earth FE must be connected to the protective earth PE or to the potential equalization The system installer is responsible for implementing this connection Connecting cables and signal lines should be installed so that inductive or capacitive inter ference
17. EtherNetIP FXEN g 1756 ENET B EtherNetIP 5 ETHERNET MODULE e 198 Te 7 Path AB_ETHIP 1 192 168 1 100 Backplane 0 15 4 5p mm e y Scope ff PROJ FXEN IP Name FXEN with VSC access DN with 5 access ST FXEN with DN VSC access EN with DN 5 access TO with VSC access EN CC FKEN with 5 access ERR with DN 5 access EXERR FKEN with DN 5 access ERR SRC FXEN with DN VSC access DN LEN FXEN with VSC access REQ LEN with DN 5 access DestinationLink FKEN with DN 5 access DestinationNode with access SourceLink FXEN_with_DN_VSC_access Class with DN 5 access Altribute with DN VSC access Instance FXEN with 5 access Locallndex FXEN with DN VSC access Channel FXEN with VSC access Rack with DN 5 access Group with 5 access Slot FXEN with DN VSC access Path with 5 access Remotelndex with 5 access RemoteElement FXEN with VSC access nconnectedTimeout FXEN with DN VSC access ConnectionRate _ with DN 5 access TimeoutMuliiplier FXEN statt 5 VSC Tags AEdit Tags 1 Show Show All Value gt 1 0 1 0 1 000 1680000 0000 0 21
18. output 1 to ON 06 Write Single Register Function Code Register Address Register Value Cancel Finish Figure 82 Modbus Server Tester Node 1 output File View Tests Help 1 is energized xs Exchange Control Sent 1 Exception 0 Invalid 0 Received 1 Error Noresponse 0 N 1 0 00 Req 00 07 00 00 00 06 FF 06 3D 01 00 01 2 5 52 Resp 00 07 00 00 00 06 FF 06 3D 01 00 01 Ethernet Configuration 192 168 1 7 Reque Ethernet Connection D301118 BL remote DeviceNet master 0209 5 25 Application Example 81 67 with Modbus Server Tester 5 26 D301118 BL remote DeviceNet master 0209 6 Index A address setting 1 10 D DeviceNet Connector cente to en nieto ses 1 4 SEEN 1 4 DeviceNet master function 1 1 E EtherNet IP application example 3 1 Assembly Instances 3 8 BL67 GW EN IP DN esee 2 3 configuration seen 3 8 control word eee 2 8 Controller Tags 3 14 DeviceNet slave class VSC 123 7Bh 2 14 3 3 example station 3 15 Explicit Messaging 3 20 FXEN IM16 0001 IP DN eee 2 2 gateway rotary mode 3 3 mapping report 3 10 MESSAGE Controller
19. slave class VSC 123 14 D301118 BL remote DeviceNet master 0209 2 1 DeviceNet master with EtherNet IP Modules for EtherNet IP FXEN IM16 0001 IP DN Figure 11 FXEN IM16 0001 IP DN The FXEN module with DeviceNet master function is part of the FXEN product line It allows direct connection of 16 inputs to EtherNet IP and the connection of a complete DeviceNet network to the DeviceNet master The process data of the DeviceNet subnet are thus handled via EtherNet IP see also chapter 1 The connection to EtherNet IP is realized via two 4 pole D coded M12 x 1 round connectors The integrated switch allows the creation of a line topology with the modules 2 2 D301118 BL remote DeviceNet master 0209 Modules for EtherNet IP Industri A BL67 GW EN IP DN Figure 12 BL67 GW EN IP DN The BL67 gateway for EtherNet IP with DeviceNet master function is part of the modular system BL67 The gateway is used to connect a modular BL67 station with different I O and technology modules to EtherNet IP Additionally this gateway offers the possibility to connect a complete DeviceNet subnet to it and to handle the process data of the DeviceNet subnet via EtherNet IP see also chapter 1 The connection to EtherNet IP is realized via one 4 pole D coded M12 x 1 round connector Note 1 The BL67 gateway contains no integrated Ethernet s
20. subnet node with MAC ID 11 30 D301118 BL remote DeviceNet master 0209 3 1 Application example at Allen Bradley PLC Hard and software 3 2 Hardware For this application example the following hardware is used Allen Bradley PLC ControlLogix5555 1756 PA72 B firmware version V 16 21 12 with EtherNet IP Bridge 1756 ENBT firmware version V 4 7 19 FXEN IM16 0001 IP DN 16 digital input channels DeviceNet master with Addr 11 FDN20 4S4XSG E DeviceNet module with 4 digital input channels and 4 digital channels configurable as in or output Addr 14 FDNQ CSG44 T DeviceNet module with 4 digital input and 4 digital output channels Addr 22 FDNP S0808G TT DeviceNet module with 8 digital input and 8 digital output channels Addr 63 Ni4 DSU35 2DNetX4 H1150 Inductive dual sensor with DeviceNet inter face Software For this application example the following software is used BootP DHCP Server from Rockwell Automation version 2 3 2 0 V O ASSISTANT from TURCK PACTware and TURCK DTMS version 3 5 8 RSLogix 5000 from Rockwell Automation standard edition version 16 00 RSLinx from Rockwell Automation version 2 43 01 D301118 BL remote DeviceNet master 0209 Network configuration IP address setting Industri A Network configuration and IP address setting Settings of the network interface card The TURCK mod
21. Date ms Frame 0 00 Req 00 01 00 00 00 06 FF 04 30 8B 00 01 4 55 00 01 00 00 00 05 04 02 00 01 Ethernet Configuration 192 168 1 7 Reque Ethernet Connection Hexa Note This example would be good method for changing DN master parameter settings i e MAC ID After writing to the register make sure you cycle power the gate way and then read the register to ensure that the change has been implemented D301118 BL remote DeviceNet master 0209 Modbus communications configuration Parameterization with IO ASSISTANT 3 FDT DTM The IO ASSISTANT 3 FDT DTM can make Baud Rate and MAC ID changes easier With online parameterization a user can set the baud rate and MAC ID among other things Here s an example Please keep in mind that the gateway will still need to have power cycled for the changes to take effect Figure 68 1 Edit Yew Project tyres Online 3493 0280 9355 parameters Device tag Address J 2 i 5m TCP IP D 01 GN DeviceNet FONL CSGRR T 01 mde GG gg 03 GN DeviceNet TONQ XSGOS T 03 Device Parameters Deviceet master sm FON L1600 T n FONL 10800 T 22 Modulbus Doud Rate 125 pene ADiP Quick Connect MAC 90142 Nose Aad 400 0 5A P 02 BL remote Scan WHO E i only val Global Fal a
22. Diag Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 err FM DNM DNS cfg Val Vh Table 15 Bit Meaning Meaning of the status bits err The communication controller for the system is faulty FM The I O ASSISTANT Force Mode is active at the gateway DNM DeviceNet Master error duplicate MAC ID has been detected bus condition is off wrong data size DNS DeviceNet slaves error not all slaves are in poll state The configuration has been changed and is now incompatible com No communication on the module bus Vin Vin too low Vin h too high Vout Vout too low Vout h Vout too high Lino line overcurrent 4 4 D301118 BL remote DeviceNet master 0209 Modbus data layout Industri A Table 15 Bit Meaning Meaning of the status bits cfg w Warning the configuration has been changed I O diag I O diagnostics active D301118 BL remote DeviceNet master 0209 4 5 DeviceNet master with Modbus Process data The DN master IO data is mapped into registers 0 3 00 of the Modbus TCP register table Based on the attached nodes the scan list is filled in and the data is automatically mapped into the data block word aligned based on the consume and produce size The consume produce data of the slave is mapped in order of the actual node addresses on the DeviceNet bus Optionally the control status i
23. Programs FXEN EtherNetlP with DNET I Data 0 fiii Ungrouped Axes FXEN_EtherNetIP_with_DNET I Data 1 Add On Instructions FXEN_EtherNetIP_with DNET I Data 2 Data Types FXEN_EtherNetIP_with_DNET I Data 3 User Defined FXEN_EtherNetIP_with DNET I Data 4 E d nd FXEN_EtherNetIP_with_DNET I Data 5 3 S Predefined FXEN_EtherNetIP_with_DNET 0 Module Defined EtherNetlP with DNET O Data Trends FXEN EtherNetlP with DNET O Data D 1 0 Configuration EtherNetlP with DNET O Data 1 EtherNetlP with DNET D Data 2 FKEN EtherNellP with DNET O Data 3 s DeviceNet EtherNellP with DNET O Data 4 8 2 1756 ENET B EtherNetIP_FXEN Ethernet 8 1756 ENET B EtherNetIP FXEN g ETHERNET MODULE FXEN_EtherNe Force Mask abey uEIS wif Decimal Decimal Decimal Decimal Decimal Decimal Decimal Decimal Decimal Decimal Decimal Decimal Decimal oo0o0o0o0 2 o0oooo0o0ixw s s 1t Monitor Tags AEdit Tags d The Controller Tags are divided into FXEN EtherNetlP C mapped configuration data FXEN EtherNetlP mapped input data FXEN EtherNetlP mapped output data 3 14 D301118 BL remote DeviceNet master 0209 Configuration of the network RSLogix 5000 data mapping for the example station In order to be able to calculate the I O data for the
24. 0 0 8 000 000 0 1680001 1680007 1 0 9 0 01802812 r 0 E 30000000 7500000 0 eee Force Mask Style Decimal Decimal Decimal Decimal Decimal Hex Hex Decimal Decimal Decimal Decimal Octal Decimal Hex Hex Decimal Decimal ASCII Octal Decimal Decimal Decimal Decimal Decimal Decimal Decimal 1 Decimal D301118 BL remote DeviceNet master 0209 3 27 Application example FXEN at Allen Bradley PLC 4 result of the Get Single Attribute operation can be found in the Controller Tags FXEN RW VSC Figure 49 f amp RSLogix 5000 PROJ DN in PROF FXEN DN ACD 1756 L55 Controller Tags PROJ DN controller Forcin g the start Ele Edit View Search Logic Communications Tools Window Help j S 581555 v alal bit Rem Run vo Forces Path AB_ETHIP 1 192 168 1 100 Backplane O z No Forces None istaled No Edits SFC Forces 4 Enabled None Installed 4 Controller PROJ FXEN IP DN Scope ff FXE Show Show All A Controller Tags Controller Fault Handler 73 Power Up Handler 3 Tasks amp MainProgram A Program Tags MainRoutine 73 Unscheduled Programs 53 Motion Groups 73 Ungrouped Axes Add On Instructions Data Types User Defined Gq Strings Add On Defined
25. 168 1 7 quem Connection 8 The results breakdown is as follows byte number is for nodes 1 amp 2 8 08 byte number is for node 11 40 byte number is for node 22 and hex 5 20 D301118 BL remote DeviceNet master 0209 Modbus communications configuration Indust A 9 To produce a node error node 22 was pulled of the device net network Then re send the read input register function code 04 Figure 75 5 Modbus Server Tester View Results Of view Tests registers 3000 25 2 to 3008 with Exchange Control node 22 missing Sent 2 Exception o Invalid Received 2 Error Q Noresponse 0 Ne Date ms 1 0 00 Req 00 04 00 OO OO 06 FF 03 3C 00 09 3 34 00 04 00 00 00 15 FF 03 12 00 08 OA 00 40 00 00 00 00 00 00 00 00 00 00 00 55 686 23 Req 00 05 00 00 00 06 FF 03 3C 00 09 3 83 Resp 05 00 00 00 15 FF 03 12 00 08 00 40 00 00 00 00 00 00 00 40 00 00 00 Ethernet Configuration 1 92 168 1 7 Requests Transmissio Ethernet Connection pened 10 The byte number value 40 shows that node 22 is missing Again IO ASSISTANT 3 FDT DTM can make this easier With the Gateway module connected and online right click on the module and select Diagnostics The user will be noti fied that a node is missing Figure 76 le Buc Dem poi 9 Diagnost
26. 2 Click on the in the MSG instruction and assign the MESSAGE Controller Tag to be used by the instruction MainProgram MainRoutine Figure 42 5 RSLogix 5000 PROJ FXEN IP DN in PROF IP DN ACD 1756 L55 Ey g File Edit View Search Logic Communications Tools Window Help Controller Tag _ definition forthe 1 818181 amp l slale 1 _ alal x MSG insti ti Offline 1 0 Forces athi Path ETHIP 1 192 168 1 100 Backplane O EE hao Disabled InSUUCUOD No Forces None Installed 1 No Edis F SFC Faces Ea E RI w 4 nputioutput 1 Controller PROJ S EI Controller Tags F G Controller Fault Handler g m MainTask Name 5 MainProgram FtherNellIP wilh DNET C AB ETHERNE Program Tags 8 EH EtherNetlP with DNETI AB ETHERNE is bier End EiheretP wih ABETHERNE 2 69 Motion Groups FXEN start VSC BOOL Ungrouped Axes with DN VSC access Add On Instructions 11 5 9 Data Types User Defined Program Br C Strings Add On Defined Show Show All 2l 08 Predefined Module Defined Trends 5 6 Yo Configuration 1756 Backpl
27. 4 7 Command 1 Set 0 Get Byte 1 2 3 4 UID Byte 5 6 Inst Byte 7 8 Length of the data following byte Byte 9 Data up to 503 bytes of data D301118 BL remote DeviceNet master 0209 DeviceNet master with Modbus Table 22 Register Access Name Type Description Register layout Range Ox3A00 RO Get Set Object Structure This register set provides the Ox3AFF Command response to execution of the Response object command described above The format of this structure is the following Byte 0 Bits 0 to 3 req counter used for synchronization purposes Bits 4 7 Command 1 0 Get Byte 1 2 3 4 UID Byte 5 6 Inst Byte 7 8 Length of the data following byte Byte 9 Data up to 503 bytes of data Ox3BOO RO Input Offsets Array of Input offsets of each of the slaves Ox3B3F short on the scanlist 0 3 40 Output Offsets Array of Output offsets of each of the Ox3B7F short slaves on the scanlist 3000 0 RO DNM Input Array of DeviceNet master Input Ox3CFF Byte Assembly this object contains the status diagnostic data if enabled and all slave input data RO Array of DeviceNet master Output 3000 0 Ox3DFF Byte Assembly this object is used to control the master via the master control word if enabled and to send the subnet data to the DeviceNet slaves 4 14 D301118 BL
28. 4 Configuration of the DeviceNet 1 5 DeviceNet configuration via IO ASSISTANT FDT DTM 1 6 Address setting for the DeviceNet M subnet 1 10 MAC ID of the DeviceNet 1 10 Baud rate settirigus tet qae mere uia eine med nin nii Di 1 10 Reset the device to factory settings 1 10 Status indicators LED 1 11 Getting started for the DeviceNet Mmaster eese eee 1 12 The DeviceNet master the IO ASSISTANT 3 404 4442222 1 14 2 DeviceNet master with EtherNet IP Modules for EtherNet P 2 2 16 0001 2 2 BLO OW EN IP DN ME E 2 3 Process 2 4 Example input Mae m 2 4 Example output 2 5 Status control words of the DeviceNet subnet via 2 6 Status erf 2 6 M 2 8 Assembly Instances eeu nunt pco tnus nr uan cusa 2 9 0301118 BL remote DeviceNet master 0209 i VSCs for the DeviceNet master fun
29. 88000 000 Octal FXEN_with_DN_VSC_access SourceLink Decimal FXEN with DN_VSC_access Class mm m e Decimal FKEN with VSC access Locallndex Decimal FXEN with 5 access Channel 800 ASCII FXEN with VSC_access Rack Octal 0301118 BL remote DeviceNet master 9 Explicit Messaging within the PLC program Set the start bit FPXEN start VSC to trigger the MSG instruction Be sure that the Forcing in the PLC in enabled Industri A Figure 48 Forcing the start bit f amp RSLogix 5000 PROJ_FXEN_IP_DN in PROF FXEN IP DN ACD 1756 L55 Controller Tags PROJ FXEN IP DN controller Ele Edit Search Logic Communications Tools Window Help alsm S 1 0 Forces Enabled None Installed SFC Forces Enabled None Installed Rem Run No Forces b No Edits Controller PROJ DN A Controller Tags Controller Fault Handler 73 Power Up Handler amp Tasks MainProgram Program Tags MainRoutine 73 Unscheduled Programs Motion Groups 73 Ungrouped Axes Add On Instructions Data Types User Defined Strings Add On Defined Predefined E Module Defined Trends 3 Yo Configuration 9 1756 Backplane 1756 A7 1 1756 DNB DNET 25 Ethernet Enter tag value 84 0 1756455 PROJ_FXEN_IP_DN 2 1756
30. Attribute to be implemented Object Instance Table 11 No Attribute name Type Description bject inst Object instance det Set hex 1 MACID G S USINT Node Address Range 0 63 A change of the master s MACID is only valid after a power reset 0 default 2 Baud Rate G S USINT 0 125 kBit s default 1 250 kBit s 2 500 kBit s A change of the baud rate is only valid after a power reset 4 Bus Off Counter G S USINT Number of times CAN went the bus off state 10 Quick Connect G S BOOL 0 Disable OAh 1 Enable Default lt different to ODVA 100 Max object G USINT Contains the number of the last 64h attribute object attribute to be implemented D301118 BL remote DeviceNet master 0209 2 11 DeviceNet master with EtherNet IP Table 11 No Attribute name Get Type Description Object instance Set ec hex 101 WHO S BOOL 0 current slave list store in FLASH 65h 1 new scan of slaves and store list in FLASH 102 SUBNET G UINT States the number of output words 66h OUTPUT WORD consumed words of the entire COUNT subnet 103 SUBNET INPUT G UINT States the number of input words 67h WORD COUNT produced words of the entire subnet 104 OUTPUT G S ARRAY OF Contains the output data consumed 68h WORD data of the module 105 INPUT G ARRAY OF Contains the input data produced 69h WORD data of the module 106 Status Array
31. Bit 9 Bit 8 Node 63 Node62 Node61 60 Node59 Node58 57 Node 56 D301118 BL remote DeviceNet master 0209 2 7 DeviceNet master with EtherNet IP Control word The control word is used to set the DeviceNet master into RUN or IDLE mode If the control word is mapped into the process data it is mapped at the beginning of the output data of the DeviceNet subnet nodes which means it directly follows the output data of the local I Os at the EtherNet IP device in the example on page 2 5 they would be mapped following byte n This control word is structured as follows Table 9 Word 1 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O reserved 1 RUN O IDLE Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 reserved 2 8 D301118 BL remote DeviceNet master 0209 Assembly Instances Industri A Assembly Instances mapping 1 Assembly instances 101 and 102 Fixed assembly instances The size of each of those assembly instances is 256 bytes 2 Assembly instances 103 and 104 Variable assembly sizes The assembly size is calculated to support the stations configuration enabled diagnostics DeviceNet subnet TURCK devices with integrated DeviceNet master contain two possibilities of process data ER output assembly instance 104 input assembly instance 103 The size of each assembly instance can be retrieved through the assembly objec
32. DNB 4 unsthedded Programs Locatt S TUER 1756 DNB St Motion Groups MES SAGE Ungrouped Axes Add On Instructions Data Types Cg User Defined 08 Strings MINIMUM CAPTURE Eih Add On Defined GROUP Predefined MOTION_INSTRUCTION 0 Module Defined MOVING_AVERAGE Trends MOVING_STD_DEV 4 Configuration MIN amp 1756 Backplane 1756 47 Array Dimensions 0 1756 L55 PROJ_FXEN_IP_DN 8 1 1756 DNB DNET 8 2 1756 EtherNetIP FXEN Ethernet 8 1756 EtherNetIP F Show Data Types by Groups fJ ETHERNET MODULE FXEN sc 2 Enter a name for the MESSAGE tag structure in this example FXEN VSC access 3 20 D301118 BL remote DeviceNet master 0209 Explicit Messaging within the PLC program Industri A 3 The complete MESSAGE structure is created automatically It contains for example tags for the Class Instance Attribute access Figure 38 f amp RSLogix 5000 PROJ_FXEN_IP_DN in PROF_FXEN_IP_DN ACD 1756 L55 Controller Tags PROJ_FXEN_IP_DN controller e Structure of the Ele Edit Search Logic Communications Tools Window Help MESSAGE amp lg S e 81918 8 Alo Offline 0 1 0 Forces Path AB_ETHIP 1 192 168 1 100 Backplane O No Forces No Edits Foroz 4 is or ero
33. Description of symbols used Warning This sign can be found next to all notes that indicate a source of hazards This can refer to danger to personnel or damage to the system hardware and software and to the facility This sign means for the operator work with extreme caution Attention This sign can be found next to all notes that indicate a potential hazard This can refer to possible danger to personnel and damages to the system hard ware and software and to the facility Note This sign can be found next to all general notes that supply important information about one or more operating steps These specific notes are intended to make op eration easier and avoid unnecessary work due to incorrect operation D301118 BL remote DeviceNet master 0209 0 3 About this Manual General information 0 4 Attention Please read this section carefully Safety aspects cannot be left to chance when dealing with electrical equipment This manual contains all necessary information about the prescibed use of the TURCK products with DeviceNet master function It has been specially conceived for personnel with the necessary qualifications Prescribed use Warning The devices described in this manual must be used only in applications prescribed in this manual or in the respective technical descriptions and only with certified components and devices from third party manufacturers Appropriate transport stora
34. Entering the MSG instruction 1 Gotothe PLC program Main Routine add a new network rung to the program and insert MSG instruction 4 1 RSLogix 5000 PROJ FXEN DN in PROF DN ACD 1756 1551 MainProgram MainRoutine Add rung an d File Edit Search Logic Communications Tools Window Help MSG instruction 8 8 K alal Offline g m Path AB_ETHIP 1 192 168 1 100 Backplane O No Forces P None installed No Edits e o o ive 5 Favorites AddOn Bit Timer Couni M None Instaled sir favores n arms A Bit fer 29 Controller PROJ_FXEN_IP_DN 5 8 Controller Tags Controller Fault Handler 1 Power Up Handler End Tasks amp amp MainTask 8 MainProgram Program Tags MainRoutine 73 Unscheduled Programs 3 Motion Groups 29 Ungrouped Axes Add On Instructions Data Types User Defined Strings Cg Add On Defined Predefined Module Defined 4 RSLogix 5000 IP DN in PROF FXEN IP DN ACD 1756 1 55 MainProgram MainRoutine View Search LogiN Communications Tools Window alsa S 55 BIBI ME IB eel Offline 1 1 0 Forces mm Path AB_ETHIP 1 192 168
35. G USINT Bit 0 Bus Off 6Ah Register of DN Bit 1 Output size too big Mstr Bit 2 Input size too big Bit 3 Duplicate MAC ID of the master Bit 4 DeviceNet errors detected Bit 5 Empty Scanlist Bit 6 One or more slaves missing Bit 7 DNM status RUN 1 IDLE 0 107 Present Node G ARRAY OF Each bit describes node 8 Byte 6Bh BYTE length 108 Node Error G ARRAY OF Each bit describes one node 8 Byte 6Ch BYTE length 109 Slave List G ARRAY OF Each bit describes one node that should be connected 8 Byte length 6 110 reserved 6Eh 111 Global Failsafe G S BYTE State is activated by loss or termina 70h state tion of Ethernet connection 0 use IDLE Mode default 1 freeze all DN outputs are frozen 2 force see VSC 123 attr 113 and 114 for details 112 Global EPR G S ARRAY Default 100 ms 70h BYTE Specifies the EPR in ms EPR 100 setting for 10 slaves and 256 byte process data In case of more than 10 slaves or more than 256 byte process data needed please increase the Global EPR value D301118 BL remote DeviceNet master 0209 VSCs for the DeviceNet master function Industri A Table 11 No Attribute name Type Description Object instance dua Set hex 113 Interscan period G ARRAY OF This is a status information which 71h BYTE allows the user to know how much margin is left when defining the Global EPR In orde
36. I Os at the EtherNet IP device in the example on page 2 4 they would be mapped following byte n This status information is structured as follows 1 word for the DeviceNet communication word 0 4 words for the scanlist information word 1 4 4 words for errored nodes information word no 5 8 Table 5 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O Word 0 DNM slave empty CAN error subnet subnet comm status missing scan list output error Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 reserved Table 6 Bit Meaning Bit meanings DNM Status 0 IDLE 1 RUN Slave missing 0 subnet ok 1 2 one or more slaves missing Empty scan list 0 scanlist ok 1 The scanlist of the master is empty No slave has been found during the scan process CAN error 0 no error 1 CAN error communication problem with CAN controller DupMacID 0 ok 1 Master DupMacID fault dupplicate MAC IDs found in the DeviceNet subnode subnet input 0 ok 1 the size the input data of the subnet is too large max number of bytes 500 byte subnet output 0 ok 1 the size of the output data of the subnet is too large max number of bytes 500 byte comm error 0 no error 1 communication error or bus off 2 6 D301118 BL remote DeviceNet master 0209 Status control words of the DeviceNet subnet
37. In IDLE Mode no output data are sent to the slaves but input data from the slaves are still read in Every subnet slave switched into IDLE Mode will set its output to the preconfigured IDLE Status In Run Mode output data are sent and input data from the slaves are read in Note st The control over Run IDLE Mode of the DeviceNet M master is established via the parameter Enable Control Status Information 0x3089 If the Control Status infor mation is disabled the default operation will take place If the Control Status infor mation is enabled then the Run IDLE control is part of the Data Register layout This layout contains parameters and data for the DeviceNet master Note 1 There are other existing registers associated with 67 GW EN DN Module Plea se refer to the TURCK document no D300815 to identify the complete register lay out for this module DeviceNet master register layout is as follows Table 22 Register Access Name Type Description Register layout Range 3000 0 RO Input Sizes Array of This array contains the information Ox303F Short of the input sizes of each slave 2 bytes per slave 0x3040 Output Sizes Array of This array contains the information Ox307F Short of the output sizes of each slave 2 bytes per slave 0 3080 Scanlist Array of position 0 63 define whether 0x3083 bits the specific slave is present in the scanlist 0 3084 RO
38. Noresponse 0 N Date ms 1 0 00 Req 2 3 75 Ethernet Configuration 192 168 1 7 Requests Ethernet Connection Op 5 22 D301118 BL remote DeviceNet master 0209 Reading slave inputs forcing slave outputs Figure 78 Modbus Server Tester Same results View Tests Help except the sta cR tus control in Exchange Control formation is Set 71 Exception p Invalid disabled Received 1 Enor o Norspme 1 0 00 Req 00 01 00 00 00 06 03 00 00 20 2 3 43 Resp 00 01 00 00 00 43 FF O3 40 00 00 00 00 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Ethemet Configuration 7 i Requests Ethernet Connection Oper D301118 BL remote DeviceNet master 0209 5 23 Application Example 81 67 with Modbus Server Tester Forcing outputs In this portion of the example the first output for node 1 will be energized via the Modbus Server Tester software The status control information is enabled Note 1 f the status control information is enabled address 0x3D00 contains the control in formation To force outputs bit O of this register needs to be 1 This indicates that the gateway is in Run Mode 1 Click on the Send Frame icon and double click on Function code 04 In the Request Data dialog box for Function Code 4 pleas
39. Received 1 Error 01 Noresponse 0 Date ms Frame 1 0 00 Req 00 01 00 00 OO 06 FF 06 30 89 00 01 2 3 20 Resp 00 01 00 00 OO O6 FF 06 30 89 00 01 Ethernet Configuration 192 168 1 7 Rene Ethernet Connection D301118 BL remote DeviceNet master 0209 5 19 Application Example 81 67 with Modbus Server Tester 6 Tolookatthe nodes present scanlist in registers Ox3CO01 to click on the Send Frame icon then double click on the read input register function code 04 Enter 3 00 in the Starting Address text box and 9 in the Quantity of registers text box Nine Registers is enough to see the scanlist and potential node errors as well When complete click Finish Figure 73 Request Data View registers 3 00 to 3C08 04 Read Input Registers Function Code 04 Starting Address 3600 Quantity of registers 8 Cancel Einish 7 When the Send Frame dialog box appears make sure Function code 04 checkbox is checked and then press Send The results will then appear Figure 74 Modbus Server Tester View results Tests registers 6 6 0x3C00 to Exchange Control 0 3 08 Set 1 Exception b Invalid 0 Received 1 Error 0 Noresponse 0 Date ms 2 0 00 Req 00 00 00 06 03 3C 00 00 09 2 3 34 Resp 00 00 00 15 FF 03 12 00 00 08 00 40 00 00 00 00 00 00 00 00 00 00 Ethernet Configuration 192
40. Tag 3 20 modules erred erroe cr 2 2 MSG instruction 3 20 network interface card settings 3 3 PLC program senes 3 20 3 18 51610 g ea 11 RSLOgix 5000 ine eco dos 3 6 status words 2 6 status control 2 6 access 3 29 G Getting Started ossessioni 1 12 l O ASSISTANT 1 14 L EDS E 1 11 M te netter 1 10 Modbus TCP application example 5 1 167 0 eene 4 2 gateway rotary mode 5 3 mapping report 2 4 24 41 2 4 20000 40 0100061 1 00 30 5 7 Modbus data layout 4 3 4 2 0301118 BL remote DeviceNet master 0209 network interface card settings 5 3 mule Pe TE 5 9 tert 4 4 P Power SUDDIV 1 3 prescribed use 0 4 5 1 5 Symbols anaa a ite eats 0 3 T transport appropriate 0 4 Index 6 2 D301118 BL remote DeviceNet Industrial Automation www turck com Hans Turck GmbH amp Co KG 45472 M lheim an der Ruhr Germany Witzleben
41. can be allocated in the default subnet 192 168 1 The addresses 0 and 255 are reserved for broadcast messages in the subnet Note The rotary coding switches on the module must be set to 400 or 600 in order to enable the DHCP Mode or respectively the PGM DHCP mode D301118 BL remote DeviceNet master 0209 5 3 Application Example 81 67 with Modbus Server Tester Modbus communications configuration Modbus Server Tester configuration The Modbus Server Tester Software is used to test Mapping The user can confirm bits bytes and registers being passed back and forth The Software can also force outputs and read inputs Start the software by going to Program Files Modbus org Modbus TCP Server Tester Figure 54 Open Modbus Tester 5 4 Remote Assistance Set Program Access and Defaults rig Windows Media Connect Windows Catalog Windows Media Player Windows Messenger o a Windows Movie Maker lr 35 Software gt IF PACTware 3 0 gt Turck Software gt 42 Windows Search Programs Documents Ifi Snagit 6 gt IF PACTware 3 5 gt Settings rE Iff TURCK Tools 2009 gt 2 Search DeviceNet Master Simulator AS Interface Control Tools and Support MODBUS ORG Modbus TCP Server Tester E Run f 6 Ig FLASH Programming Tools oa Soe TEENS 2 MA Rockwell Automation
42. do not impair the automation functions Install automation devices and related operating elements in such a way that they are well protected against unintentional operation Suitable safety hardware and software measures should be implemented for the I O inter face so that a line or wire breakage on the signal side does not result in undefined states in the automation devices Ensure a reliable electrical isolation of the low voltage for the 24 volt supply Only use power supply units complying with 60 364 4 41 VDE 0 100 Part 410 HD 384 4 41 52 Deviations of the mains voltage from the rated value must not exceed the tolerance limits given in the specifications otherwise this may cause malfunction and dangerous opera tion Emergency stop devices complying with IEC EN 60 204 1 must be effective in all oper ating modes of the automation devices Unlatching the emergency stop devices must not cause restart Devices that are designed for mounting in housings or control cabinets must only be oper ated and controlled after they have been installed with the housing closed Desktop or portable units must only be operated and controlled in enclosed housings Measures should be taken to ensure the proper restart of programs interrupted after a voltage dip or failure This should not cause dangerous operating states even for a short time If necessary emergency stop devices should be implemented Wherever faults in the automation
43. in the DeviceNet subnet the time for scanning the subnet will differ In case of an error free scanning the DN LED will first start blinking green then it will blink red and afterwards it will become solid green In case of errors during scanning the subnet 5 Ifthe DN LED is red duplicate DeviceNet MAC IDs or a Bus off condition occurred Remedy If a bus off condition occurred check the DeviceNet subnet for correctly installed bus terminations check the DeviceNet nodes for correct bit rate settings or check if all nodes are set to autobaud Power cycle the device and restart this procedure E Ifthe DN LED is flashing green red it is possible that the selected Global EPR Global Expected Packet Rate is too small Chose a larger EPR by using either the lO ASSISTANT FDT DTM VSC122 0x74 instance 1 70h in EtherNet IP page 2 11 or Modbus TCP register 0x308E Note In case any these problems power cycle the device modify the master set tings and restart this procedure at point 4 1 12 D301118 BL remote DeviceNet master 0209 Getting started for the DeviceNet master Industri A FXEN start up behavior This section assumes that the device is in Out of the box state with all parameters set to default values It provides a step by step guide on starting up the network 1 Make sure that the switch position is not 900 F Reset 2 Power up the device 3 DN
44. it s functions please see the Online Help of the software The 5 with all TURCK DTMs as well as the FDT DTM frame appli cation PACTware can be downloaded free of charge from the TURCK homepage www turck com D301118 BL remote DeviceNet master 0209 1 15 The DeviceNet master function 1 16 D301118 BL remote DeviceNet master 0209 Industri A 2 DeviceNet master with EtherNet IP Modules for EtherNet IP nannaa 1 1 6 0001 sas ss assess nasa ans nia BL6 GW EN IP DN ore KIALT C 4 Example NPU IMAGE aa daadaa aeaii aadi MEER a RA inisa Ei 4 Examiple oUtp Ut Image annsin asarana aa 5 Status control words the DeviceNet subnet via data 6 Status 6 8 Assembly Instances 9 VSCs for the DeviceNet 10 DeviceNet master class V8C122 11 Class Instances of the VSCS 11 DeviceNet
45. remote DeviceNet master 0209 Industri A 5 Application Example BL67 with Modbus Server Tester 0 Network Configuration IP Address Setting 3 Settings of the Network Interface 3 Address setting at the BL67 module 3 Modbus Communications Configuration cesses eie nean nau 4 Modbus Server Tester Configuration 4 O Mapping Report via 7 O Data Mapping for the Example 11 Examples of Communication Parameter Changes 13 Baud Rate Change 13 Scanlist and Node 3 18 Reading Slave Inputs and Forcing Slave Outputs 22 D301118 BL remote DeviceNet master 0209 5 1 Application Example 67 with Modbus Server Tester Hard and software 5 2 Hardware For this application example the following hardware is used BL67 GW EN DN Modbus TCP Gateway with DeviceNet master with addr 1 FDNL CSG88 T DeviceNet module with 8 digital input channels and 8 digital output channels addr 3 FDNQ XSGO08 DeviceNet module with 4 digit
46. scanlist 0x3089 register enables enabled 48 63 this information Must be Slave error 0x3089 register enables enabled present 0 15 this information Must be Slave error 0x3089 register enables enabled present 16 31 this information Must be Slave error 0x3089 register enables enabled present 32 47 this information Must be Slave error 0x3089 register enables enabled present 48 63 this information always 000 0 4 DN master 0x3089 register enables process data this information Then scanlist defined Slave Process Data Padded Byte must be added if Slave Byte Data size is odd always OxCOO DN master In scanlist defined slave process data process data Padded byte must be added if slave byte data size is odd D301118 BL remote DeviceNet master 0209 4 3 DeviceNet master with Modbus Table 13 Direction In place Register Process data Comment Modbus Layout Output Always 0 800 Local Process Data Must be DN master 0x3089 register enables enabled control word this information Then scanlist defined slave output data Padded byte must be added if slave byte data size is odd Always 0x3D00 DN master In scanlist defined slave process data output data Padded byte must be added if slave byte data size is odd Table 14 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Gateway Status Word Vout Lin o cfg w
47. scanlist 24 31 Node in 16 23 15363 Node in scanlist 40 47 Node in scaniist 22 39 4 15364 Node in scanlist 56 63 Node in scaniist 48 55 Ox3C05 15365 Node error 8 15 Node 7 0 3 06 15366 Node error 24 31 Node error 16 23 0 2 07 15367 Node error 40 47 Node error 32 39 a 15368 Node error 56 63 Node error 48 55 0x3C09 15369 DeviceNet node adr 1 Byte 1 DeviceNet node 1 Byte 0 Ox3COA 15370 DeviceNet node adr 5 Byte 1 DeviceNet node adr 3 Byte 0 15371 DeviceNet node 11 Byte 1 DeviceNet node adr 11 Byte 0 Ox3COC 72 DeviceNet node adr 11 Byte 3 DeviceNet node adr 11 Byte 2 0x3COD 15373 DeviceNet node 11 Byte 5 DeviceNet node adr 11 Byte 4 Ox3COE 15374 DeviceNet node adr 22 Byte 1 DeviceNet node adr 22 Byte 0 Ox3COF 15375 DeviceNet node adr 22 Byte 3 DeviceNet node 22 Byte 2 Description 1 ColumnzRegister n Column zModul number register GW gateway status diagnostics bits M module diagnostics 1 bit for each module Correct position not available in this firmware version Process input data 19 Words A Status word of the station B nput data of the modules the DeviceNet subnet DeviceNet addr 1 to addr 22 Figure 62 1 3 map for output data Output data mapping of the station EE
48. system may cause damage to persons or property external measures must be implemented to ensure a safe operating state in the event of a fault or malfunction for example by means of separate limit switches mechanical inter locks etc The electrical installation must be carried out in accordance with the relevant regulations e g with regard to cable cross sections fuses PE All work relating to transport installation commissioning and maintenance must only be carried out by qualified personnel IEC 60 364 and HD 384 and national work safety regu lations All shrouds and doors must be kept closed during operation Industri A Table of Contents About this Manual Documentation 60001 0 2 Description of symbols Used cinere hotter annu 0 3 General informati n 2 0 4 Em 0 4 Notes concerning planning installation of this 0 4 List OF revision e PE 0 5 1 DeviceNet master function 1 2 MEER 1 3 Curl HP U 1 3 gus MEE 1 3 C 1 3 DeviceNet Ms bnet oreet ottiene 1 4 DeviceNet COMME CON e EE 1
49. the connecting devices have unique node addresses Baud rates for the connecting devices can be set automatically with the autobaud function or set to the desired rate The following example shows the scanning process via IO ASSISTANT 3 using the FXEN module for EtherNet IP with DeviceNet master FXEN IM16 0001 IP DN This network is being configured online To configure the DeviceNet network via the IO ASSISTANT 3 please carry out the followong steps 1 Create a new project in PACTware If PACTware is started for the first time the soft ware will start with new project If not open create a new project by using File 3New 2 Adda TCP IP communication DTM BL Service Ethernet to the project and start the Busaddress Management To do this execute rightclick on the TCP IP entry and select Additional functions gt Busaddress management Figure 3 Opening the 1 6 Fie Edit View Project Device Extras Window D m 822 lt Display channels Channels Print Additional Functions 1 Add device Delete device Scan list m CTware Busaddress management Doje3e e3i aq E Properties lt TCP IP gt BL Service Ethernet HIMA Export Accessory Preset DTM TAG address tag Re elo lt NONAME gt Administ DTM maintenance Write device data t
50. 0042800 Figure 31 Path Tar Path 32 Select Recent Communications Path Set Project Path Controller Go Online PROJ FXEN amp B ETHIP 13192 168 1 100NBackplane XO Upload Download Close Help Set Project Path Path in Project none If the correct communication path is set it is possible to download the configuration D301118 BL remote DeviceNet master 0209 3 13 Application example FXEN at Allen Bradley PLC Once the I O configuration is downloaded and the controller is in or Remote Run mode the mapping of the FXEN station is shown in the Controller Tags Figure 33 gure 33 6 RSLogix 5000 PROJ_FXEN_IP_DN in PROF_FXEN_IP_DN ACD 1756 155 Controller Tags PROJ FXEN IP DN controller Contr ol ler Tags Eile Edit View Search Logic Communications Tools Window Help ajsa Hae ol eee edi Offline 0 F RUN Path AB_ETHIP A 192 168 1 100 Backplane O ves No Forces b uy amw a ER P pem Conkrolle PROJ EXEN IP DN Scope fa FXEN IP gt Show Show All HEU ET Controller Fault Handler 29 Power Up Handler FXEN_EtherNetIP_with_DNET C 3 6 Tasks EtherNetlP with DNET C Data a MainTask MainProgram FXEN EtherNetlP with DNET I Data ps
51. 1 100 Backplane O Trends Disabled E Configuration None Installed E 1756 Backplane 1756 7 No Edits F SFC Forces 4 Hlal ssu sev zor fa 0 1756 155 B 1 1756 DNB DNET 8 2 1756 ENET B Ether gs Ethernet ri 1756 4 2 4 Timericounter 3 Input Output Compare X CompuleiMath MovelLogical None Installed Controller PROJ DN A Controller Tags G Controller Fault Handler MSG 8 GE Power Up Handler Message Tasks Message Control ID 2 68 MainTask 8 MainProgram Program Tags MainRoutine unscheduled Programs 9 Motion Groups Ungrouped Axes Add On Instructions amp Data Types User Defined Strings Add On Defined Predefined Module Defined Trends amp 1 0 Configuration 1756 Backplane 1756 47 fla 0 1756 L55 PROJ_FXEN_IP_DN 8 1 1756 DNB DNET B 2 1756 ENET B EtherNetTP 25 Ethernet 8 1756 ENET B EtherNetIP F 8 ETHERNET MODULE FXEN_ MainRoutine gt Create Set System Value instruction Rung 0 of 1 D301118 BL remote DeviceNet master 0209 3 23 Application example FXEN at Allen Bradley PLC
52. 209 Modbus communications configuration 1 O mapping report via IO ASSISTANT FDT DTM With the IO ASSISTANT 3 FDT DTM an Modbus report for each connected Modbus station can be created This Modbus report is part of the station report for an Modbus node and contains mapping tables for the complete I O data Modbus station DeviceNet nodes 1 Createda station report using a right click on the respective station Additional functions station report The station has to be connected 2 Activate the Modbus report check box and create the station report by pressing the Apply button Figure 58 MModbusTest PW3 PACTware Creating Modbus File Edit View Project Device Extras Window Help report 3 83 6 ERES 5 DeviceNet 2 EE O1 GN Devid Disconnect 03 GN Devic Load from device Parameter Li Measured value Diagnostic Do not display channels Channels Up Download Manager Print Additionalfunctions x Add device Delete device Set value Scan list Properties 192 168 1 7 BL67 GW EN DN BL67 GW EN DN 10 configurator Identification About Verify station Station report Compare with connected statio 5 Force Mode control Accessory Import EDS files Import BL compact files DTM maintenance Help about device M write dev
53. 5 Bit 4 Bit 3 Bit 2 Bit 1 Byte 0 In7 6 In5 In4 In3 In2 Int Ind Byte 1 IGS OGS Output Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O Byte 0 Out7 Out6 5 Out4 Out3 Out2 Out Inx input x 0 off 1 on Outx output x 0 off 1 on IGS Input Group Status 0 working 1 fault OGS Output Group Status 0 working 1 fault VO mapping for a FDNQ XSGOS8 T MAC ID Input Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit Byte 0 In7 15 In4 In3 In2 In1 InO Byte 1 IGS OGS F F Output Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 0 Out7 Out6 Out5 Out4 Out3 Out2 Out1 Out1 Inx input x 0 off 1 on Outx output x 0 off 1 on IGS Input Group Status 0 working 1 fault OGS Output Group Status 0 working 1 fault D301118 BL remote DeviceNet master 0209 5 11 Application Example 81 67 with Modbus Server Tester VO mapping for a FDNL L1600 T 11 Input Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Byte 0 In7 In6 In5 In4 In3 In2 Int Ind Byte 1 In15 In14 In13 In12 In11 In10 In9 In8 Byte 2 ISS 7 155 6 155 5 ISS 4 ISS 3 ISS 2 ISS 1 155 0 Byte 3 ISS 15 ISS 14 ISS 13 155 12 ISS 11 ISS 10 ISS 9 155 8 Byte 4 05 7 05 6 05 5 105 4 105 3 105 2 105 1 105 0 Byte 5 05 15 05 14 05 13 05 12 05 11 05 10 05 9 105 8 Inx input x 0 off 1 on ISS Input Short Statu
54. 63 Input Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit Byte 0 InErr P 5 OutErr S02 In S01 In Output Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit Byte 0 gt ValveOut SOx In Input signal x 0 off 1 on OutErr Output error 0 no error 1 error at output InErr nout error 0 no error 1 error at input ValveOut status of valve output 0 off 1 D301118 BL remote DeviceNet master 0209 Application example FXEN at Allen Bradley PLC Examples for process data acces Input data evalutaion 5 Input word I Data 4 Bit 5 is set 1 4 gt input word of DeviceNet node with MAC ID 22 compare I O mapping report via IO ASSISTANT 3 FDT DTM page 3 10 Bit5ofl Data 4 is set gt input 5 is active compare 1 0 data mapping for the example station page 3 15 Figure35 eie Input active at EE rmm Aj channel 5 DK DNet node with 4 pepe spe opo MAC ID 22 Aaron Rm 4 Scope 9 PROJ FXEN IP gt Show Show All 2 lt Force Data Description ABE FXEN EtherNetlP with DNET C EtherNetlP with feos FXEN EtherNetlP with DNET I Data 1 Decimal INT 5 FXEN EtherNetlP with DNET I Data 0 0 Decimal Status Word FXEN IM15 0001 IP DN 3 FXEN EtherNetlP with DN
55. 63 Byte 1 Devic eNet Slave Adr 63 Byte 0 For detailed information about status control word see online help DeviceNet online process data Process output data 10 Byte 4 The EtherNet IP report for the station FXEN IM16 0001 IP DN with the IP address 192 168 1 115 in this example defines thus an input data size of 12 byte 6 words and an output data size 10 byte 5 word These sizes have to be entered for the Assembly Instances in RSLogix see Configuration of the FXEN page 3 8 Those bytes are composed as follows Figure 27 Station address 192 168 1 115 In and output data mapping of Adr Slot Name TAG Descr Data Size In Data Size Out the stati Slot 0 16 0001 192 168 1 115 FXEN Term0A 16 bit 16 bit A e stauon IM16 0001 IP DN Slot 1 Intern IM 16 01 Intern IM 16 16 bit B DeviceNet process data 8 Byte 8 Byte C Total size for in out data in bytes rounded on full words 12 10 D For detailed information about status control word see online help A 2 byte of input data for the station s Status Word and 2 byte of output data for the station s Control Word B 2 byte of input data for the 16 internal inputs C 8 byte of DeviceNet data for the subnet nodes D Total sum of in and output bytes for the FXEN incl DeviceNet subnet to be entered in the PLC D301118 BL remote DeviceNet master 0209 3 11 Application example FXEN at Allen Bradley PLC
56. 9 DeviceNet subnet Industri A 13 completed and error free scan is indicated by all NET LEDs at the DeviceNet nodes and the DN LED at the FXEN is constant green This can take up to 2 minutes The master stores the scan list 14 Now delete the FXEN module from the project structure and start again with scanning the Ethernet using the Busaddress Management follow steps to 5 15 With the scan list stored to the master the IO ASSISTANT 3 can readout the list and add the DeviceNet nodes to the master Fig 7 TM PACTware TCP IP 4 Busaddress managen DeviceNet File Edit Project Device Extras Wi master with 8 4 5290 9 connected nodes Device tag HOST PC TCP IP 01 1 6 11 FDN20 45 4 56 8 4 V4 2 14 GN DeviceNet FDNQ C5G44 T mgs 22 FDNP 508086 TT 8in Bout 4 5 63 Ni4 DSU35 2DNetX4 H1150 V1 1 zi 192 168 1 115 16 0001 D1 Intern IM16 The following DeviceNet nodes are connected to the FXEN module Tabelle 2 Node Address Node Nodes nodes at connected to the master 11 FDN20 4S4XSG E DeviceNet module with 4 digital input channels and 4 digital chan nels configurable as in or output 14 FDNQ CSG44 T DeviceNet module with 4 digital input channels 4 digital output channels The module is shown as Generic GN DeviceNet node because it s
57. DN VSC access DestinationLink INT with VSC access DeslinationNode INT SERE gt Monitor Tags Tags 4 Start bit for MSG instruction 4 The MSG instruction has to be triggered by a start bit which also has to be defined in the Controller Tags 5 Define a Controller Tag of type BOOL and enter a name in this example this would be FXEN start VSC Figure 39 P RSLogix 5000 PROJ DN in PROF FXEN DN ACD 1756 L55 Controller Tags PROJ FXEN DN controller Start bit for th e Edit Search Logic Communications Tools Window Help alsa S 19 5 YB Dffine 1 F 1 0 Forces 4 pun ETHIP 1192 1681 100 Backplene I z pus 1 Disabled No Forces gt None Installed No Edits amp SFC Forces 4 i Tor rero es Enabled lr mer Tin 7 de None Installed 9 Controller IP DN Scope PROJ_FXEN_IP_ Show Show dor Name amp Aias For Bare Tag DaaType Sue Power Up Handler FXEN_EtherNetIP_with_DNET C AB ETHERNET_ Tasks FXEN_EtherNetIP_with_DNET AB ETHERNET_ E fa MainTask FXEN_EtherNetIP_with_DNET 0 AB ETHERNET_ EJ 28 MainProgram Local1 l 1756 DNB 5 8 Program Tags Locat1 0 AB 1756_DNB_4 MainRoutine SOM 73 Unscheduled Programs Locat1 S 1756 DNB St
58. DeviceNet nodes their special I O data assignments have to be considered Figure 34 Example station with DeviceNet subnet EtherNet IP FXEN IM16 0001 IP DN IP Adresse 192 168 1 115 l O data status word 2 byte input data 2 byte control word 2 byte output data DeviceNet 22222222 e EE MAC ID 11 MAC ID 63 FDN20 4S4XSG E NI4 DSU35 2DNetx4 H1150 Data Data input data 2 byte input data byte output data 1 byte output data 1 byte MAC ID 14 FDNQ CSG44 T Data input data 1 byte output data 1 byte MAC ID 22 FDNP S0808G TT Data inputdata 2 byte output data 1 byte For the I O data mapping of the DeviceNet subnet please read I O mapping report via IO ASSISTANT 3 FDT DTM page 3 10 Note The in and output sizes of the respective DeviceNet nodes can be found in the documentation data sheet manual etc for these products D301118 BL remote DeviceNet master 0209 3 15 Application example FXEN at Allen Bradley PLC VO mapping for a FXEN IM16 0001 IP DN Input Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 0 Status Word Byte 1 Byte 2 In7 Ind In4 In3 In2 Int Byte 3 In15 In14 In13 In12 In11 In10 In 9 In 8 Output Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O Byte 0 Control Word Byte 1 Inx input x 0 off 1 VO mapp
59. EDS file has not been registered in the I O ASSISTANT yet 22 FDNP S0808G TT DeviceNet module with 8 digital input and 8 digital output channels 63 Ni4 DSU35 2DNetX4 H1 150 Inductive dual sensor with DeviceNet interface D301118 BL remote DeviceNet master 0209 1 9 The DeviceNet master function Address setting for the DeviceNet subnet The MAC ID DeviceNet address of all nodes within the DeviceNet subnet connected to the DeviceNet master of the device are read in automatically when the subnet is scanned see also section Configuration of the DeviceNet subnet Keep all nodes must have unique addresses MAC ID of the DeviceNet master E possible range to 63 5 default MAC ID DeviceNet address 0 Setting the MAC ID for the DeviceNet subnet can be done via lO ASSISTANT FDT DTM via the EtherNet IP Class DeviceNet master class VSC122 7Ah via Modbus TCP commands section DeviceNet master with Modbus Baud rate setting Possible baud rate 125 Kbit s 250 Kbit s and 500 Kbit s Default setting 125 Kbit s Setting the bit rate for the DeviceNet subnetcan be done vialO ASSISTANT 3 via the EtherNet IP Class DeviceNet master class VSC122 7Ah via Modbus commands section DeviceNet master with Modbus Reset the device to factory settings If necessary the complete
60. ET I Data 1 0 Decimal Input Word FXEN IM16 0001 IP DN FXEN EtherNetlP with DNET I Data 2 0 Decimal Input Word FDN20 45 4 SG MAC ID 11 FXEN EtherNetlP with DNET I Data 3 Decimal Input Word 5544 MAC ID 14 Input Word FDNP 50808 G TT 22 Input Word NI4 DSU65 2DNet MAC ID 63 Decimal FXEN EtherNetlP with DNET I Data 5 FXEN EtherNetlP with DNET O 1 5 3 18 0301118 BL remote DeviceNet master 0209 Configuration of the network in RSLogix 5000 Industri A Output data forcing an output Output channel of a FDNQ CSG44 T with MAC ID 14 has to be set O Data 2 output word of DeviceNet node with MAC ID 14 compare mapping report via IO ASSISTANT 3 FDT DTM page 3 10 of O Data 2 is forced output no 3 is set compare I O data mapping for the example station page 3 15 Figure 36 4 4 Forcing output WW KELK channel 3 DNet node with MAC ID 14 Data Ts Description FXEN EtherNetlP with DNET C 1 ABE EtherNetlP with fi at ABE FXEN EtherNetlP with DNET I Data 1 1 Decimal FXEN EtherNetlP with DNET I Data 0 0 Decimal Status Word FXEN IM185 0001 IP DN FXEN EtherNetlP with DNET I Data l 0 Decimal Input Word FXEN IM16 0001 IP DN
61. Enhanced Web Serv Allen Brad 1794 AENT A 1794 10 100 Mbps Ethernet Adapter Twisted Pair Media Allen Bradl Drivelogix5730 Eth 10 100 Mbps Ethernet Port on DriveLogix5730 Allen Brad ETHERNET BRIDGE Generic EtherNet IP CIP Bridge Allen Brad ETHERNET MODULE Generic Ethernet Module Allen Bradley EtherNet IP SoftLogix5800 EtherNet IP Allen Bradi 55 Ethernet Adapter Twisted Pair Media Parker b Find Add Favorite By Category Favorites Please enter the Connection Parameters for the FXEN as follows Assembly Instances 103 and 104 have to contain the exact in and output size of the FXEN with DeviceNet network In this example this would be Figure 23 Module Properties EtherNetIP_FXEN ETHERNET MODULE 1 1 Configuration of General Connection Module Info FXEN with De Type ETHERNET MODULE Generic Ethemet Module viceNet mas Vendor Allen Bradley Parent EtherNetIP_FXEN ter and the example net work 3 8 Name FXEN_EtherNetIP_with DNET Description E EN module for EtherNEt IP Instance Size with DeviceNet Master Input 103 Output 104 5 ES 0 Comm Format Data INT m 5 Configuration Address Host Name PAddress 192 168 1 115 Host Name Assembly o 16 bit esi Status Offline m The exact number of in and output bytes of an EtherNet IP station with DeviceNet master
62. Error Array of Value one of each bit in bit posi 0x3087 Slaves bits tions 0 63 defines that the specific slave is present in the scanlist but the master couldn t establish Connection to that slave D301118 BL remote DeviceNet master 0209 4 11 DeviceNet master with Modbus Table 22 Register Register layout 9 2 Access Name Type Description 0x3088 0x3089 RO RW DeviceNet Master Diagnostics Enable Control Status information in the DeviceNet process data Byte Short Bit 0 Bus off Bit 1 2 Output Size is too big Bit 2 Input Size is too big Bit Duplicate MacID of the master Bit 4 CAN Error possibly due to Bus off Bit 5 Empty Scanlist Bit 6 one or more slaves missing Bit 7 DNM RUN IDLE If enabled the first write register is control register the first 18 read registers are status registers Changes of enable disable take effect only after restart 0 disable 1 enable 0 308 RW MacID of the DeviceNet master Short Node address range 0 63 changes of master MacID take effect only after restart 0 default 0 308 RW Baud Rate of the DeviceNet master Short 0 125k default 1 250 2 500k Changes to baud rate take effect only after restart 0 308 RW Quick Connect Short 0 disable 1 0x308D RW Subnet Discovery trigger WHO Sho
63. FXEN_VSC_access EN 1 Decimal BOOL FXEN_VSC_access TO 0 Decimal BOOL VSC access EN 1 Decimal 5 access ERR 1680000 Hex FXEN_VSC_access EXERR 16 0000 0000 Hex FXEN_VSC_access ERR_SRC Decimal FXEN 5 access DN LEN Decimal access LEN Decimal VSE access DestinationLink 0 Decimal access DeslinationNode 88000 000 Octal FXEN_VSC_access SourceLink Decimal ice VSC access Locallndex Decimal PXEN_VSC_access Channel ASCII FXEN_VSC_access Rack Octal FXEN_VSC_access Group Decimal FXEN_VSC_access Slot Decimal FXEN_VSC_access Path 1 01 02 12 r TR VSC access Remotelndex 0 Decimal FXEN_VSC_access RemoteElement PXEN_VSC_access UnconnectedTimeout 30000000 Decimal 5 access ConnectionRate 7500000 Decimal 5 access TimeoutMultplier 0 Decimal FXEN statt 5 Decimal 1 VSE Su ASCII SINT 100 590 Decimal SINT Monitor Tags KEdit Tags Note Do not forget to set the start bit in start The result can again be found in the Controller Tags RW and has to be read a follows Each bit of this ARRAY of BYTE 8 byte length represents one DeviceNet MAC ID For Example Bit 0 of byte 0 represents MAC ID 0 Bit 1 of byte 0 represents
64. LED has to be OFF 4 Setup the MAC ID DeviceNet address of the master vialO ASSISTANT 3 FDT DTM via VSC122 0x74 instance 1 01 in EtherNet IP page 2 11 Wait for approx 1 minute Power down the device Power down all the slaves Turn on the slaves Turn on the device 0 Press and hold the SET button until the DN LED starts blinking 00 0 Depending on the number of slaves in the DeviceNet subnet the time for scanning the subnet will differ In case of an error free scanning the DN LED will first start blinking green then it will blink red and afterwards it will become solid green In case of errors during scanning the subnet Ifthe DN LED is red duplicate DeviceNet MAC IDs or a Bus off condition occurred Remedy If a bus off condition occurred check the DeviceNet subnet for correctly installed bus terminations check the DeviceNet nodes for correct bit rate settings or check if all nodes are set to autobaud Power cycle the device and restart this procedure Incase of alternate gree red flashing DN LED the selected Global EPR Global Expected Packet Rate may be too small Chose a larger EPR by using either O ASSISTANT 3 FDT DTM VSC122 0x74 instance 1 Attr 70h in EtherNet IP Note 1 In case any these problems power cycle the device modify the master set tings and restart this procedure at point 4 Useful hints E Set all nodes the DeviceNet s
65. MAC ID 1 Bit8 in byte 8 MAC ID 63 If a bit is set to 1 a node with the corresponding MAC ID has been found in the DeviceNet subnet D301118 BL remote DeviceNet master 0209 3 29 Application example FXEN at Allen Bradley PLC In this example the nodes with MAC IDs 11 14 22 and 63 could be found Figure 51 Controller Tags PROJ IP DN controller Slave list from Scope fg PROJ FXEN IP gt Show Show All le Name Value gt Force Mask Style network FKEN 5 access TimeoutMultiplier Decimal FXEN start 5 1 Decimal 5 1 Binary _ VSC 0 2 0000 0040 0 0 Binary FXEN_RW_VSC 1 2 0100 11 u 14 Binary FXEN_RW_VSC 2 2 0100_0000 Binary FXEN 5 280000 0000 Binary FXEN VSC 4 280000 0000 Binary FXEN VSC 5 280000 0000 Binary FXEN VSC B 280000 0000 Binary FXEN_RW_VSC 7 241 0 0000 MAC ID 63 Binary FKEN RWw VSC 8 280000 0000 Binary Rw VSC S 280000 0 Binary Rw VSC 10 280000 0000 Binary FXEN VSC 11 280000 0000 Binary VSC 12 280000 0000 Binary Rw VSC 13 280000 0000 Binary 4 gt Monitor Tags Edit Tags Example Read out the Maj Min revision DeviceNet subnet node with MAC ID 11 The Maj Min revision of each DeviceNet
66. MainProgram tmm Tags Message Configuration FXEN_with_D _ SC_access lainRoutine E Unscheduled Programs Configuration Communication Tag Motion Groups E Ungrouped Axes Message Type CIP Generic G Add On Instructions 15 69 Data Types User Defined ge Get Attribute Single Source Elegi Strings ource Length Add On Defined Senio 0 Predefined le Class 0 Destination Module Defined Intance D Attibute O 28 Trends Yo Configuration 1756 Backplane 1756 A7 2 8 RW fla 0 1756 155 PROJ FXEN IP D 8 Es SINT LOO ERNE B 1 1756 DNB DNET Enable Enable Waiting Start Done PEN Ether Description B 2 1756 EtherNetIP_F start 5 BOOL gs Ethernet Error Code Extended Error Code E NEN 8 1756 Etherneti Error Path fj ETHERNET MODULEFX Error Text Abbrech 22 Show Show All View Configuration Dialog 3 24 D301118 BL remote DeviceNet master 0209 Explicit Messaging within the PLC program Industri A 5 Additionally please define the Class Instance and Attribute you want to read out or to write to or set it 0 Confirm your entries by pressing the Apply button and change to the Communication tab 6 Define the Message Path by browsing the I O Configurati
67. SC 3 The Maj revision of the node is 4 the Min revision 2 3 30 0301118 BL remote DeviceNet master 0209 Industri A 4 DeviceNet master with Modbus TCP Hard and software sees neee a a ELDER ep Network configuration and IP address setting 3 Settings of the network interface 3 Address setting at the BL67 module 3 Modbus communications configuration cLeee enun naa Rau 4 Modbus Server Tester configuration 4 O mapping report via PACTware 0 7 data mapping for the example station 2 11 Examples of communication parameter changes I O testing 13 Baud Rate charnge 13 Scanlist and Node Error 18 Reading slave ilnputs and forcing slave outputs 1er eee eese sienne n 22 D301118 BL remote DeviceNet master 0209 4 1 DeviceNet master with Modbus Modules for Modbus TCP BL67 GW EN DN Figure 53 BL67 GW EN DN 4 2 The BL67 gateway for Modbus TCP with DeviceNet maste
68. a 7 Words 2 Words Total size for in out data rounded on full words 19 Words 4 Words For detailed information about status control word see online help 1 2 map for input data 4 The Modbus report for the station BL67 GW EN DN with the IP address 192 168 1 7 in this example defines thus an input data size of 38 byte 19 words and an output data size of 8 byte 4 word Those bytes are composed as follows 1 byte 16 bit of input data for the Station s Status word 4 bits of input data for the 4DI P module 4 bits of output data for the 4DO 0 5A P module 1 word of input data for the Gateway Diagnostics 9 words of input data for the DN Master Status 1 word of output data for the DN Master Control 7 words of input data from the Slaves process data 2 words of output data from the Slaves control data D301118 BL remote DeviceNet master 0209 5 9 Application Example 67 with Modbus Server Tester Figure 61 Input data 1 2 map for input data mapping of the Register Bit position station 00000 0000 0103 0102 0101 0100 0x0001 0001 015 GW14 0013 GW12 6010 6009 6008 007 0006 0005 6004 GW03 6002 01 0 3 0003 M01 M00 0x3CO0 15360 DeviceNet Master status high byte DeviceNet Master status iow byte A 15361 Ode in SCaniist B 15 ode Scams 0 3602 15362 Node in
69. al input and 4 digital output channels addr 11 FDNL L1600 T DeviceNet module with 16 digital input channels addr 22 FDNL L0800 T DeviceNet module with 8 discrete input channels also there are two IO modules connected to the BL67 one BL67 4DI P and BL67 4DO 0 5A P Software For this application example the following software is used Modbus Server Tester version 1 5 Modbus org 5 IO ASSISTANT FDT DTM from TURCK TURCK DTMs FDT Frame Application PACTware version 3 5 D301118 BL remote DeviceNet master 0209 Network configuration IP address setting Industri A Network configuration and IP address setting Settings of the network interface card The TURCK modules for Modbus TCP are delivered with the default IP address 192 168 1 254 Note d In order to build up the communication between the TURCK product and a PLC PC or a network interface card both devices have to be hosts in the same network To achieve this you have to either 8 to adjust the gateway s IP address via BootP DHCP etc for integrating it into your own network or 8 to change the IP address of the used PC or network interface card In this example the network card setting is the following IP address 192 168 1 1 Subnet mask 255 255 255 0 Address setting at the BL67 module In this application example the IP address is set via the rotary switch to 192 168 1 7 Addresses in the range from 1 to 254
70. ane 1756 A7 0 1756 155 2 FXEN IP DN B 1 1756 DNB DNET 9 2 1756 ENET B EtherNetIP FXEN 25 Ethernet 8 1756 EtherNetIP_F 3 ETHERNET MODULE FXEN MI aS p Enter operand of type MESSAGE Rung 0 of 1 APP Open the Message Configuration dialog box by pressing the View Configuration Dialog button in the MSG instruction 4 In this dialog box chose the Configuration tab and define Message Service and for the data read out from the VSCs via MSG instruction the Destination or for the data to be written to the VSCs MSG instruction the Source Element In this case this would be the data array defined above FXEN RW acces Figure 43 Te RSLogix 5000 PROJ_FXEN_IP_DN in PROF FXEN DN MEDIUS L55 MainProgram MainRoutine Configuration of 5 T the MSG 8 S o o Pie alal instruction Offline 0 10 Forces m ia Path ETHIP 14192 168 1 Ez E Disabled Forces None Installed No Edits SFC Forces 41 Enabled euer ieM Move 1 edundancy 50 None Installed Ve gea AT 2 Controller DN x ejl 19 Controller Tags Controller Fault Handler 73 Power Up Handler gall e 5 63 Tasks FXEN with DN VSC acce EN 68
71. ction 2 10 DeviceNet master class VSC122 2 11 DeviceNet slave class VSC 123 2 14 Application example FXEN at Allen Bradley PLC Hard Ern 3 2 3 2 3 2 Network configuration and 55 5 3 3 Settings of the network interface 3 3 Address setting at the FXEN module DHCP mode eene 3 3 Configuration of the network in RSLogix 5000 eseesseeeeeeeeeeeenenen nnne nnne nnns 3 6 Configuration of the 3 6 Contiguration of the eddie 3 8 Downloading the I O 3 13 Examples for process data acces 3 18 Explicit Messaging within the PLC program 3 20 Controller Tag definitlon uiii etie 3 20 The PEG 3 23 Example for VSC access 3 26 VSC access to DeviceNet master or DeviceNet 5 3 29 DeviceNet master with Modbus Modules for Modbus nnen 4 2 BL67 GW EN DN 4 2 Modbus data layout C 4 3 Process data anmone Em 4 6 Example i
72. ction in your PLC program please set up the necessary vari ables Controller Tags Controller Tag definition MESSAGE Controller Tag The MSG instruction in the PLC program requests a Controller Tag variable structure of type MESSAGE 1 To define this Controller Tag open the Edit Tags tab and go to the last line of tags Open the dialog Select Data Type in the column Data Type Chose the MESSAGE type and confirm your selection with OK Figure 37 fc RSLogix 5000 PROJ IP DN in PROF IP DN ACD 1756 L55 Controller Tags PROJ IP DN controller See Define a a tions Tons Wind Controller Tag sle eA miei alal of type Offline 0 1 0 Forces Path AB_ETHIP 1 182 168 1 100 Backplane O Disabled ME SSA GE No Forces gt None Installed t No Edits amp SFC Forces 4 E pedes ree ero cru es Enabled fravortes compare ComputeMain Mave Lagical T 7 None Installed 9 Controller PROJ DN Controller Tags Controller Fault Handler Power Up Handler AB ETHERNET_ 5 Tasks FXEN EtherNetlP with _ 68 MainTask FKEN EtherNetlP with DNET O AB ETHERNET MainProgram Local AB 1756 048 5 0 A 1756
73. device including the DeviceNet master can be set to its default settings by turning the three rotary switches to position 900 Reset Attention This reset has effect an all parameter settings stored in the device s FLASH FXEN After a power reset at the device all parameters in the module s flash are overwritten Attention Please wait for at least 2 minutes before setting a new address BL67 After a power reset at the device all parameters in the module s flash are overwritten The writing process is indicated by the orange GW LED The completion of the operation is indi cated by the GW LED staying solid green for minimum 20 seconds After the reset is done set the rotary switches back to their original position and execute a power reset again D301118 BL remote DeviceNet master 0209 DeviceNet subnet Status indicators LED behavior Industri A Tabelle 3 LED Status Meaning Remedy LED DN Green Device is online and communi cating Master is communi cating with all registered slaves Green Auto discovery in progress flashing Red Duplicate MAC ID on the Check the correct assignment of master MAC IDs DeviceNet address One node has the same MAC ID as the master Red flashing Empty scanlist Check the size of the I O data no DeviceNet nodestored sent via EtherNet IP max 500 into scan list bytes for DeviceNet subnet Size erro
74. dge 1756 CNER E 1756 ControlNet Bridge Redundant Media Allen Brad 1756 DHRIO B 1756 DH Bridge RIO Scanner Allen Bradl 1756 DHRIO C 1756 DH Bridge RIO Scanner Allen Brad 1756 DHRIO D 1756 DH Bridge RIO Scanner Allen Bradl 1756 DNB 1756 DeviceNet Scanner Allen Brad 1756 EN2T A 1756 10 100 Mbps Ethernet Bridge Twisted Pair Media Allen Brad 1756 10 100 Mbps Ethernet Bridge Twisted Pair Media 1756 1756 Ethernet Communication InterFace Allen Bradl 1756 ENET B 1756 Ethernet Communication Interface Allen Bradl 1756 EWEB A 1756 10 100 Mbps Ethernet Bridge w Enhanced Web Serv Allen Bradl 1756 5 SynchLink Interface Allen Bradl Controllers Digital 3 4 2 Find Add Favorite By Category Favorites OK Cancel Help Enter the Major Revision of your EtherNet IP bridge and click OK Figure 20 Select Major Revision Major Revision of the EtherNet Select major revision for new 1756 0 module being created IP Bridge Major Revision Cancel Help In the following dialog box New Module enter the a name for the bridge and define its IP Address in this example 192 168 1 100 Figure 21 New Module Configuring the EtherNet IP Type 1756 ENBT A 1756 10 100 Mbps Ethernet Bridge Twisted Pair Media Bri dg e Vendor Allen Bradley Parent Local lus Ethemet_IP Address Host Name Description IPAddress 192 168 1 100 C Host Name Slot 1 EX Revision 3 1 Electronic Ke
75. e EtherNet IP hosts PLC EtherNet IP interface modules have to be configured using the software RSLogix 5000 in this example version 15 from Rockwell Automation Start RSLogix and open a new project using the File menu Figure 17 gu l RSLogix 5000 Creating a new Ner pem proje ct in 3 2 Edit View Search Logic Communications Tool RSLogix Bj Ctr N Open New Component Configuration of the controller Enter the information related to the controller depending on your configuration as well as a name for the controller Figure 18 New Controller Configuration of the controller Vendor Allen Bradley Type 1 756 155 ControlLogix5555 Controller OK Revision 15 Y Cancel Redundancy Enabled Help Name TURCK Description Chassis Type 1756 410 10 Slot ControlLogix Chassis Y Slot 0 E Create In C ARSLogix 5000 Projects H Your project will be opened offline In order to configure the network please right click I O Configuration and select new Module to add the first host the EtherNet IP bridge to the network 3 6 D301118 BL remote DeviceNet master 0209 Configuration of the network RSLogix 5000 Industri A Open Communications and select the bridge In this example this would be 1756 ENBT A Figure 19 tw m Selection of the elect Module EtherNet IP Description Vendor bri
76. e enter 3000 the Starting Address and 1 in the Quantity of Registers When complete click Finish 2 When the Send Frame dialog box appears make sure Function code 04 checkbox is checked and then press Send The Results will then appear This verifies that the gateway is in Run Mode Figure 79 5 Request Data Verify Run Mode 04 Read Input Registers Function Code Starting Address Quantity of registers 0007 Cancel Einish Figure 80 Modbus Server Tester Run Mode is File View Tests Help verified ex 5 24 Exchange Control Sent 1 Exception y Invalid 0 Received 1 Error 01 0 N Date ms Frame 1 0 00 Req 00 05 00 00 00 06 FF 04 3D 00 00 01 2 3 80 Resp 00 05 00 00 00 05 FF 04 02 00 O1 Elhemet Configuration 192 168 1 7 Reque Ethernet Connection D301118 BL remote DeviceNet master 0209 Reading slave inputs forcing slave outputs Industri A Click on the Send Frame icon and double click on Function code 06 In the Request Data dialog box for Function Code 6 please enter 3001 in the Register Address and 1 in the Register Value When complete click Finish 4 When the Send Frame dialog box appears make sure Function code 06 checkbox is checked and then press Send The results will then appear This will force the first output of node 1 on Figure 81 7 Request Data Turn node 1
77. e mapped in front of Input and Output DeviceNet Slave data if the information is enabled The informa tion is enabled in register 0 3089 0 Disabled 1 Enabled Default Status words If the 9 status words are enabled and mapped into the process data they are located in regis ters 0 Ox3Cff If they are disabled then Word 0 would be receiving Input Data from Device Net Slaves This status information is structured as follows 1 word for the DeviceNet communication word 0 8 4 words for the scanlist information word 1 4 4 words for error nodes information word no 5 8 Table 17 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit Word 0 DNM slave empty CAN error Dup subnet subnet comm status missing X scan list MacID input output error Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 reserved Table 18 Bit Meaning Bit meanings DNM Status 0 IDLE 1 RUN Slave missing 0 subnet ok 1 one or more slaves missing Empty scan list 0 scanlist ok 1 The scanlist of the master is empty No slave has been found during the scan process CAN error 0 no error 1 2 CAN error communication problem with CAN controller DupMacID 0 ok 1 Master DupMacID fault duplicate MAC IDs found in the DeviceNet subnode subnet input 0 ok 1 the size of the input data of the subnet is too large max number of bytes 500 byte s
78. eNet address their Vendor ID their product type and their product code and are stored in the scan list of the DeviceNet master The data of the connected DeviceNet nodes is automatically mapped to the Process image word alignment of the master based on the size of the Consumed and Produced Data of each of the nodes The is read from the Identity object and stored as the expected configuration consis tency value BL67 special scanning behavior Once the scan of the subnet is complete the DeviceNet master the BL67 gateway scans the locally connected I Os mounted right to the gateway and adds their data to the I O mapping Note Please note that after every address or baud rate change power reset has to be executed Attention In case of a node or network fault the Set button must not be pressed It may re map the data D301118 BL remote DeviceNet master 0209 1 5 The DeviceNet master function DeviceNet configuration via IO ASSISTANT 3 FDT DTM The configuration of the network can also be done using the software IO ASSISTANT 3 The IO ASSISTANT 3 is a Network Configuration tool on FDT DTM basis It helps to create networks offline and online Configuring a network offline the network can be checked for validity i e adequate power for the network Configuring a network online the network will assume that the master has valid addresses IP MAC ID and that
79. egister A Request Data dialog box appears The function code is set and cannot be changed The Modbus Server Tester uses the Hex Modbus addressing format For the Baud Rate the register address is 0x308B and for the example the rate will change to 250 kBit s Therefore the register value would be 1 When complete click Finish Note 1 Refer to chapter 4 for the Modbus register layout if any questions on where param eters are located in respective registers D301118 BL remote DeviceNet master 0209 Application Example 67 with Modbus Server Tester 2 Send New Frame eni Continuously 100 ms of Delay Packet Function Codes List 001 Read Discrete Outputs 0 02 Read Discrete Inputs 0 03 Read Multiple Registers 004 Read Input Registers 05 write Single Dutput 0 06 write Single Register 115 write Multiple Outputs 16 write Multiple Registers 0 20 Read General Reference 0 21 Write General Reference 0 22 MASK write Register 0 23 Read Write Multiple Registers Free Request FEL Figure 65 Write to Regis ter 0x308B to 06 Write Single Register set baud rate to 250 kBit s Request Data Function Code 06 Register Address 3088 Register Value 1l Cancel Nex Finish 5 14 D301118 BL remote DeviceNet master 0209 Modbus communications configuration Industri A 2 After clicking Fini
80. erm0A 16 bit 16 bit IM16 0001 IP DN Slot 1 Intern IM16 01 Intern IM 16 16 bit DeviceNet process data 8 Byte 8 Byte Total size for in out data in bytes rounded on full words 12 10 For detailed information about status control word see online help 1 2 map for input data I Byte n 1 Byten Bt 15 13 12 9 8 7 pem mes es mr 3 7S 0A15 14 0A12 1 04 10 9 8 0 7 04 6 04 6 0A 4 0A 3 04 2 04 1 0 0 Word1 0815 0844 0843 0812 08 11 08 10 089 0B 8 08 7 0B 6 0B 5 08 4 08 3 08 2 08 1 08 0 Word2 DeviceNet Slave Adr 11 Byte 1 DeviceNet Slave Adr 11 Byte 0 Word3 DeviceNet Slave Adr 14 Byte 1 DeviceNet Slave Adr 14 Byte 0 Word4 DeviceNet Slave Adr 22 Byte 1 DeviceNet Slave Adr 22 Byte 0 Word5 DeviceNet Slave Adr 63 Byte 1 DeviceNet Slave Adr 63 Byte 0 For detailed information about status control word see online help DeviceNet online process data Process input data 12 Byte 1 3 map for output data Byte n 1 Byten Bit 15 0 ESTE ee p 1 3 quem Wordo 04 15 0444 0A12 04 10 09 8 OA 04 6 04 6 0 4 3 2 1 0 0 Word1 DeviceNet Slave Adr 11 Byte 1 Devic eNet Slave Adr 11 Byte 0 Word2 DeviceNet Slave Adr 14 Byte 1 Devic eNet Slave Adr 14 Byte 0 Word3 DeviceNet Slave Adr 22 Byte 1 Devic eNet Slave Adr 22 Byte 0 Word4 DeviceNet Slave Adr
81. every EtherNet IP devices can be found in its Identity Object Class 01h Instance 01h Attribute 07h defined by the 1 In order to read out data from the Classes an EtherNet IP node the Service Type of the MSG instruction has to be defined as Get Single Attribute service Figure 46 Message Configuration 5 access Get Single Configuration Communication Tag Attribute Message Toe x Type no zl Code e Des D Destination FXENAW_VSC Instance 0 Attribute 0 Enable Enable Waiting Start Done Done Length 0 Error Code Extended Error Code Timed Out Error Path Error Text Abbrechen Obemehmen Hilfe 2 Goto the Monitor Tags tab in the Controller Tags and enter the Class 01h Instance 01h Attribute 07h information into the respective Controller Tag lines see below Figure 47 f RSLogix 5000 PROJ_FXEN_IP_DN in PROF_FXEN_IP_DN ACD 1756 155 Controller Tags PROJ_FXEN_IP_DN controller DER Monitor Tags 3 26 Ele Edit Search Logic Communications Tools Window Help B8x alsa s e 1 358 vi alal Rem Run BB vo Forces Path AB_ETHIP 1 182 168 1 100 Backplane 0 Enabled No Forces b None Installed No Eis SFC Forces 2 e o ox oss Enabled 4 aaron T 2 9 Controller DN Scope
82. fe state M De 12700 A change Global EPR 100 me 10 Configuration 2 0 Extended scanner conticl dagnodt t 10 IL remote Seen l ai sate state 100 me Orbal En Species D301118 BL remote DeviceNet master 0209 5 17 Application Example 81 67 with Modbus Server Tester Scanlist and Node Error present There are two places to see the nodes present in the scanlist Register 0x3080 to 0x3083 and if the status control Information is enabled 0x3089 registers 0 3 01 to 0x3C04 For this portion of the example the nodes present in the scanlist will be identified in registers 0x3080 to 0x3083 The nodes present in the scanlist and a node error will be created when the status and control Information is enabled 1 Click on the Send Frame icon and double click on Function code 04 In the Request Data dialog box for Function Code 4 please enter 3080 in Starting Address and 4 in Quantity of registers When complete click Finish Figure 69 8 Request Data Reading the scanlist for 04 Read Input Registers nodes present Function Code with register Starting Address 3080 0 x3 080 Quantity of registers 0004 Cancel Finish 2 When the Send Frame dialog box appears make sure Function code 04 checkbox is checked and then press Send Figure 70 Modbus Server Tester Register File View Tests Help 0x3080 Re
83. g switches on the module must be set to 400 or 600 in order to enable the DHCP Mode or respectively the PGM DHCP mode After having been connected to the network the FXEN module sends DHCP requests to the server using its MAC ID Figure 14 DHCP request of FXEN gate BOOTP DHCP Server 2 3 File Tools Help Request History 2 4 d to Relation List Ethernet Address MAC IP Address Hostname 15 13 06 DHCP _00 07 46 FF 60 15 Relation List New Delete Enable BOOTP Enable puo Disable BOOTP DHCP Ethernet Address _ Type IP Address Hostname Description Status Unable to service DHCP request from 00 07 46 FF 60 15 Entries 0 of 256 A double click the request entry opens the New Entry dialog box in which IP address can be assigned to the module s MAC ID Figure 15 Setting the IP gj BOOTP DHCP Server 2 3 File Tools Help Request History Clear History Add to Relation List Ethernet Address address via DHCP IP Address DHCP 0007 4 0 15 DHCP fDfrf z4RFFRh DHCP 271217 4 15 13 22 15 13 06 Ethernet Address MAC IP Address 192 168 1 115 Relation List Hostname Description Ethemet Address 00 07 46 FF 60 15 Status Unable to service DHCP reques
84. ge deployment and mounting as well as careful operating and thorough maintenance guarantee the trouble free and safe operation of these devices Notes concerning planning installation of this product Warning All respective safety measures and accident protection guidelines must be consid ered carefully and without exception D301118 BL remote DeviceNet master 0209 List of revisions Industri A List of revisions In comparison to the previous manual edition the following changes revisions have been made Tabelle 1 Chapter Subject new changed List of revi sions all Additions for the new Modbus TCP funciton X 4 DeviceNet master with Modbus TCP 5 Application Example BL67 with Modbus Server X Tester Note The publication of this manual renders all previous editions invalid D301118 BL remote DeviceNet master 0209 0 5 About this Manual 0 6 D301118 BL remote DeviceNet master 0209 Industri A 1 The DeviceNet master function General information 5 Q 3 General T TITULUM 3 RHe E 3 cy mE 3 4 DeviceNet connector
85. ice datato file MModbusTestPw3 Administrator D301118 BL remote DeviceNet master 0209 5 7 Application Example 81 67 with Modbus Server Tester Figure 59 Creating an Modbus report 5 8 Est Wew Project Device Window telp 0494 02490 934 Device tag Asares 01 GN DeviceNel FONL CSGRR T 01 gt 03 GN Dewicenet VONQ XSGON T wem FONL L1600 T wem 10 9 22 OF Modulbus 40LP 400 0 5 02 e 9906090920 ricis D301118 BL remote DeviceNet master 0209 Modbus communications configuration Industri A 3 The Modbus report contains a station description as well as separate mapping tables for the in and output data of the Modbus node status and control word input data as well as of the DeviceNet nodes connected to the master For this example configuration it would be as follows Figure 60 The Modbus report for the example configuration Station repart t 1 Modbus report 1 1 Station description Station address 192 168 1 7 Adr Slot Name TAG Data Size In Data Size Out 0 BL67 GW EN DN 192 168 1 7 BL67 16bit 0 bit GW EN DN 1 BL67 4DI P 4 DI P 4 bit 0 bit 2 BL67 4DO 0 5A P 4 4D0 0 5A P 0 bit 4 bit Summarized diagnostics 1 Words 0 Words DeviceNet Master control status 9 Words 1 Words DeviceNet process dat
86. ics asses 9355 Node Missing 707 T rernm Diageostice m 01 68 Oevicemet T 01 Vas m 03 GN Deicemet FONQ XSG08 T 03 Duagnostc O67 LI j FON 0 1 Dagoan Message F heis bus en Mesue nas com modom sf De staton venia data 2 cora en Boscia See one Tute 0 metum mode 6 puted ranges ee sorso SPI Ins d werte es promet metre t heen corta wer charge 7 Cvervetage yen votage m net regres range 39 VOC 2 Master mensup tno an tea er bus Maher De pute Sim too bg The notes V Dee manner Pat irou See too tag ee ee a of he mache e detect Enoy Sonis Sanes Met a vio ond ate is m Vasar Dupicats Dus constan or wrong sata wow WO ASSTANT fce The forct bees vn De hy 00 p ASSISTANT Tha separates Ia bus ia
87. ing for a FDN20 4S4XSG E MAC ID 11 Input Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O Byte 0 In7 In5 In4 In3 In2 Int Ind Byte 1 IGS OGS reserved Output Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O Byte 0 Out3 Out2 Out1 Inx input x 0 off 1 on Outx output x 0 off 1 on IGS Input Group Status 0 working 1 fault OGS Output Group Status 0 working 1 fault VO mapping for a FDNQ CSG44 T MAC ID 14 Input Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O Byte 0 IGS OGS F In3 In2 Int InO Output Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 0 E Out3 Out2 Out1 Inx input x 0 off 1 Outx output x 0 off 1 on IGS Input Group Status 0 working 1 fault OGS Output Group Status 0 working 1 fault 3 16 D301118 BL remote DeviceNet master 0209 Configuration of the network in RSLogix 5000 mapping for a FDNP SO808G TT MAC ID 22 Industri A Input Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit Byte 0 In7 In6 Ind In4 In3 In2 Int Ind Byte 1 IGS OGS P 2 F E Output Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit Byte 0 Out Out6 Out5 Out4 Out3 Out2 Out1 Inx input x 0 off 1 on Outx output x 0 off 1 IGS Input Group Status 0 working 1 fault OGS Output Group Status 0 working 1 fault VO mapping for a Ni4 DSUS35 2DNetX4 H1150 MAC ID
88. is example this is currently not possible as the DeviceNet scanlist in the master has not been created yet creating a scan list see following steps or page 1 5 Note 1 For a modular station like 67 the software would automatically add the whole BL67 station gateway and directly connected BL67 IO modules to the project structure D301118 BL remote DeviceNet master 0209 1 7 DeviceNet master function 222 ga FIr Tware TCP IP Busaddress management oog d Edit View Project Device Extras Window 2 evice to the uss Ses oes ss project 8 Ec 4 HOST PC Indust 8 Ej TCP IP 8 jv 192 168 1 115 FXEN IMI 6 0001 5 9 Busaddress management 5 Online available devices IndustrialNet 192 168 1 47 255 255 255 0 v leao Eteran Unknown 98 2552552550 192 168 122 98 0 04 Ih FXEN XSG16 0001 IP 3 255 255 255 0 182 168 1 1 192 168 1 252 192 168 1 1 Planned device n Z Add DTMs for connected modules as well BL remote DeviceNet EDS files may be imported for DeviceNet nodes Specific DTMs will then be added for matching DeviceNet nodes If no matching EDS file has been imported generic DTM GN DeviceNet will added sl Servi oe thernet 100 0 on
89. line modules lt x jo lt gt Administrator 9 Go online with the module right click on the module connect 10 Open the module s Online parameters right click on the module Parameters Online parameters 11 Set the parameter Who to New scan of slaves and store list in FLASH and send the parameter changes to the device using the button transmit data to the device Figure 6 Scanning the View Project Device Extras Window Help DeviceNet 02900 als D1 Intern IM16 amp Device Parameters DeviceNet master DeviceNet Master MACID Parameter Value Meaning Baud Rate 125k name Bus ff Counter 0 MACID 0 62 Node Address of the Device Quick Connect Enable MACID is only valid after a p MAX OBJECT ATTRIBUTE 113 Baud rate 0 125 change of the baud rate i WHO current slave list store in FLASH m e SUBNET OUTPUT WORD current slave list store in FLASH 1 250k 1 SUBNET INPUT WORD 2 500k ADR fi y times Global Fail safe state use IDLE Mode Global EPR 100 ms Quick Connect 0 Interscan period 34 ms Disable 1 Enable Ly e OBJECT read only Contains the number of the imnlamantad 12 The DeviceNet master starts the scanning process D301118 BL remote DeviceNet master 020
90. nformation is appended in front of the Process Data based on the value of the register 0x3089 For the explanation of the data mapping the following example subnet structure is assumed Table 16 Example subnet at DeviceNet master DeviceNet Module DeviceNet I O data MAC ID Node address Input Output 2 DeviceNet 2 byte node A 7 DeviceNet 2 byte 2 byte node B 9 DeviceNet 3 byte 7 byte node C 4 6 Note 1 Again a padded byte must be added if the slave data size is odd Example input image Byte 1 Byte O Word 0 process data node address 2 Word 1 process data node address 7 process data node address 9 Word n 1 padded byte process data node address 9 Word n unused D301118 BL remote DeviceNet master 0209 Process data Example output image Industri A Byte 1 Byte 0 Word 0 process data node address 7 Word 1 Word n 2 process data node address 9 Word n 1 process data node address 9 Word n padded byte process data node address 9 D301118 BL remote DeviceNet master 0209 4 7 DeviceNet master with Modbus Status control words of the DeviceNet subnet via I O data The DeviceNet master provides an additional status information 9 words and control bytes 1 word for the DeviceNet subnet Status and control information will b
91. nnector the different devices is used to access DeviceNet subnet with up to 63 vendor independent DeviceNet nodes Note The DeviceNet master function of the device is only activated if a subnet is con nected to the DeviceNet M connector DeviceNet connector Depending on the module type used the connection of the DeviceNet M master to the subnet is realized as follows FXEN The FXEN module provides two 7 8 DeviceNet connectors DN male one female which are assigned as follows Figure 1 7 8 tors and pin 4 3 2 1 Shield assignment 5 1 2 V lt 3 V 3 4 CAN H 1 5 5 CAN L BL67 BL67 gateway provides one male M12 x 1 DeviceNet connector DN which is assigned as follows Figure 2 3 2 Pin No M12 male e connector and 1 1 Shield pin assignment 2 not connected 3 Ground 4 CAN H 5 CAN L 1 4 Note Please use an external bus tee or Y junction for the bus transmission D301118 BL remote DeviceNet master 0209 DeviceNet subnet Industri A Configuration of the DeviceNet subnet DeviceNet configuration with SET button hardware Upon pressing the SET button at the device the DeviceNet master scans all nodes attached to the DeviceNet subnet The network is then automatically mapped All nodes connected to the subnet are read in with their MAC ID Devic
92. nput Image oer e ERR e ce Fco TE 4 6 Example output Image e tnt fue bete 4 7 Status control words of the DeviceNet subnet data 4 8 Otatus 0019 4 8 ONG feci tho tot ette 4 10 oro p PEE 4 11 Register layou 4 11 Application Example BL67 with Modbus Server Tester 50 5 2 a Decca dd 5 2 00 5 2 Network configuration and IP address setting 5 3 Settings of the network interface 5 3 0301118 BL remote DeviceNet master 0209 6 Industri A Address setting at the BL67 module 5 3 Modbus communications configuration 7 7 5 4 Modbus Server Tester configuration 5 4 Examples of communication parameter changes and I O testing 5 13 Reading slave inputs and forcing slave outputs essent 5 22 Index D301118 BL remote DeviceNet master 0209 iii 0301118 BL remote DeviceNet master 0209 Industri A About this Manual Documentation
93. o file lt 0301118 BL remote DeviceNet master 0209 DeviceNet subnet Indust A Select your network interface and start the network scan using the search button Figure 4 Scan function i TCP IP Busaddress management Planned devices Device type 0 Busaddress Designation T Device short name FXEN X5SG16 0001 P 1100019 8 192 168 1 200 FXEN XSG16 0001 P FXEN IM16 0001 IP DN 1100014 8 192 168 1 115 FXEN IM16 0001 IP DN JD Disconnected G Data set 4 The software scans the Ethernet Network all devices which can be found are listed up with their IP address their Ethernet MAC ID and if the devices are known to the software with their device type Select the module with the DeviceNet master in this example the module FXEN IM16 0001 IP DN and add it to the project using the button Device DTM to the project see figure below 6 The software identifies the connected FXEN as a module with DeviceNet master and therefore tries to add the connected DeviceNet nodes to the station structure 7 Inthe following dialog box check Add DTMs for connected modules and press ok and the FXEN module is added to the project structure 8 If the DeviceNet master has already created a scanlist of it s DeviceNet network all DeviceNet nodes stored in this scanlist will also be added to the project But In th
94. ode 1 Node 0 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Node 15 14 13 12 11 10 Node9 Node 8 Word 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit Node 55 Node54 Node53 Node52 Node51 50 Node49 Node 8 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Node 63 Node62 Node61 Node60 Node59 Node58 57 Node 56 D301118 BL remote DeviceNet master 0209 4 9 DeviceNet master with Modbus Control word The control word is used to set the DeviceNet master into RUN IDLE mode If the 1 control word is enabled and mapped into the process data they are located in regis ters OX3DOO Ox3DFF If they are disabled then Word 0 would be receiving Output Data from Device Net Slaves This control word is structured as follows Table 21 Word 0 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O reserved 1 RUN O IDLE Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 reserved D301118 BL remote DeviceNet master 0209 RUN IDLE Mode Industri A RUN IDLE Mode Default operation The RUN IDLE Mode is basically controlled by Modbus TCP As soon as the Modbus TCP connection is established the subnet goes into the Run Mode When there is no Modbus TCP connection present the gateway is in the IDLE Mode Run IDLE functionality can be overridden by the IO ASSISTANT Force Mode
95. on and selecting the EtherNet IP node with which the PLC has to communicate this example this is the FXEN IM16 0001 IP DN with the IP address 192 16 1 115 7 Confirm your settings Figure 44 Message Configuration FXEN with DN 5 access Configuration Of Coniiguation Communication Tag the path for the Path MSG instruction Message Path Browser Path FXEN EtherNetlP with FXEN EtherNellP with 1 0 Configuration 1756 Backplane 1756 47 101 1756 55 IP DN Enable 9 1 1756 DNB DNET DeviceNet Eror Cd 5 2 1756 EtherNetlP FXEN Error Path Ethernet Error Text g 1756 ENET B EtherNetlP FXEN ETHERNET MODULE EtherNetP with Camel Triggering the MSG instruction The MSG instruction has to be triggered by setting a start bit 8 Adda normally open contact to your rung and assign the FXEN start bit Figure 45 E MainProgram MainRoutine Normally open contact for trig start VSC Um gering the MSG onc FXEN with DN 5 access instruction MainRoutine 9 Goonline with the PLC and download your program D301118 BL remote DeviceNet master 0209 3 25 Application example FXEN at Allen Bradley PLC Example for VSC access Read out product name of FXEN IM16 0001 IP DN The product name of
96. r function is part of the modular system BL67 The gateway is used to connect a modular BL67 station with different and technology modules to Modbus TCP Additionally this gateway offers the possibility to connect a complete DeviceNet subnet to it and to handle the process data of the DeviceNet subnet via Modbus TCP see also chapter 1 The connection to Modbus TCP is realized via one 4 pole D coded M12 x 1 round connector Note 1 The 67 gateway contains no integrated Ethernet switch D301118 BL remote DeviceNet master 0209 Modbus data layout Modbus data layout The DeviceNet master s register layout is structured as follows Industri A Table 13 Modbus Layout A f status and control word are en abled other wise the DN master s pro cess data start at this register ad dress Direction In place Register Process data Comment Input Always 0 0000 Local process data Always Status of GW See Note word Below Always Module bus Diagnostics Always 1 Bit for each Module Must be 0x0c00 A DN master status 0x3089 register enables enabled word this information Must be Slave in scanlist 0 3089 register enables enabled 0 15 this information Must be Slave in scanlist 0x3089 register enables enabled 16 31 this information Must be Slave in scanlist 0x3089 register enables enabled 32 47 this information Must be Slave in
97. r to guarantee error free communication please observe that a rest margin of at least 5 ms should be calculated 114 116 reserved 72 h to 74h 117 75h Extended G S WORD By enabling this parameter the I O scanner control Data of the DeviceNet Subnet are diagnostics mapped into the input data of the DeviceNet subnet 0 mapping disabled 1 mapping enabled D301118 BL remote DeviceNet master 0209 DeviceNet master with EtherNet IP DeviceNet slave class VSC 123 7Bh This class contains parameters and data of each DeviceNet slave Class Instance Instance O Object Instance 1 to 64 DeviceNet nodes with MAC ID 0 to 63 Object Instance 0x01 refers to DeviceNet node with MAC ID usually this is the master Object Instance 0x02 refers to DeviceNet node with MAC ID 1 Note Please refer to paragraph Class Instances of the VSCs page 2 11 for the descrip tion of the class instance for the VSC Object Instance 0x40 refers to DeviceNet node with MAC ID 63 Table 12 Object instance 1 to 63 Attr No Attribute name Type Description dec Set hex 4 Get Revision STRUCT Revision Number of the connected Major Revision OF USINT slave Minor Revision USINT 100 Max object G USINT Contains the number of the last 64h attribute object attribute to be implemented 101 Attribute list G ARRAY OF List of all attributes that are 65h USINT supported b
98. rA When the Modbus Server Tester is running the user will be asked to select how they communicating with the device Ethernet or Serial For the BL67 EN DN Ethernet is selected Then the IP address of the Gateway is entered D301118 BL remote DeviceNet master 0209 Modbus communications configuration Figure 55 Setting the IP Modbus Server Tester adaress for File View Tests Ha Modbus Tester to connect with Gateway 5 Configuration Exchange Control Ethernet Serial Line Received Serial Line Tests Burst Add Silence Connection IP Address 192 168 1 4 Response Timeout Time out 10 sec Address Slave Address FF D301118 BL remote DeviceNet master 0209 5 5 Application Example 81 67 with Modbus Server Tester The user will be notified if the connection has taken place or not Figure ae Modbus Server Tester Modbus Tester ven Help connection suc 5 5 4 i cess Exchange Control Sent 0 Exception Invalid fr Received 0 0 No response 0 Date ms Ethemet Configuration 1821681 7 Clear T Ethernet Connection Figure 57 Modbus Server Tester Error Modbus Tester connecti on Ethernet Connection Failed 7 failed 5 6 D301118 BL remote DeviceNet master 0
99. rs local Red green DeviceNet node missing Check the communication to the flashing DeviceNet nodes Check the Global EPR Global Expected Packet Rate and set it to a larger value using the IO ASSISTANT VSC122 0x74 instance 1 Attr 70h for EtherNet IP or register 0x308E for Modbus TCP MS OFF No supply voltage Green Display of logic connection to Master 1 Ethernet IP Connection Green Ready for operation flashing Red Error Red flashing DHCP BOOTP Searching settings D301118 BL remote DeviceNet master 0209 The DeviceNet master function Getting started for the DeviceNet master BL67 start up behavior This section assumes that the device is in Out of the box state with all parameters set to default values It provides a step by step guide on starting up the network 1 Make sure that the switch position is not 900 F Reset 2 Power up the device DNLED has to be OFF 4 Setup the MAC ID DeviceNet address of the master vialO ASSISTANT 3 FDT DTM via VSC122 0x74 instance 1 Attr 01 in EtherNet IP page 2 11 via Modbus TCP register 0x308A Wait for approx 1 minute Make sure that the GW LED is green for 20 seconds Power down the device Power down all the slaves 9 Turn on the slaves 10 Turn on the device 11 Press and hold the SET button until the DN LED starts blinking Depending on the number of slaves
100. rt 0 disable 1 enable default different from ODVA 0 308 RW Global EPR Short Specifies the EPR in ms default 100ms With 100ms the subnet limitations are about 10 slaves and 256 bytes process data If there are more than 10 slaves or more than 256 bytes of data needed the user should increase the Global EPR value Ox308F RO Interscan period Short Interscan period in ms This is status information which allows the user to know how much margin allowed when defining the Global EPR D301118 BL remote DeviceNet master 0209 RUN IDLE Mode Industri A Table 22 Register Access Name Type Description Register layout Range 0x3100 Slave Input Data Array Up to 32 bytes input data per 0x34FF slave allocated on the 32 byte boundary If the slave data is bigger than 32 bytes it will be truncated 0 3500 RW Slave Output Data Array Up to 32 bytes output data per Ox38FF slave allocated on the 32 byte boundary If the slave data is bigger than 32 bytes it will be truncated 0 3900 RW Get Set Object Structure This register set allows to get set Ox39FF Command specific system objects which Request provide a powerful mechanism to configure the DeviceNet master parameters send explicit messages to slaves The format of this structure is the following Byte 0 Bits 0 3 req counter gt used for synchronization purposes Bits
101. s 0 working 1 fault IOS Input Open Status 0 working 1 fault VO mapping for a FDONLzLOSOO T MAC ID 22 Input Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Byte 0 In7 15 In4 In3 In2 In1 InO Byte 1 ISS 7 155 6 ISS 5 ISS 4 155 3 15 2 ISS 1 155 0 2 05 7 05 6 05 5 05 4 05 3 105 2 105 1 105 0 Inx input x 0 off 1 on ISS Input Short Status 0 working 1 fault IOS Input Open Status 0 working 1 fault 5 12 D301118 BL remote DeviceNet master 0209 Modbus communications configuration Industri Examples of communication parameter changes and I O testing Baud Rate change The registers for the Baud Rate Setting are Read Write When writing a new Baud Rate setting the gateway will need to have its power cycled so the new setting s will be imple mented This example will show you how to set the Baud Rate The same sequence can be used for all applicable parameter settings the register to change the Baud Rate is 0x308B Under Tests select and click on Send Frame or click on the Send Frame icon on the toolbar Figure 63 Send Frame Modbus Server Tester Exchange 5 Sent Exception Invalid Received 0 N Date ms Ethernet Configuration 7 Clear Ethernet Connection 1 Inthe dialog box double click on function code 06 Write Single R
102. sh the Function code 06 Write Single Register should be checked Press Send the results will show that a 1 was sent to register 0x308B Figure 66 Modbus 5 Test Write results DERI US YET File View Tests Help TEREKE Exchange Control Sent 1 Exception p Invalid 0 Received 1 Error 01 Noresponse be Tesen 71 0 00 Req 00 01 00 00 00 06 FF 06 30 8B 00 01 4 81 Resp 00 01 00 00 00 06 FF 06 30 8B 00 01 Ethernet Configuration 192 168 1 7 Reque Ethernet Connection D301118 BL remote DeviceNet master 0209 5 15 Application Example 81 67 with Modbus Server Tester After the results have been confirmed cycle power on the gateway so the changes will be implemented When power resumes and the gateway DN has a steady green LED signal Click on the Send Frame icon and double click on Function Code 04 Read Input Regis ters Enter Starting address to be 308B and the Quantity of Registers to be 1 Click Finish and then send for the Read Results to confirm that the Baud Rate has been changed to 250 kBit sec or 1 in register Figure 67 Read results Request Data 04 Read Input Registers Function Code Starting Address 308B Quantity of registers 0001 St Modbus Server Tester Ek File View Tests Help c 74 Exchange Control Sent 1 Exception y Invalid 0 Rageived 1 Error 01 Noresponse 0
103. straBe 7 Tel 49 0 208 4952 0 Fax 49 0 208 4952 264 E Mail more turck com Internet www turck com D301118 0209
104. sults gc gt Exchange Control Sent 1 Exception p Invalid 0 Received 1 Error Noresponse 0 N Date ms Type Frame 1 0 00 Req 00 05 00 00 00 06 FF 04 30 80 00 04 2 4 24 Resp Ethemet Configuration 192 168 1 7 00 05 00 00 00 OB FF 04 08 08 00 40 00 00 00 00 Requests Transmission Stoppe Ethernet Connection Opened The results breakdown is as follows byte number is for Nodes 1 amp 3 2 8 hex and 08 byte number is for Node 11 40 hex byte number is for Node 22 D301118 BL remote DeviceNet master 0209 Modbus communications configuration Industri A 4 To look at the nodes present in scanlist in registers 0x3C01 to ox3C04 the register 0x3089 must have be enabled To enable the register value must be equal to 1 Click on the Send Frame icon then double click on the write single register function code 06 Enter 3089 in the Register Address text box and 1 in the Register value text box When complete click Finish Figure 71 Request Data Enable Status Control Info 06 Write Single Register Function Code Register Address Register Value Cancel Einish 5 When the Send Frame dialog box appears make sure Function code 06 checkbox is checked and then press Send The results will then appear Figure 72 Modbus Server Tester Results of En Fie Tests Heb able Status Control Info Exchange Control Sent 1 Exception y Invalid 0
105. t Slave Adr 63 Byte 1 DeviceNet Slave Adr 63 Byte 0 For detailed information about status control word see online help DeviceNet online process data Process output data 10 Byte G Control Word of the station H Output data of the modules in the DeviceNet subnet DeviceNet addr 11 to addr 63 see also I O data mapping for the example station Note The I O ASSISTANT mapping is depicted in byte format In RSLogix the in and output size entries at the Assembly instances are normally depicted in words DATA INT or even in double words DATA DINT The I O ASSISTANT mapping results have thus to be converted into the respective data format 3 12 D301118 BL remote DeviceNet master 0209 Configuration of the network in RSLogix 5000 Industri A Downloading the I O configuration If the configuration of the network is completed it can be downloaded to the controller by using for example the Communication Download command In the Download dialog box start the download by pressing the Download button If an error message is generated warning that the communication path can not be found please open the Path menu see Figure 31 Communication Path select your controller and press Set Project Path see Figure 32 Set Project Path Figure 30 RSLogix 5000 Error message i Failed to go online with the controller Communications path needed Error 701 8
106. t and can vary between 2 and 496 bytes D301118 BL remote DeviceNet master 0209 2 9 DeviceNet master with EtherNet IP VSCs for the DeviceNet master function The VSCs describing the standard EtherNet IP communication of the devices can be found in the manuals for the Ethernet IP devices FXEN document no 0301155 BL67 document no D300888 The manuals can be downloaded from www turck com D301118 BL remote DeviceNet master 0209 VSCs for the DeviceNet master function DeviceNet master class VSC122 7Ah This class contains parameters and data for the DeviceNet master Class Instances of the VSCs Industri A Note 1 Class Instance attributes are the same for each Vendor Specific Class Class specific Object Instances and the corresponding attributes are explained be low for the different VSC The general VSC Class Instance attributes are defined as follows Table 10 No Attribute Name Type Description Class instance Set 100 0x64 CLASS G UINT States the revision number of the REVISION class Maj Rel 1000 Min Rel 101 0x65 MAXINSTANCE USINT Contains the number of the highest instance of an object created on this level in the class hierarchy 102 0x66 OF INSTANCES USINT Contains the number of Object Instances created in this class 103 0x67 MAX CLASS G USINT Contains the number of the last Class ATTRIBUTE
107. t from 00 07 46 60 15 Entries D of 256 3 4 D301118 BL remote DeviceNet master 0209 Network configuration IP address setting Industri A The BootP DHCP Server sends the IP Address via BootP DHCP to the FXEN module and after a few seconds the module answers with its new IP address when having stored it Figur 16 BOOTP DHCP Server 2 3 E iul xl Setting the IP ESS adaress via Request History DHCP Clear History Add to Relation List hrmin sec 5 15 05 4 60 15 15 15 05 DHCP 00 07 46 FF 60 15 15 13 54 DHCP 00 07 46 60 15 15 13 22 DHCP 46 FF 60 15 15 13 06 DHCP 00 07 46 60 15 Relation List New Delete Enable BOOTE Enable Disable Ethemet Address MAC IP Address Hostname Description 00 07 46 FF 60 15 DHCP 1921581115 Status Entries Sent 192 168 1 115 to Ethemet address 00 07 46 FF 60 15 1 of 256 The Relation list can be stored for further applications It can serve for permanent assign ment of defined IP addresses to MAC IDs modules Attention If the BootP DHCP server is shut down the FXEN module loses the IP address after a power reset D301118 BL remote DeviceNet master 0209 3 5 Application example FXEN at Allen Bradley PLC Configuration of the network in RSLogix 5000 Th
108. tandard DeviceNet nodes can thus be connected to the primary fieldbus The handling of the DeviceNet process data is done in the PLC connected to EtherNet IP or Modbus TCP for example The DeviceNet master function is currently implemented in the following TURCK products EtherNet IP FXEN compact I Os FXEN with EtherNet IP FXEN IM16 0001 IP DN page 2 2 BL67 modular I Os BL67 with EtherNet IP BL67 GW EN IP DN page 2 3 Modbus TCP BL67 modular I Os BL67 with Modbus TCP BL67 GW EN DN page 4 2 D301118 BL remote DeviceNet master 0209 Power supply Industri A Power supply General The DeviceNet master on the modules provides CAN_H CAN_L Shield and Ground for the DeviceNet communication The 24 V DC DeviceNet supply voltage V V for the master and the connected DeviceNet nodes has to be provided from an external power supply unit FXEN The FXEN station itself is also supplied through the DeviceNet cable via the external power supply No additional power feed at the FXEN module is necessary BL67 In BL67 only the DeviceNet master is fed through the DeviceNet supply voltage V The modular 67 station gateway plus connected modules has to be supplied additonally through the 7 8 power connector at the gateway D301118 BL remote DeviceNet master 0209 1 3 The DeviceNet master function DeviceNet subnet The DeviceNet co
109. te input data of subnet node Module B MAC ID 9 Word n Last byte of input data of subnet node Module B MAC ID 9 Wordn 4 Input data of subnet node Module C MAC ID 25 2 4 D301118 BL remote DeviceNet master 0209 55 Industri A Example output image Byte y Byte x Word 0 Control word of EtherNet IP module with DeviceNet master Word 1 m byte output data of local channels Word n Word n 1 2 byte of output data of subnet node Module A MAC ID 7 Word 2 2 byte of output data of subnet node Module B MAC ID 9 Wordn 3 2 byte of output data of subnet node Module C MAC ID 25 Mord 4 5 Last byte of output data of subnet node Module C MAC ID 25 Word n 5 4 byte output data of subnet node Module D MAC ID 62 Word n 6 D301118 BL remote DeviceNet master 0209 2 5 DeviceNet master with EtherNet IP Status control words of the DeviceNet subnet I O data The DeviceNet master provides an additional status information 9 words and control bytes 1 word for the DeviceNet subnet These bytes can be mapped into the process data enable mapping VSC122 7Ah instance 1 75h Status words If the 9 status words are mapped into the process data they are mapped in front of the input data of the DeviceNet subnet nodes which means they directly follow the input data of the local
110. ubnet output 0 ok 1 the size of the output data of the subnet is too large max number of bytes 500 byte comm error 0 no error 1 communication error or bus off 4 8 D301118 BL remote DeviceNet master 0209 Status control words of the DeviceNet subnet I O data Industri A The following table represents the scan list of the master Each node which has been scanned as being a part of the subnet is indicated by one bit the order is done by Node 0 no node is found GW scan list 1 2 node is found and stored in the master s scan list Table 19 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O Word 1 Node 7 Node 6 Node 5 Node 4 Node 3 Node 2 Node 1 Node 0 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Node 15 14 13 12 11 10 Node9 Node 8 Word 4 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Node 55 Node54 53 Node52 Node51 Node50 Node49 Node 48 Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Node63 Node62 61 Node60 Node59 58 57 Node 56 The following bits describe each node status They show a list of nodes to which the DeviceNet master could not build up communication 0 node present 1 2 node not present node in error Table 20 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit O Word 5 Node 7 Node 6 Node 5 Node 4 Node 3 Node 2 N
111. ubnet to UCMM to shorten the time for scanning the DeviceNet E Set all nodes in the DeviceNet subnet to autobaud to simplify possible changing of the baud rate Check the DeviceNet master alarms to see the current state of the operations alarms Errors Bus off duplicate MAC ID DeviceNet address For EtherNet IP these alarms can be found in the Vendor Specific Classe VSC122 see section DeviceNet slave class VSC 123 7Bh page 2 14 Modbus TCP these alarms can be found in register 8 D301118 BL remote DeviceNet master 0209 1 13 DeviceNet master function The DeviceNet master in the IO ASSISTANT FDT DTM The I O ASSISTANT 3 is the TURCK project planning software FDT DTM basis for config uration parameterization set up support diagnostics documentation etc The software provides 2 possibilities for accessing the nodes of the DeviceNet M network 1 Parameterization via DTMs after installation of EDS files for the connected nodes Figure 8 ED S import File Edit View Project Device Extras Window 3 0 0159 82 5 Device tag 0 4g HOST PC c 3E 2 ead emen Select import file EDS file select Choose the import file ge o Load from device 85
112. ules for EtherNet IP are delivered with the default IP address 192 168 1 254 Note EN In order to build up the communication between the TURCK product and a PLC PC or a network interface card both devices have to be hosts in the same network To achieve this you have whether to adjust the gateway s IP address via BootP DHCP etc for integrating it into your own network or E to change the IP address of the used PC or network interface card In this example the network setting of the network card are the following IP address 192 168 1 47 Subnet mask 255 255 255 0 Address setting at the FXEN module via DHCP mode In this application example the IP address is set via DHCP using the software tool BootP DHCP Server version 2 3 2 0 from Rockwell Automation die zix BootP Server File Tools Help from Rockwell Request History Automation Clear History Add to Relation List hrmin sec Type Ethemet Address IP Address Hostname BOOTP DHCP Server Version 2 3 2 0 Copyright 2003 Rockwell Automation Inc Relation List Entries 0 of 256 Status D301118 BL remote DeviceNet master 0209 3 3 Application example FXEN at Allen Bradley PLC Addresses in the range from 1 to 254 can be allocated in the default subnet 192 168 1 The addresses 0 and 255 are reserved for broadcast messages in the subnet Note The rotary codin
113. using a right click on the respective station Additional functions station report The station has to be connected 2 Activate the EtherNet IP report check box and create the station report by pressing the Apply button Figure 25 BL NNNM Creating an DN M Lp 192 168 1 115 F XEN IMT6 0001 1P ON Station report Joe EtherNet IP asses 935 E report 7 Is Station roport Raon report Compare wth connected saton Ferco contrat Accessory Import of amp Compact and EDS DIM martenance about device 3 device data to fhe MSTR PW 3 10 0301118 BL remote DeviceNet master 0209 Configuration of the network in RSLogix 5000 Industri A 3 The EtherNet IP report contains a station description as well as separate mapping tables for the in and output data of the EtherNet IP node status and control word input data as well as of the DeviceNet nodes connected to the master For this example configuration it would be as follows Figure 26 The EtherNet IP 1 1 Station description report for the Example Station address 192 168 1 115 configuration Adr Slot Name TAG Descr Data Size In Data Size Out Slot 0 FXEN IM 16 0001 IP DN 192 168 1 115 FXEN T
114. utput G S 70h ARRAY OF WORD Contains the output data consumed data of the slave 112 Input G 70h ARRAY OF WORD Contains the input data produced data of the slave 113 71h Fail safe set G S ARRAY OF WORD Contains the output data fail safe values for the slave If there was no set default gt 0 114 72h Slave Fail safe G S state BYTE 0 all outputs set to 0 default 1 all outputs set to 1 2 use attr 113 115 73h Quick_Connect G BOOL 0 Disabled 1 Enabled 116 74h CCV G UINT Contains the Configuration Consis tency Value D301118 BL remote DeviceNet master 0209 DeviceNet master with EtherNet IP D301118 BL remote DeviceNet master 0209 Industri A 3 Application example FXEN at Allen Bradley PLC Hard and software 2 2 2 Network configuration and IP address setting 3 Settings of the network interface card 3 Address setting at the FXEN module DHCP mode 3 Configuration of the network RSLogix 5000 6 Configuration of the
115. valid 50 State Ch zi Output Summary Valve Output 0 0 Valve Output 0 0 Status Valve Output 0 0 Fault Action Valve Output 0 0 Fault Value Valve Output 0 0 Idle Action Valve Output 0 0 Idle Value Communication Setup Node Address Baud Rate Disable Autobaud Enable Quick Connect Mode Connection Mode No Faull Fault Value Attribute Output OFF Idle Value Attribute Output OFF 63 125kB Enabled default Enabled Predefined M S Connection m FXEN DNET MSTR PW Administrator 1 14 D3011 18 BL remote DeviceNet master 0209 The DeviceNet master the IO ASSISTANT 3 FDT DTM 2 Class Instance Editor for Generic unknown DeviceNet nodes Figure 10 Devi Class Instance ee Editor for the 3 m3 15 9 Bas DeviceNet master H Em 192 168 1 115 FXEN IM16 0001 IP DN O 9 01 Intern IM16 5 DeviceNet information Souk V 22 Vendor ID ugs 63 Ni4 DSU35 2DNetX4 H1150 V1 1 Device Profile Ej 192 168 1 200 FXEN XSG16 0001 IP Product Code m 01 Intern XSG16 Minor Major Rev Status Serial Number Product Name Class Instance Attribute KD Connected Device Xmz MSTRPW Administrator Note For detailed information about the I O ASSISTANT and
116. witch D301118 BL remote DeviceNet master 0209 2 3 DeviceNet master with EtherNet IP Process image The nodes of the DeviceNet subnet are mapped into the input image of the EtherNet IP device In the process image their in and output data follow the in and output data of the local I Os directly placed on the device g FXEN or connected to the device 67 The mapping of the data of the DeviceNet subnet is structured according to the nodes DeviceNet MAC IDs see chapter 3 Application example FXEN at Allen Bradley PLC For the explanation of the data mapping the following example subnet structure is assumed Table 4 Example subnet at DeviceNet master DeviceNet ModuleD DeviceNet I O data MAC ID A Status and Input Output Control byte are mapped EtherNet IP module with 1 word status A 1 word control A into process DeviceNet master data map ping can be local I O channels n byte n byte deactivated 5 see in 7 DeviceNet 2 byte 2 byte chapter 3 node A 9 DeviceNet 3 byte 2 byte node B 25 DeviceNet 1 byte 3 byte node 62 DeviceNet 4 byte node D Example input image Byte y Byte x Word 0 Status word of EtherNet IP module with DeviceNet master Word 1 m byte input data of local I O channels Word n Word n 1 1 byte input data of subnet node Module A MAC ID 7 Mord n 2 1 by
117. y this instance 102 Node Address G USINT Node address of the connected 66h slave 103 Vendor G UINT Vendor ID 67h 104 Product code G S UDITN e g device ID 68h 105 Product type G UINT Product Type see also 69h DeviceNet Class 1 Instance 1 Attribute 2 for details 106 Product name G STRUCT 6Ah Length OF Name USINT STRING 107 Node Mode G BOOL 0 not present 6Bh 1 is present and running D301118 BL remote DeviceNet master 0209 VSCs for the DeviceNet master function Industri A Table 12 Attr No Attribute name Object instance dec Set 1 to 63 hex Type Description 108 6Ch Node State G ENUM USINT 0 Slave not in use 1 4 Slave tries to allocate 5 Slave sets explicit message EPR 6 Slave activates timer 10 Slave sets quick connect 20 Get VendorlD 21 Get product type 22 Get product code 23 Get revision 24 Get serial 25 Get product name 26 Get CCV 30 Get product size 31 Get cons size 40 Allocate Poll message 41 Set Poll EPR 42 Mode 50 Re connect error wait 60 Close poll message 61 Close explicit message 80 Master 90 Network Found 91 Network Not Found 109 6Dh Slave output G word count UINT States the number of output words consumed bytes of slave 110 6Eh Slave input word G count UINT States the number of input words produced bytes of slave 111 O
118. ying Compatible Keying M Open Module Properties Cancel Help In the following dialog box Module Properties Local press OK You may also browse offline through the module properties when you click Next At this point there is no need for further entry action D301118 BL remote DeviceNet master 0209 3 7 Application example FXEN at Allen Bradley PLC If Next is selected the Module Properties window displays information that will be avail able when the module is online The configuration of the interface is completed Press Finish to close the dialog box Configuration of the FXEN Add the FXEN to the I O configuration by using a right click on the EtherNet IP bridge module 1756 ENBT A and select New Module Open Communications and select the entry Generic Ethernet Module to configure a BL67 gateway Figure 22 Beene elect Module Add generic Ethernet Description Vendor module 1757 FFLD A 1757 Foundation Fieldbus Linking Device Allen Brad 1768 1768 10 100 Mbps Ethernet Bridge Twisted Pair Media Allen Brad 1769 L32E Etherne 10 100 Mbps Ethernet Port on CompactLogix5332E Allen Brad 1769 L35E Etherne 10 100 Mbps Ethernet Port on CompactLogix5335E Allen Brad 1788 20 1788 Ethernet to DeviceNet Linking Device Allen Brad 1788 1788 10 100 Mbps Ethernet Bridge Twisted Pair Media Allen Brad 1788 EWEB A 1788 10 100 Mbps Ethernet Bridge w

Download Pdf Manuals

image

Related Search

Related Contents

Samsung YP-T9JBQB Bruksanvisning    HSM SECURIO B24  

Copyright © All rights reserved.
Failed to retrieve file