Home

Modicon M340, Premium, Atrium and Quantum Using Unity Pro

image

Contents

1. Function Fipway Fipio Uni Character Modbus Modbus TCP IP_ ETHWAY CANopen Telway mode Plus Premium ADDR X X X X X X X X X READ VAR X X X X X X X WRITE_VAR X X X X X X X SEND_REQ X X X F X X X X X DATA EXCH X X xX xX PRINT_CHAR X X X X INPUT_CHAR X X X X INPUT_BYTE xX z OUT_IN_MBUS X xX OUT_IN_CHAR X X xX X z SEND_TLG X s 2 RCV_TLG X gt k 5 READ_GDATA E X WRITE_GDATA xX 3 UNITE SERVER xX 2 7 WRITE Asyn i 2 xX READ Asyn xX 4 Quantum CREAD_REG xX x s i CWRITE_REG xX x ModbusP_ADDR_ S 7 READ _REG g X X WRITE REG X x z 35010500 05 2010 31 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services Function Fipway Fipio Uni Telway Character mode Modbus Modbus Plus TCP IP ETHWAY CANopen SYMAX_IP_ADDR TCP_IP_ADDR MBP_MSTR XMIT X X x Xx XXMIT ICNT lt Xx Xx x lt Modicon M340 ADDM DATA_EXCH x READ VAR WRITE VAR x Xx x Xx lt Xx x Xx INPUT_BYTE INPUT_CHAR PRINT_CHAR SEND EMAIL x Ki XK Xx
2. i Tee HNC M e Ethernet E a 3 oli 0 i a E witch a H gmmg fae Ethernet Modbus Plus Ethernet Bridge aeedd pagg B fol E bidd Il Modbus Plus gt Modbus Plus ro Bapag ae BERBEI NOTE Access is possible from devices on the Modbus Plus network across Ethernet Modbus Plus bridges In contrast the devices on the second Modbus Plus network cannot be accessed by an Ethernet device via the Bridge Plus 44 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Communication Architectures Multi Network Ethernet Fipway Architecture The diagram below shows an Ethernet Fipway multi network Ae i Ethernet O El z El EE 1 O lea _ 2 Switch I MRE gesp Beas Ethernet s 8 Es fj B 3 1 fi mat E nen SE De eae oes tM Fipwat ai cy i SEET lo Fipway NOTE All inter device exchanges are possible 35010500 05 2010 45 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www ba
3. solne gt Ethernet a a eS al H Switch BL ii M Mg P A B em man Ea Ee es 5 O maon Ea Ethernet addee Bag ii E ge ELEL fe a Modbus Ethernet Bridge as Uni Telway EEE H GRRE aaa kece s E Modbus wA 40 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Communication Architectures The following diagram shows a global communication architecture with a Modbus and Fipio bus Unity Pro PL7 XBTL a aa ma a o a s E Tan gE LM i tA Ethernet w fH fai E Jl l i at aa Switch LOE p i F EH Ethernet kt Modbus Ethemet 8 amp 7 1a da 3 Bridge aza Mu ee ee ie Sani H al Modbus if F d NOTE Depending on the type of network used the interconnection is made either
4. 02 03 04 05 06 07 7 6 S Or Ti OO Ue Rack 0 Module 0 Channel 3 Ethernet port available on BMX P34 2020 2030 20302 processors Rack 0 Module 0 Channel 2 CANopen port available on BMX P34 2010 20102 2030 20302 processors 35010500 05 2010 87 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modicon M340 PLCs Addressing Example of Modicon M340 Ethernet Addressing At a Glance With this type of addressing a station can access different station connected to logical network Connection via CPU Ethernet port A device with the IP address 139 180 204 2 is connected to the Ethernet network It Ethernet 1 hostAddr 139 180 204 1 Ethernet Netlink Ethermet_1 alas UM Address settings station 1 ADDM 0 0 3 139 180 204 2 or Address settings station 1 ADDM Ethernet _1 139 180 204 2 hostAddr 139 180 204 2 0 il ol SUS Sa Seo 71S Station 1 88 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modicon M340 PLCs Addressing Example of Modicon M340 CANopen Addressing At a Glance With this type of addressing a master station can access different slaves connected to CANopen bus Addressing Rules The syntax
5. Illustration Distribution group Multicast IP 255 255 255 251 Data distribution LIES 7 KOUM Intranet control 2 n stations jm Er e Ea f Dl P ME Ee fe ele Tane L E iae H l i 1 F if i a Data distribution Distribution Group Multicast IP 255 255 255 250 A Distribution group is a group of communication modules identified by the same multicast IP address Exchanges in multicasting are used to distribute Global Data Several independent distribution groups can co exist on the same subnetwork with their own multicast address A Publication Subscription protocol on UDP IP is used for data distribution Limitations e There is no theoretical limit to the number of stations that may belong to a distribution group The main limitation is the number of variables exchanged in a group 64 variables e Replacing a 140 NOE 771 x0 module by a new 140 NOE 771 x1 module the Global Data Service must not be configured by web pages Otherwise the Global Data Utility will start even if Global Data has not been configured in the application 35010500 05 2010 19 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services 2 2 IO Scanning Service IO Scanning Service At a Glance How it Works The IO scanner makes it possible to periodically read or write to from
6. Double click the number of the required network from the Available networks scroll list Result The network number is assigned in the Access networks scroll list Perform operation 3 as many times as necessary to define all the networks accessible by the module Once finished proceed to step 5 Confirm the selection by clicking OK Confirm the configuration of the X Way router by closing the window or clicking the Enable button in the toolbar 126 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Configuration of X Way Routing Removing the Bridge Function It is possible to remove the bridge function from the module Step Action 1 Access the following X Way window X Way table Network Network Network Ethernet_1 Fipway_1 Ethernet_2 Ethernet Fipway Ethernet Delete network list Click Delete network list Confirm the configuration 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com 127 Configuration of X Way Routing Removing Access to a Network It is possible to remove access to a single network Step Action 1 Access the following X Way window of the accessible net
7. SolWO0 1 14 35010500 05 2010 23 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services Example for the Outputs The data blocks are copied in their entirety from the internal word space reserved at the time of configuration to the PCMCIA communication card The reports are copied from the PCMCIA communication card to the language objects In the following example the address of the first internal word is MW10 Intemal words PCMCIA Modbus Plus PLC memory communication network 3 words from station 1 SMW 13 AMN Station 1 500 words max 20 words from station 6 7 SoMW6S aay Sprene pris Station 5 12 words from station 8 ata outputs MW77 Station 6 32 words from station 9 MW 150 3 words from station 62 Station 1 Station 5 Activity bit T Status bits IWO0 1 7 IW0 1 14 24 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services 2 4 Common Words and Shared Tables Services on Fipway Fipway Common Words and Shared Tables At a Glance The Fipway network provides two data sharing services e common words e shared table The main objective of these two services is to synchronize automation applications Common Words The common words service consists of a set of dedicated Nw words Each station on the network can depending on its software configuration access the d
8. Terminal Stations A terminal station is addressed by the network address station address pairing Terminal stations receive the messages intended for their network address as well as the general broadcast messages and send to their network connection all the messages intended for a remote station Intermediate Stations An intermediate station has as many network addresses as it has connection points to different networks One of its addresses is considered to be the main address and has the role of guaranteeing access to all the communication entities of a routing station Intermediate stations are classified in two categories e Multicoupler stations e Bridge stations 35010500 05 2010 49 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Routing Multicoupler Stations These provide management of various network couplers and guarantee all the mono network services on the various network segments common words telegrams messaging They do not offer routing between the various network connections Bridge Stations These provide the same functions as the multi coupler stations and also guarantee transparency of communication between the various network connections 50 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Routing Main Address Introduction A station configured in bridge mode
9. Select New Device in the contextual menu Result The New Device window appears Expand the Communication directory Result The following window appears Product reference Description J Local Quantum Drop JONGE 77111 A921 00 CET i0 OM 2xx 00 Local Quantum Drop Power Supply O o ONCE 25100 QUANTUM SY MAX ETHERNET MODULE 7 NWM 10000 FACTORYCAST HMI WEB SERVER MODU To create a RIO bus select a 140 CRP 93x 00 module Result The bus appears in the project browser Project browser Ta Structural View teperre 4 Station Bl B 1 Local Quantum input output station 1 Local Quantum Bus Derived Data Types Derived FB Types Variables amp FB instances Communication Program Animation Tables Operator Screens Documentation 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com 113 Bus Configuration Creating a DIO Bus The following table describes the procedure for creating a DIO bus from a communication module Step Action 1 In the bus editor select the slot where you wish to insert the communication module 2 Select New Device in the contextual menu Result The New
10. e For the rack address e Oto7 e For the module address e Oto 14 e For the channel address e Oif connected via the terminal port e 0 if connected via a built in link of a TSX SCY 21601 module e 1 if connected via a PCMCIA card e For the slave e 1 to 98 if the slave is connected to a PCMCIA card or the built in link of the TSX SCY 21601 module In this case the master station can scan up to 98 slaves e 1 to 8 if the slave is connected to the terminal port In this case the master station can scan up to 8 slaves 4A CAUTION UNEXPECTED BEHAVIOR OF APPLICATION Do not use wrong address parameters For instance e Do not set an address parameter that does not correspond to the targeted equipment e Do not use value greater than 98 in ADDR function field e for the equipment address when using a TSXSCY21601 or higher than 8 when using a CPU embedded serial port Failure to follow these instructions can result in injury or equipment damage 35010500 05 2010 75 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing Connection via Terminal Port A device with the address Ad0 8 is connected to the terminal port of a Premium 9 q Master ba Uni Telway POODLE Err Slave Ado 8 kemm Lert Address settings of slave 8 ADDR 0
11. 84 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modicon M340 PLCs Addressing Addressing a Device on Character mode To send or receive a character string you can use ADDM r m c or ADDM r m c SYS where e r rack number rack e m rack module position e c channel number channel of Character mode port 0 e SYS keyword used to stipulate the station server system see page 82 SYS can be ommitted Example The figure below describes the address of the servodrive The example here shows slave 14 on channel 2 CANopen of the module in rack 0 slot 0 Network 20 Station 2 Station 3 2 a 5l O ADDM 0 0 2 147 35010500 05 2010 85 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modicon M340 PLCs Addressing Processor Communication Channels Addressing At a Glance Following are examples of the different types of addressing for a processors communication channels The examples are based on a Modicon M340 type processor The modules have a topological address that is a function of the module s position in the rack The first two slots of the rack marked PS and 00 are reserved for the rack s power supply module BMX CPS eee and the processor BMX P34 eeee respectively Available communication channels The available communication channe
12. This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Bus Configuration 13 Subject of this Chapter This chapter describes how to access bus configuration tools What s in this Chapter This chapter contains the following topics Topic Page Creating and Accessing RIO DIO Field Buses 112 Accessing Bus Configurations on PCMCIA and SCY 21601 Cards 118 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com 111 Bus Configuration Creating and Accessing RIO DIO Field Buses Introduction Quantum PLCs offer a decentralized input output architecture solution e RIO field bus networks are based on the S908 input output decentralization network technology Up to 31 decentralized stations may be configured with each station capable of supporting up to 128 input output words e DIO field bus networks are based on Modbus Plus technology 32 subscribers may be configured over 500 meters 1640 feet receiving 64 subscribers over 2000 meters 6560 feet 112 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Bus Configuration Creating a RIO Bus The following table describes the procedure for creating a RIO bus from a communication module Step Action 1 In the bus editor select the slot where you wish to insert the communication module
13. bus Destination Local address Micro Premium Uni TE server SYS PL7 or Unity Pro application APP PL7 3 application APP text block number Uni Telway slave module channel slave number Modbus slave module channel slave number Link in character mode module channel SYS Module server module SYS Sub module or channel server module channel SYS Fipio device server bus number connection point SYS Remote addresses correspond to the addresses of devices connected to a network Destination Remote address Destination on remote network network station local address Destination on local network station local address Broadcast Addresses Broadcast addresses depend on the destination devices Destination Broadcast address Broadcast to all stations network ALL local address Broadcast to all local addresses network station ALL Broadcast to all modules ALL SYS Broadcast to all Uni Telway or Modbus slaves module channel ALL Broadcast to all Modbus slaves with a TSX SCY 11601 module module channel 0 NOTE For Modbus equipments the report code of Broadcast function for a correct operation is 1 35010500 05 2010 71 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing Processor Communication Channel Addressing At a Glance F
14. 0 Integrated Operator Screen is Documentation Result The following window is displayed for the RIO bus ail RIO Bus Bus 2 93X00 01 0 Result The following window is displayed for the DIO bus AT DIO Bus _ Bus 3 40 NOM2XX00 01 00 Select the R O bus or DIO bus subdirectory depending on the type of bus you want to open Next select the Open command in the popup menu 35010500 05 2010 117 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Bus Configuration Accessing Bus Configurations on PCMCIA and SCY 21601 Cards Introduction For all communication buses other than those described before configuration access is done via the hardware configuration of the module TSX SCY 21601 or PCMCIA card concerned The following pages describe how to create a new bus by declaring a PCMCIA card and then how to access the bus configuration How to Create a New Communication Bus The table below describes the actions to be taken to create a communication bus Step Action 1 Double click the slot of the PCMCIA card that is to manage the desired communication bus in a TSX SCY 21601 module or in a processor Result CreatelReplace the sub module Product reference Description OK EE Communication Communication FCS SCP 111 PCMCIA CARD
15. 800 473 9123 www barr thorp com Debugging 15 Description of the Communication Debug Screens At a Glance The debug screen dedicated to the application specific communication function is accessible via the Debug tab It has two distinct sections e The top left section which is in all types of debug screens is dedicated to module and communication channel information e The bottom right section is dedicated to debugging data and parameters This area which is specific to the type of communication chosen is detailed in the documentation relating to the various types of communication Accessing the Screen It is only possible to access debug mode in online mode Step Action 1 Access the configuration screen 2 Select Debug mode by clicking the corresponding tab 35010500 05 2010 135 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Debugging Illustration This area is used to access diagnostics for a communication channel 1 2 m 0 Slot B TSX MBP 100 PCMCIA CARD Modbus Plus Al TSX MPB 100 H Config H Debugging Error W Sneanell Debug values 3 _ Station number E1 Gounlenmlanels Function transmission deferred on error Modbus Plus Receive buffer overrun error Taek Repeated command received Reset counter
16. ADDR 2 8 SYS 35010500 05 2010 77 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing Examples of Intra Station Addressing At a Glance For an intra station exchange to take place i e an exchange between two stations on the same network or on different networks the address must also show the destination entity s network number and station number Example 1 The multi network configuration is as follows Network 1 Ethernet J Uni Telway i 56 E Fipway e mi g Fipway Network 21 In the first case station B addresses station A s system ADDR 21 1 SYS In the second case station B addresses station C ADDR 1 2 0 5 0 56 78 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing Example 2 The example below sho
17. directly via a PLC which routes the information Ethernet Uni Telway or via an additional device such as a bridge Ethernet Modbus or switch Ethernet Ethernet NOTE Technically sophisticated solutions using Ethernet Modbus Plus Fipway Fipio Modbus Uni Telway etc in a single architecture are possible However to facilitate maintenance user training and to reduce operating costs it is recommended that you aim for maximum homogeneity between the types of networks and buses used In the following architecture examples we give an overview of the most suitable solutions depending on the devices connected 35010500 05 2010 41 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Communication Architectures Network Architectures At a Glance Various network architectures are available The Schneider product range enables you to create standard Ethernet mono networks as well as transparent multi network architectures Ethernet Fipway Modbus Plus The following examples of network architectures show the various optimal solutions provided by Schneider products NOTE The selection of an architecture with the Modbus Plus network or Fipway network is strongly linked to the use of Quantum or Premium devices e Modbus Plus for Quantum and Premium PLCs e Fipway for Premium PLCs NOTE In the following illustrations the arrows show the different communication possibilities An atte
18. 0 0 87 Connection via TSX SCY 21601 Module A device with the address AdO 1 is connected to the built in link of a TSX SCY 21601 at position 2 in the base rack Master Slave Ado 1 Address settings of slave 1 ADDR 0 2 0 17 76 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing Examples of Intra Station Addressing Fipio Addressing At a Glance Exchanges with the bus manager are of variable exchange or message exchange type The addressing syntax to access the Unite messaging server is as follows bus number connection point SYS Addressing Rules For Fipio communication the addressing values are as follows e For the bus address always 2 for a Fipio bus e For the connection point 1 to 127 as it is possible to connect up to 127 devices on the bus Examples In the following example the bus manager addresses the Premium at connection point 4 or the Magelis at connection point 8 Premium el STS Micro Magelis Address settings of device 4 ADDR 2 4 SYS Address settings of device 8
19. 1 0 0 NOTE As slave A is the only slave on port 1 it is sufficient to indicate the port number and complete the path with the zeros to obtain the 5 bytes for the address path Example 3 The routing path to access slave 113 is as follows 61 25 4 113 0 NOTE When several slaves are connected to the same port it is necessary to indicate the slave number after the port number Do not forget to complete the address with zeros to obtain 5 bytes 35010500 05 2010 65 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modbus Plus Addressing 66 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing Subject of this Chapter This chapter describes X Way addressing and indicates its fields of application What s in this Chapter This chapter contains the following topics Topic Page Addressing for a Communication Entity 68 Types of Communication Entities 70 Processor Communication Channel Addressing 72 Addressing for a TSX SCY 21601 Communication Module 74 Examples of Intra Station Addressing Uni Telway Addressing 75 Examples of Intra Station Addressing Fipio Addressing 77 Examples of Intra Station Addressing 78 35010500 05 2010 67 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing Addressing for a Com
20. 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Configuration of X Way Routing Configuring an X Way Router Module At a Glance Before configuring the module as an X Way router the station s logical networks must be created Procedure The following procedure is used to access and then configure the station s module as an X Way router Step Action 1 Open the Communication tab in your project browser and in the Routing table tab click the X Way table tab Result The following window appears Network t Network _ Network Ethernet_ Fipway_1 Ethernet_2 Ethernet Fipway Ethernet Pe Delete network list If the list of accessible module networks is empty the window appears automatically without double clicking 35010500 05 2010 125 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Configuration of X Way Routing Step Action 2 Double click the highlighted field in order to configure the first network Result The Selection of accessible networks window appears Selection of accessible networks r Access networks r Available networks o g 2 3 4 5 P 6 E T 8 1o 2 11 13 14 15 Caneel
21. 473 9123 www barr thorp com Modicon M340 PLCs Addressing Addressing a Station on a Ethernet The address of a station on Ethernet takes the form e ADDM Netlink hostAddr e ADDM Netlink hostAddr TCP MBS e ADDM Netlink hostAddr node e ADDM r m c hostAddr e ADDM r m c hostAddr TCP MBS e ADDM r m c hostAddr node e ADDM hostAddr e ADDM hostAddr TCP MBS e ADDM hostAddr node Where e Netlink network name set in the Net Link field of Ethernet channel e hostAdadr IP address of device e r rack number rack e c channel number channel e node Modbus or CANopen node behind a gateway gateway identified with hostAddr NOTE If the netlink name is ommitted the system takes the default netlink connection which is the closest link to the processor usually the processor Ethernet channel Addressing of a Device on a CANopen Bus The address of a device on a CANopen bus takes the form ADDM r m c e where r rack number rack m rack module position c channel number channel of CANopen port 2 e CANopen slave node equipment range 1 to 127 Addressing a Device on a Modbus The address of a device on a Modbus bus takes the form ADDM r m c e MBS where r rack number rack m rack module position c channel number channel of Modbus port 0 e Modbus slave number equipment range 1 to 247
22. Assistant FFB Type x E Instance E r Prototype Name Type No Comment Input zone ciel Add pin Remove pin s Help on Type Special Assistant OK Cancel Help Select the type of FFB required if it is not already entered Then select the name of the instance where necessary and if available 35010500 05 2010 141 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Entry Help Step Action 5 Many instructions have a customized entry help screen You can access this screen by clicking the Special Assistant button 6 Enter each parameter of the instruction each instruction is explained in the relevant application specific documentation e inthe customized detailed data entry screen or e inthe Prototype area of the Entry field 7 Confirm by clicking Ok 142 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Entry Help Address Entry Help At a Glance To assist in entering the address a help screen is available With this screen a description of the architecture in which the communication function is integrated and generated can be added By completing the fields of this description the address is automatically generated Accessing the Help When entering the parameters of the communication function you ca
23. Device window appears 3 Expand the Communication directory Result The following window appears Product reference Description Local Quantum Drop Local Quantum Drop GF Power Supply a Analog zl z Communication ee 22 1140 C3P 99X00 RIO HEAD S208 7777140 E4921 00 AST CHANNEL GE 211 00 QUANTUM SY MAX ETHERNET MODULE NOE 25100 QUANTUM SY MAX ETHERNET MODULE GE 311 00 _TCP IP ETHERNET MODULE SERVER NOE 35100 TOP IP ETHERNET MODULE SERVER NOE 77100 TCP IP ETHERNET MODULE SERVER NOE 771 01 IP ETHERNET MODULE SERVER 0E77110 ETHERNET MODULE SERVER P ETHERNET MODULE SERVER 00 MB WM 100 00 TORYCAST HMI WEB SERVER MODU 4 To create a bus select a 140 NOM 2XX 00 module Result The module appears in the rack 114 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Bus Configuration Step Action 5 Double click the 140 NOM 2XX 00 module s Modbus Plus port Result The bus configuration window appears Check the box marked DIO Bus Confirm the configuration Result The DIO bus appears in the project browser Project browser fa Structural View MJ Station Ere Configuration ee aa 1 Local Quantum Bus Fl O 1 Local Quantum inputoutput station o fasan 2 RIO Bus wewene 3 us Derived Data Types Derived FB Types Variables amp FB instances Communication Program Animation Tables
24. Messages intended for a network are sent to the coupler that has access to this network The configuration phase allows determination of the accessible networks for each coupler of the station Specific case Messages whose network number is 0 are sent to the network with the main address of the station 35010500 05 2010 53 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Routing 54 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Addressing Subject of this Part This part describes the different addressing solutions for devices on a communication bus or network What s in this Part This part contains the following chapters Chapter Chapter Name Page 6 General Points Concerning Addressing 57 7 IP Addressing 59 8 Modbus Plus Addressing 63 9 X Way Addressing 67 10 Modicon M340 PLCs Addressing 81 11 General points concerning bridging 95 35010500 05 2010 55 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Addressing 56 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com General Points Concerning Addressing 6 General At a Glance Within a communication architecture each device must be identified by an address This address is specific to each device
25. Pro Program Languages and Structure Reference Manual for more information Failure to follow these instructions can result in death serious injury or equipment damage Characteristics of the Different Service Types The following table gives an overview of the main characteristics of the types of services mentioned above Type of service These services make it possible They are used Messaging services for a device Client to send a to access data from time to message to another device Server time and obtain a response without having to program anything into the server device Implicit database to share data which is refreshed to synchronize applications access services automatically and on a regular basis or to transparently obtain real time images of a system on several remote PLCs Implicit 1 0 to transparently and automatically to monitor a set of distributed management services manage remote I Os on a network systems across a network 35010500 05 2010 15 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com General Summary of Communication Solutions At a Glance The services presented earlier in this chapter are available for certain types of communication For example for messaging services certain com
26. Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing Addressing for a TSX SCY 21601 Communication Module At a Glance Following are examples of the different types of addressing for TSX SCY 21601 communication modules The examples are based on a Premium type processor NOTE These types of communication module are limited according to processor Please refer to the installation manual to determine the number of expert communication channels Examples The module s communication channels can have the following addresses Rack 0 Module 0 Rack 0 Module 5 Channel Channel 0 terminal po 0 built in link built in channel Rack 0 Module 0 he Channel 1 PCMCIA card Ef CMGIA care incoming channel Rack 1 Module 10 Channel 0 built in link H i Rack 1 Module 10 Channel 1 PCMCIA card H Rack 7 Rack 7 Module 05 Channel 0 built in link Rack 7 Module 05 Channel 1 PCMCIA card 74 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing Examples of Intra Station Addressing Uni Telway Addressing At a Glance With this type of addressing a master station can access different slaves connected to a bus In the following examples the slaves are connected to the master station with a Premium processor via a Uni Telway bus Addressing Rules In this configuration the addressing values are as follows
27. e At level 2 Inter PLC network see page 42 e At level 1 Field Bus see page 46 The communication solutions for existing installations from the Telemecanique or Modicon ranges are then presented 38 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Communication Architectures Global Architecture The following diagram shows a global communication architecture with an AS i bus Unity Pro PL7 XBTL Ethernet E SS EH E E gel spees Sogn nuak ES ene noo E s0 mama E Ethernet Oat S ef 3 ole i i ME Premium Q AS i master a AS B 4 e _ fe amp amp ooa O 5 H a Ea Ld AS i supply Communicating Interfaces with sensors actuators traditional sensors actuators module 39 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Communication Architectures The following diagram shows a global communication architecture with a Modbus and Uni Telway bus Unity Pro PL7 XBTL Sa e U TTD JT Ti D Tm A
28. of CANopen addressing is ADDM r m c node The meaning of the string parameter is as follows e r rack address The processor s rack address is always 0 e m module address The Modicon M340 processor s slot number in the rack is always 0 e c channel address The Modicon M340 CANopen port is always channel 2 e node slave number to which the request is being sent The range for configured slave numbers is from 1 to 127 Example In the following example the Modicon M340 processor s bus manager addresses the Lexium 05 device at connection point 28 M Slave address 28 Address settings of slave 28 ADDM 0 0 2 287 NOTE In addition to the address defined by ADDM the READ VAR andWRITE VAR functions use another parameter NUM which must be defined to address the SDO to be read or written 35010500 05 2010 89 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modicon M340 PLCs Addressing Examples of Modicon M340 Modbus and Character Mode Addressing At a Glance The following examples deal with e Modbus addressing e Character mode addressing Modbus Addressing Rules The syntax of Modbus addressing is ADDM r m c node The meaning of the string parameter is as follows e r rack address The processor s rack address is always 0 e m module address The Modicon M340 processor s slot number in the rack is always 0 e c channel addres
29. provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com 10 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Introduction to the Communication Application Subject of this Part This part gives an overview of the communication application the types of networks and buses services and architectures available What s in this Part This part contains the following chapters Chapter Chapter Name Page 1 General 13 2 Services Available on Networks and Buses 17 3 Interoperability 33 4 Communication Architectures 37 5 X Way Message Routing 47 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com 11 Introduction 12 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com General Subject of this Chapter This chapter gives an overview of the different characteristics of the communication application What s in this Chapter This chapter contains the following topics Topic Page Introduction to the Communication Application 14 Summary of Communication Solutions 16 35010500 05 2010 13 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com General Introduction to the Communication Application At a Glance The communi
30. the configuration 3 The Modbus slave address of this remote PLC is 66 98 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Introduction to bridging This diagram presents the bridging example Configuration 1 Unity Pro ETHERNET IP 139 160 235 34 USB 5 4 Modbus CPU slave number 5 Unity Pro 4 Configuration 3 Configuration 2 WF Unity Pro 5 ETHERNET IP 118 159 35 2 MODBUS Configuration 4 F s dag Modbus CPU slave number 66 The transparent PLC addresses are as follows Bridging configuration Transparent PLC address 1 USB connection to remote PLC which is linked to an Ethernet module SYS 0 5 0 118 159 35 45 2 processor s Ethernet channel to remote PLC which is linked to an Ethernet module 139 160 235 34 0 5 0 118 159 35 45 3 processor s Modbus channel to remote PLC linked which is linked to an Ethernet module 5 0 5 0 118 159 35 45 4 USB connection to remote PLC which is linked to processor s Modbus channel SYS 0 0 0 66 5 Ethernet module connection to remote PLC which is linked to processor s Modbus channel 118 159 35 2 0 0 0 66 6 Ethernet module connection to remote PLC which is linked to processor s Ethernet channel 118 159 35 2 0 0 3 139 160 235 16 35
31. the project networks Example woccrcnee AL Ethernet packaging redatt A Ethernet factory peawebess A Fipway machining BERIN A Modbus Plus painting Double click the network you want to configure to obtain the network configuration window Note The windows differ according to the network family selected However for all networks from this window it is possible to configure the Global Data IPO scanning Peer Cop utilities common words etc Note For Ethernet networks an intermediate step is necessary which involves selecting the family of the module that will be used in the hardware configuration 35010500 05 2010 107 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Network Configuration Associating a Logic Network with Network Hardware At a Glance The final step in implementing a communication network is to associate a logic network with a network module Modbus Plus card or Fipway card Although the screens differ the procedure is the same for each network device How to Associate a Logic Network The following table describes how to associate a logic network to a network device declared in the hardware configuration editor Step Action 1 Open the hardware configuration editor 2 Right click the device Ethernet module Fipway PCMCIA card or Modbus Plus PCMCIA card that you wish to associate with a logical network 3 Sele
32. 0 17 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services 2 1 Global Data Service Global Data Service At a Glance How it Works The aim of the Global Data service which is supported by Ethernet modules is to provide an automatic data exchange for the coordination of PLC applications Data is shared according to an inter device publication subscription method The communication modules are grouped into a Distribution group Each communication module publishes a local application variable for the other communication modules in the distribution group Each communication module can also subscribe to the application variables published by all other modules belonging to the distribution group The Global Data service should be configured to determine the location and the number of application variables of each communication module Once the modules have been configured exchanges between communication modules belonging to the same group are automatically carried out when the PLC is in RUN mode 18 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services
33. 010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com 99 Introduction to bridging 100 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Operating Modes Subject of this Part This part describes the operating modes associated with expert communication What s in this Part This part contains the following chapters Chapter Chapter Name Page 12 Network Configuration 103 13 Bus Configuration 111 14 Configuration of X Way Routing Premium Stations 121 15 Debugging 135 16 Communication Function Programming and Entry Help 139 35010500 05 2010 101 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Operating Modes 102 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Network Configuration 12 Subject of this Chapter This chapter presents the tools for configuring a network at the global level and at the station level What s in this Chapter This chapter contains the following topics Topic Page Network Configuration Principle Using Unity Pro 104 Creating a Logic Network 105 Configuring a Logic Network 107 Associating a Logic Network with Network Hardware 108 35010500 05 2010 103 This document provided by Barr Thorp Electri
34. 107 Associating a Logic Network with Network Hardware 108 Chapter 13 Bus Configuration 200 eee eee eee 111 Creating and Accessing RIO DIO Field Buses 112 Accessing Bus Configurations on PCMCIA and SCY 21601 Cards 118 Chapter 14 Configuration of X Way Routing Premium Stations 121 Configuration sas sconce pieneen dor dns Aten E AeA AE E be 122 Configuration of Multi Network Services 000000ee 123 Configuring an X Way Router Module 0000e00 eee 125 Examples of X Way Routing Stations 00 0000 e eee eee 129 Examples of Partial Routing 0 c eee eee 132 Chapter 15 Debugging 202222006 ise0s eet ese tee eine tenets 135 Description of the Communication Debug Screens 135 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Chapter 16 Communication Function Programming and Entry Help 139 Communication Function Entry Help 000 0 eee eee eee ee 140 Access a specific instruction of the function function block or DFB type 141 Address Entry Help ss 2 c0025 44 Sree ha etd beetle etek tbe 143 Idex oiie E a bee ee ee eet ekeei sen oe 147 35010500 05 2010 5 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr tho
35. 2 16 1XXX M Read input bits 3 16 4XXX MW Read consecutive integer values until 125 registers for Premium Atrium PLCs 4 16 3XXX MW Read consecutive input integer values until 124 registers for Premium Atrium PLCs 35010500 05 2010 33 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Interoperability Function Quantum M340 and Meaning code memory Premium address memory address 5 16 0XXX M Write single output bit 6 16 4XXX SMW Write single integer value 15 16 0XXX M Write n output bits 16 16 4XXX MW Write consecutive integer values 23 16 4XXX SMW Read write consecutive integer values NOTE The READ VAR communication function can read on any remote devices up to e 1072 consecutive bits for Premium CPUs e 2000 consecutive bits for M340 CPUs To be able to read over this limitation the SE be used Use of Modbus Function Codes as a Client on Premium and M340 The table below lists the Modbus function codes and their use as a client on Premium Quantum and M340 PLCs ND REQ communication function must Function Quantum M340 and Modbus request Communication code memory Premium function address memory address 1 16 0XXX M Read output bits READ VAR 2 l Read input bits see 1 READ VAR 3 16 4XXX MW Read consecutive integer values READ VAR until 125 registe
36. 35010500 07 Modicon M340 Premium Atrium and Quantum Using Unity Pro Communication Services and Architectures Reference Manual 05 2010 Schneider Electric www schneider electric com This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com The information provided in this documentation contains general descriptions and or technical characteristics of the performance of the products contained herein This documentation is not intended as a substitute for and is not to be used for determining suitability or reliability of these products for specific user applications It is the duty of any such user or integrator to perform the appropriate and complete risk analysis evaluation and testing of the products with respect to the relevant specific application or use thereof Neither Schneider Electric nor any of its affiliates or subsidiaries shall be responsible or liable for misuse of the information contained herein If you have any suggestions for improvements or amendments or have found errors in this publication please notify us No part of this document may be reproduced in any form or by any means electronic or mechanical including photocopying without express written permission of Schneider Electric All pertinent state regional and local safety regulations must be observed when installing and using this product For reasons of safety and to help ensure compliance with documented system da
37. 73 9123 www barr thorp com Modicon M340 PLCs Addressing 94 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com General points concerning bridging 1 1 Subject of this Chapter This chapter gives an overview of the different bridging solutions for devices in a communication architecture What s in this Chapter This chapter contains the following topics Topic Page Bridging Description 96 Bridging Example 98 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com 95 Introduction to bridging Bridging Description e Transparent PLC access or bridging Unity Pro connects to a PLC via a At a Glance There are two available connection modes e Direct PLC access Unity Pro connects directly to the PLC Modicon M340 PLC Set Address The direct PLC access and transparent PLC access features are available via the Set Address screen In this screen you must enter the PLC address To access the Set Address screen use the Set Address command on the PLC menu The Set Address screen is as follows Set Address wv PLC Address Media USB Communication Parameters Simulator Bandwidth Address Test Connection 127001 0j 3 Media TPF 7 Communication Parameters Direct PLC Access Syntax The available syntaxes for a direct PLC access are descri
38. In reality the machine identifier can also hold a sub network identifier In an open environment having received a network identifier from the relevant authority the local system administrator has the possibility of managing many networks This means that local networks can be installed without having any effect on the external world which still sees just one network designated by the network identifier The sub network mask makes it possible to see the number of bits attributed respectively to the network identifier and to the sub network identifier bits at 1 and then to the machine identifier bits at 0 60 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com IP Addressing Example Example 140 186 90 3 16 bit 8 bits 8 bits Class B Network identifier 140 186 Sub network Machine identifier 90 identifier 3 Subnetwork The segmentation allows for 254 possible sub networks with 254 sub network machines The value of the sub network mask should be chosen so that it is consistent with the IP address class The sub network mask will have the following value e for a class A address 255 xxx XXX XXX e for a class B address 255 255 xxx Xxx e for a class C address 255 255 255 xxx xxx is an arbitrary value which can be chosen by the user Gateway The term Gateway is used in this manual in the sense of router If the target machine is not connected to the loc
39. Legend X Yes No 32 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Interoperability List of Modbus Function Codes At a Glance Quantum Premium and M340 PLCs have communication server kernels that accept the common Modbus function codes These are listed in the table on this page As servers Quantum Premium and M340 PLCs recognize all Class 0 and Class 1 Modbus function codes as stipulated in the Modbus specifications available at http www Modbus org Their server kernel also includes the function code 23 for reading writing of consecutive variables For the list of Modbus function codes recognized by Quantum PLCs please refer to the specific Quantum documentation For the list of function codes recognized by Premium PLCs please refer to the specific Premium see Premium and Atrium using Unity Pro Asynchronous Serial Link User Manual documentation In addition to this Premium PLCs recognize certain UNI TE see Unity Pro Communication Block Library requests List of Modbus Requests Recognized When Connected as a Server The following table lists the function codes and the address of the Modbus function codes recognized by Premium Quantum and M340 platforms Function Quantum M340 and Meaning code memory Premium address memory address 1 16 0XXX M Read output bits refer to note below
40. OPEN RS232 Cancel L FOS SCP 114 PCMCIA CARD OPEN R5485 TSX CPP 100 _ PCMCIA CARD CANopen io TSX FPP 10 PCMCIA CARD Fipio TSX FPP 20 PCMCIA CARD Fipway TSX FPP 200 PCMCIA CARD Fipway TYSX MBP 100 PCMICIA CARD Modbus Plus TSX SCP 111 PCMCIA CARD MP RS232 i TSKSCP 112 PCMCIA CARD MP CL TSX SCP 114 PCMCIA CARD MP RS485 2 Select the type of bus management card desired Result The communication bus is created It must now be configured to do so follow the procedure described in the following paragraph 118 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Bus Configuration How to Configure a Communication Bus The table below describes the actions to be taken to configure a communication bus Step Action 1 Double click the slot of the PCMCIA card that is to manage the desired communication bus Result A window that resembles the following is displayed Bl 0 1 Slot B TSX SCP 114 El PCMCIA CARD MP RS485 a TSX SCP 114A fiz Deseription t Channel 1 PCMCIA CARD RS485 SPECIFICATIONS Bus type Uni Telway Modbus Jbus car Structure Physical interface Isolated RS 485 Data rate 0 3 19 2 Kbps Services Uni Telway Uni TE message processing 240 Application to application fl Transparency of all devices Modbus Jbus 2 Select the channel and the desire
41. Operator Screens Documentation 35010500 05 2010 115 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Bus Configuration Creating a DIO Bus from the Processor The following table describes the procedure for creating a DIO bus from the processor Step Action 1 In the bus editor double click the processor s Modbus Plus port 2 Check the box marked DIO Bus 3 Confirm the configuration Result The DIO bus appears in the project browser Project browser Ta Structural View a242 A Station 1 Local Quantum Bus 1 Quantum Drop for local 2 RIO bus 3D Derived Data Types Derived FB Types merere 5 Variables amp FB instances Communication Program Animation Tables Operator Screens Documentation 116 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Bus Configuration Accessing a RIO or DIO Bus To access a bus carry out the following actions Step Action 1 In the project browser open the Configuration directory Example Project browser Ta Structural View E r Station a i SRE 4 Local Quantum Bus BE 2 RIO bus Fn 3 DIO bus 2 DDT types Routing table Program 00 Task Q Animation Tables 1
42. The module then periodically reads the input words and periodically writes the output words of each device If the PLC goes into Stop mode the connections with each device are closed Summary of Functions The functions of the IO scanning service are to manage the connection with each remote device one connection per scanned device scan the inputs outputs of the device by using the Modbus read write requests on the TCP IP profile update the read write fields in the application memory refresh the status bits of each remote device NOTE The status bits indicate whether the input output words of the module have been refreshed 35010500 05 2010 21 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services 2 3 Peer Cop Service on Modbus Plus Peer Cop Service At a Glance The Peer Cop service is a mechanism for automatic exchange between stations connected on the same Modbus Plus segment This service makes it possible to control remote inputs outputs on a continuous basis by implicit exchanges Premium and Quantum PLCs are capable of managing this service on a Modbus Plus network Premium PLCs support two types of Peer Cop transfer e specific inputs e specific outputs Specific Inputs and Outputs Specific inputs and outputs are point to point services using the multicast multi station protocol Each message contains one or more destination addresses fo
43. age Electrical equipment should be installed operated serviced and maintained only by qualified personnel No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material A qualified person is one who has skills and knowledge related to the construction and operation of electrical equipment and the installation and has received safety training to recognize and avoid the hazards involved 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com About the Book At a Glance Document Scope This manual gives an overview of the communication services and architectures for use with Schneider PLCs programmed using Unity Pro software Validity Note This documentation is valid for Unity Pro 5 0 Related Documents Title of Documentation Reference Number Ethernet Network included in the CD ROM Modbus PlusNetwork included in the CD ROM Fipway Network included in the CD ROM Fipio Bus included in the CD ROM AS i Bus included in the CD ROM Asynchronous serial link included in the CD ROM You can download these technical publications and other technical information from our website at www schneider electric com User Comments We welcome your comments about this document You can reach us by e mail at techcomm schneider electric com 35010500 05 2010 9 This document
44. al network the message will be sent to the default gateway connected to the local network which will guarantee routing to another gateway or towards its final destination 35010500 05 2010 61 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com IP Addressing 62 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modbus Plus Addressing Addressing for a Modbus Plus Communication Entity At a Glance Modbus Plus addressing makes it possible to identify a device on a Modbus Plus network The Modbus Plus addressing system is based on the access path that needs to be followed to reach the destination device This path is determined by the Modbus Plus routers also referred to as Bridges Plus So when a device has to communicate with another device it is necessary to determine the path taken by the data to be communicated Principle A Modbus Plus network segment may have up to 64 addressable devices Each device has a unique address between 1 and 64 Several segments may be linked by Bridges Plus The routing path is determined by the 5 bytes that indicate in succession the addresses of the devices that need to be crossed before arriving at the destination The routing system makes it possible to cross a maximum of 3 segments in other words to allow communication between stations belonging to 5 consecutive segments NOTE When n
45. and enables the device initiating communication to determine the destination precisely Similarly for the configuration of services such as Global Data on Ethernet the Peer Cop service on Modbus Plus or common words and shared tables on Fipway these addresses make it possible to identify the stations that own different shared information Schneider products support 4 types of addressing depending on the type of device network or bus used IP addressing see page 59 Modbus Plus addressing see page 63 X Way addressing see page 67 Modicon M340 PLCs addressing see page 81 35010500 05 2010 57 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Introduction to Addressing 58 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com IP Addressing Note on IP Addressing IP Address On a TCP IP Ethernet network each device must have a unique IP address This address is made up of two identifiers one of which identifies the network while the other identifies the connected machine The uniqueness of the addresses is managed as follows e When the network environment is of open type the uniqueness of the address is guaranteed by the attribution of a network identifier by the relevant authority in the country where the network is located e f the type of environment is closed the uniqueness of the address is managed b
46. atabase in read or write mode Updates are performed implicitly at the start of the cycle for read operations and at the end of the cycle for write operations The function of the application program is simply to read or write these words The addressing of the words is as follows 3NWn s k The following table states the address parameters of the common words Parameter Description n Network number s Station number Word number NOTE The network number makes it possible to select the network on which the common words are exchanged in a multi network configuration 35010500 05 2010 25 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services Shared Table This service makes it possible to exchange a table of Mw internal words divided up into as many fields as there are stations on the Fipway network The principle is based on each PLC broadcasting a word memory field to the other stations on the network Updates are performed implicitly and independently of the application program s execution cycle The function of the program is simply to write or read the sMW words NOTE When configuring and assigning fields be careful to avoid creating memory conflicts between stations 26 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services 2 5 Messaging Service Subject of this Section Thi
47. bed below Connection used Address USB SYS or empty Ethernet IP address 139 169 3 4 Modbus Slave number 96 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Introduction to bridging Transparent PLC Access Syntax The bridging address string consists of two parts e First part The via address optional e Second part The remote PLC address The address parameter syntax is via address remote PLC address The syntax for the remote PLC address depends on the network link type Network link Remote PLC address Modbus slave Link_address Modbus Slave Number Ethernet Link_address IP address Ethernet device Link_address UnitID Link_address is a r m c type topological address where e r rack address e m module address e c channel address The via address is a classical address depending on the media Media Via address Modbus slave Slave_nbr USB SYS or empty Ethernet IP address Online Service Limitations of Transparent PLC Access The transparent PLC access or bridging offers e full online services if the remote PLC is a Modicon M340 or a Quantum PLC e restricted online services if the remote PLC is a Unity Premium PLC not all option module screens work e no online services for the modules ETY 4103 ETY 5103 WMY 100 and ETY PORT except embedded Ethernet ports of P
48. c Co Inc 800 473 9123 www barr thorp com Network Configuration Network Configuration Principle Using Unity Pro At a Glance With Unity Pro the installation of a network takes place from the application browser and from the hardware configuration editor The method involves the following four steps e creation of a logic network e configuration of the logic network e declaration of the module or of the PCMCIA card for Premium e association of the card or of the module with the logic network These four methods are presented further on in this documentation NOTE The advantage of this method is that from the second step onwards you can design your communication application you do not need the hardware to start working and use the simulator for functional testing of it NOTE The first two steps are carried out in the project browser and the following two in the hardware configuration editor This manual introduces the method For details of the various network configurations please refer to the following documentation e Ethernet configuration for Premium see Premium and Atrium Using Unity Pro Ethernet Network Modules User Manual and Ethernet configuration for Modicon M340 see Modicon M340 for Ethernet Communications Modules and Processors User Manual e Modbus Plus configuration see Premium and Atrium using Unity Pro Modbus Plus network User manual e Fipway configuration see Premium and Atrium us
49. cation application makes it possible to exchange data between different devices connected to a bus or a network This function applies to processors with an Ethernet Modbus built in Fipio or CANopen link specific rack mounted communication modules the terminal port of a processor PCMCIA cards of a rack mounted processor or module Communication Types The different communication types are TCP IP or Ethway Ethernet Network Fipway Network Modbus Plus Network Fipio bus manager and agent Uni Telway bus Modbus JBus bus Character mode serial link CANopen field bus Interbus field bus Profibus field bus The USB standard fast terminal port Available Services The available services can be classified into three categories e Explicit messaging see page 27 services e Modbus messaging e UNI TE messaging e telegrams e Implicit database access services e global data see page 18 e common words see page 25 e shared tables see page 26 e Implicit Input Output management services e O scanning see page 20 e peer cop see page 22 14 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com General A WARNING UNEXPECTED APPLICATION BEHAVIOR DATA EXCHANGE COMPATIBIL ITY Data structure alignments are not the same for Premium Quantum and M340 PLCs so verify that the data exchanged are compatible See the page DDT Mapping rules see Unity
50. ccess control Access IP Address Xway Mode LA vw 1 139 255 255 4 MULTI 2 w 3 Bj a B Al Y a 5 vg 6 w 7 g S 8 w m Wr E io y E For another example if station B needs to communicate with station A in R2 Messaging tab e set the R1 IP address 139 255 255 5 in the field IP address and e set the A XWay address 21 7 in the field XWay address The following illustration shows the R2 Messaging tab Configuration of connections Access control Access IP Address Xway Mode 4 Vv zl 139 255 255 5 MULTI A Ww om o 4 wY Bl 5 y 6 w Zz a a 8 w x gl vY fel w ug E 35010500 05 2010 131 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Configuration of X Way Routing Examples of Partial Routing At a Glance When configuring a module as a bridge it is possible to assign to it only a part of the available networks instead of all of them This selection is used to define a partial routing Illustration Each station must be configured in order to define the list of accessible networks network 1 Ethernet a Uni Telway R2 g Fipway network 11 network 13 Fipway network 21 132 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Configuration of X Way Routing Configura
51. ct the channel and function Result For a TSX ETY 4103 module E 0 2 TSXETY 4103 E m ETHERNET TCP IP BASIC WEB SERVER MODULE TSX ETY 4103 H Config t E ChannelO Function ETHTCP IP Task MAST cal Network link No link 108 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Network Configuration Step Action In the Network link field select the network to be associated with the card Result E 0 2 TSX ETY 4103 aa ETHERNET TCP IP BASIC WEB SERVER MODULE Ei TSxETY 4103 H Config 42 Channel Function ETH TCP IP y Task MAST Network link Ethernet_factory ad a E Confirm your choice and close the window Result The logic network is associated with the device The icon associated with this logic network changes and indicates the existence of a link with a PLC Furthermore the rack module and channel numbers are updated in the logic network configuration screen In our example we obtain the following project browser ct 35010500 05 2010 109 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Network Configuration 110 35010500 05 2010
52. d function for example Modbus Result A window that resembles the following is displayed The bus must now be configured according to the project parameters E 0 1 Slot B TSX SCP 114 PCMCIA CARD MP RS 485 TSX SCP 114A El Config E Ghannelt r Transmission speed r Type EEN Master x 9600 bits s JBus Modlink r Inter character interval E Ser M Bydefaut 244 ms MAST wa Number of slaves E i r Data Content Stop Response time 100 X10 ms I ASCII bits fe bit fe e TR fe RTU bits 2 bits ave num Ep Nee e Even Odd None Current loop PSR TS Delay f Multidrop fe Pointio 100ms 7 Camer OCD 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Bus Configuration 120 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Configuration of X Way Routing Premium Stations 1 4 Subject of this Chapter This chapter presents the operating modes required for configuring X Way routing Premium stations What s in this Chapter This chapter contains the following topics Topic Page Configuration 122 Configuration of Multi Network Services 123 Configuring an X Way Router Module 125 Examples of X Way Rou
53. er area to a Modbus slave or via Modbus Plus TCP IP Ethernet or SY MAX Ethernet SYMAX_IP_ADDR Define a MSTR Symax address TCP_IP_ADDR Define a MSTR TCP IP address MBP_MSTR Perform operations on Modbus Plus XMIT Process Modbus master messages and character strings XXMIT Process Modbus master messages and character strings ICNT Connect to and disconnect from an IB S communication ICOM Transfer data with an IB S slave Communica tion Functions on Modicon M340 The following table gives an overview of Modicon M340 communication functions Function Role ADDM Convert a character string into an address that can be used directly by the communication functions READ_VAR WRITE VAR DATA_EXCH and PRINT_CHAR DATA_EXCH Send request receipt of data INPUT_BYTE Read a byte stream INPUT_CHAR Read a character string 30 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services Function Role PRINT_CHAR Write a character string READ VAR Read standard language objects words and bits using UNI TE or Modbus WRITE _VAR Write standard language objects words and bits using UNI TE or Modbus SEND_EMAIL Send an email message Availability of Functions According to Protocols The following table lists the protocols that support the communication functions
54. esses into three types e local addresses e remote addresses e broadcast addresses Keywords The keywords are as follows e SYS gives access to the Uni te server of a processor channel communication module etc e APP gives access to a station s PL7 or Unity Pro application e ALL is defined to describe a broadcast For a TSX SCY 11601 module the keyword is 0 It may replace one of the elements of a topological address The broadcast level is determined according to the location of the keywords ALL or 0 in the address e when alongside the network number the broadcast is sent to all stations on the selected network e g the address ADDR 2 ALL represents all stations on network 2 e when alongside the station number the broadcast is sent to all the entities connected to the intra station communication channels e g the address ADDR 2 4 ALL represents all the communication entities of station 4 on network 2 NOTE For the sender application to communicate with the text function block of a TSX series 7 PLC s PL7 2 or PL7 3 application the keyword must be APP num where num corresponds to the destination text function block number for the exchange 70 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing Local Addresses Remote Addresses Local addresses contain topological addresses and the addresses of slaves ona
55. has as many addresses as it does network connection points The network address that corresponds to the network module with the lowest module address module the farthest to the left in the station rack is regarded as the main address of the station Using the main address of a station guarantees access to a bridge station Rule A bridge station must always be accessed by its main address Addressing Example The example shows the communication between stations connected on the Fipway networks network 1 Ethemet Uni Telway R2 Fipway network 11 Fipway network 21 e Fora communication from station A to station R2 the main address of station R2 is 11 3 e Foracommunication from station A to station R1 the main address of station R1 is 12 7 e Fora communication from station A to station R3 the main address of station R3 is 13 5 e For a communication from station A to station C the address of station C is 12 7 5 0 56 35010500 05 2010 51 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Routing Multi Module Station Addresses Introduction Rule A station configured in multi module mode has as many addresses as it does network connection points There is no main address for the station It will be addressed according to the network that communicates with it A multi module station must always be accessed via the network address that c
56. ing Unity Pro Fipway Network User Manual 104 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Network Configuration Creating a Logic Network At a Glance The first step in implementing a communication network is to create a logic network Creating a Logic Network The following table describes how to create a network using the project browser Step Action 1 Expand the Communication directory in the project browser Result El QL Communication El OL Networks E teeerene OL Routing Table 2 Right click in the Networks sub directory and select the New network option Result Add network Network Comment List of available neworks Change name Cancel Help 35010500 05 2010 105 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Network Configuration Step Action Select the network that you want to create from the list of available networks and give it a meaningful name Result Example of an Ethernet network Add network Networ Commen Li Ethernet st of available networks Change name m hernet factory OK Cancel Help Note You can also add a comment if you so desire by clicking on the Comment tab C
57. ion cannot be modified 5 Mode This area contains the parameters of the mode selected by the tab parameters area NOTE All unavailable LEDs and commands appear in gray 35010500 05 2010 137 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Debugging 138 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Communication Function Programming and Entry Help 1 6 Subject of this Chapter This chapter presents the various entry help tools What s in this Chapter This chapter contains the following topics Topic Page Communication Function Entry Help 140 Access a specific instruction of the function function block or DFB type 141 Address Entry Help 143 35010500 05 2010 139 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Entry Help Communication Function Entry Help At a Glance During programming you can access an entry help screen allowing you to find out all the parameters of a communication function This help can be obtained from the Unity Pro library functions Illustration The following illustration shows the entry help screen for the communication function READ VAR GE Parameters F Add
58. isplay terminal TM8501 BMX P34 2010 Processor TM8501 Terminal _a The address settings of the TM8501 terminal are ADDM 0 0 0 or ADDM 0 0 0 SYS 35010500 05 2010 91 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modicon M340 PLCs Addressing Examples of Modicon M340 Communication EFs Addressing At a Glance The multi network addressing available on Modicon M340 PLCs is described below Example 1 The first example is a multi network configuration as follows Modicon M340 Configuration IP router Modicon M340 aap Configuration Premium Configuration j e Ethernet Network 2 Modicon M340 Configuration In the diagram above there are the following configurations e Three Modicon M340 configurations called A B and D e One Premium configuration called C All the configurations can communicate because of the following statements e A and B communication between two Modicon M340 PLCs on an Ethernet network is possible e A and C communication between a Modicon M340 PLC and a Premium PLC is possible on an Ethernet network e AorC and D communication between two Modicon M340 PLCs or between a Modicon M340 PLC and a Premium PLC on Ethernet multi network is possible An IP router is required 92 35010500 05 2010 This document
59. les of Modicon M340 Communication EFs Addressing 92 35010500 05 2010 81 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modicon M340 PLCs Addressing Modicon M340 Types of Communication Entities At a Glance There are different types of communication entities These exchanges are performed by the communication functions described in the Communication EF library It is possible to class addresses into 3 types e local addresses identified by r m c SYS or more simply r m c e remote addresses to address a device Modbus CANopen or Ethernet directly connected to the channel e broadcast addresses depend on the network For Modbus communication broadcast address is obtained with the slave number set to 0 Note that a broadcast address can be used for all networks but requires that the communication channel supports broadcasting This is not always the case SYS Keyword SYS gives access to a local module or a channel server SYS is used for character mode and can be ommitted Broadcast Addresses Broadcast addresses depend on the destination devices Destination Broadcast address Broadcast to all Modbus slaves the slave number equals 0 rack module channel 0 82 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modicon M340 PLCs Addressing Modicon M340 Addressing for a Comm
60. lick OK and a new logic network is created Result We have just created the Ethernet network that appears in the project browser Ethernet factory Ep CL Routing Table Note As you can see a small icon indicates that the logic network is not associated with any PLC hardware Furthermore the small blue v sign indicates that the project needs to be rebuilt before it can be used in the PLC 106 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Network Configuration Configuring a Logic Network At a Glance The second step in implementing a communication network is to configure a logic network This manual introduces the access to network configuration For information on how to configure the various networks please refer to the following documentation e Ethernet configuration see Premium and Atrium Using Unity Pro Ethernet Network Modules User Manual e Modbus Plus configuration see Premium and Atrium using Unity Pro Modbus Plus network User manual e Fipway configuration see Premium and Atrium using Unity Pro Fipway Network User Manual Configuring a Logic Network The table below describes how to access the configuration of a network from the project browser Step Action 1 In the project browser expand the directory tree under the Networks sub tab located in the Communication tab of the tree directory to display all
61. ls vary depending on the processor Processor Integrated Integrated Integrated Modbus CANopen Master Ethernet Connection Connection Connection BMX P34 1000 X BMX P34 2000 X 7 BMX P34 2010 20102 X X BMX P34 2020 X xX BMX P34 2030 20302 X X Key X Available Not available 86 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modicon M340 PLCs Addressing Processor Communication Channels Addressing The diagram below shows an example of Modicon M340 configuration including a BMX P34 2010 processor and the addresses of the processor communication channels PS at E g 3 z J ODAKLE Rack 0 Module 0 Channel 0 Serial port available on BMX P34 1000 2000 2010 20102 2020 processors Rack 0 Module 0 Channel 2 CANopen port available on BMX P34 2010 20102 2030 20302 processors The diagram below shows an example of Modicon M340 configuration including a BMX P34 2030 processor and the addresses of the processor communication channels PS E ja o 3 1 EEEN C a a
62. mpt has been made to show all the available scenarios The types of communication shown in the homogeneous Ethernet networks are also possible when these networks are extended using Modbus Plus or Fipway segments Mono Network Ethernet Architecture The diagram below shows an Ethernet mono network wo R 5 EEE Fite wo cI il Ethernet Ea i ks a NOTE All inter device exchanges are possible 42 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Multi Network Ethernet Architecture Communication Architectures The diagram below shows an Ethernet multi network wer g 000 a fine 2 Ethernet Live good Switch Ethernet NOTE All inter device exchanges are possible 35010500 05 2010 43 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Communication Architectures Multi Network Ethernet Modbus Architecture The diagram below shows an Ethernet Modbus multi network
63. munication Entity 00 0000 68 Types of Communication Entities 00 00 cee eee 70 Processor Communication Channel Addressing 72 Addressing for a TSX SCY 21601 Communication Module 74 Examples of Intra Station Addressing Uni Telway Addressing 75 Examples of Intra Station Addressing Fipio Addressing 77 Examples of Intra Station Addressing 0 0 eee ee eae 78 Chapter 10 Modicon M340 PLCs Addressing 2 81 Modicon M340 Types of Communication Entities 82 Modicon M340 Addressing for a Communication Entity 83 Processor Communication Channels Addressing 86 Example of Modicon M340 Ethernet Addressing 88 Example of Modicon M340 CANopen Addressing 89 Examples of Modicon M340 Modbus and Character Mode Addressing 90 Examples of Modicon M340 Communication EFs Addressing 92 Chapter 11 General points concerning bridging 95 Bridging Description 0 0 cee tee 96 Bridging Example narei 2 snk eb pa BS pe Lae ee eee 98 Part Ill Operating Modes 000000 cece ee eens 101 Chapter 12 Network Configuration 0 ec eee eee eee 103 Network Configuration Principle Using Unity Pro 104 Creating a Logic Network 00 00 eects 105 Configuring a Logic Network 0 000 aaneen anena
64. munication Entity At a Glance X Way addressing makes it possible to identify a communication entity on a network or a bus or on a station s bus on a network Each station is identified by a unique address which consists of a network number and a station number The addresses then differ according to the bus e Uni Telway or Modbus bus e Fipio bus Within a station each communication entity is characterized by a topological address access path and a type see page 70 NOTE An address is expressed in the form of a character string However it can only be used in conjunction with the function ADDR which is why the following notation will be used to describe an address ADDR address string Addressing a Station on a Network The address of a station on a network takes the form ADDR n s SYS where n network number network s station number station SYS keyword used to stipulate the station server system see page 70 Addressing a Device on a Uni Telway or Modbus Bus The address of a device on a Uni Telway or Modbus bus depends on the station managing the bus e stand alone station ADDR r m c e e station belonging to a network ADDR n s r m c e where n network number network s station number station r rack number rack m module number module c channel number channel e number of device or slave equipment 68 35010500 05 2010 This document provided by Bar
65. munication functions apply to networks others to buses and others to serial links in character mode see page 31 Summary The following table gives an overview of the different services available according to the types of communication Function Fipway Fipio Uni Character Modbus Modbus Ethway TCP IP_ CANopen USB Telway mode Jbus Plus Messaging services Communi The communication functions that can be used depend closely on the type of communication for which cation they are applied see page 31 functions Implicit database access services Global Data X Common X X words Shared X X tables Periodic X data exchanges Implicit O management services 1 0 X Scanning Peer cop X Other X X X Legend X Yes No 16 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services Available on Networks and Buses 2 Subject of this Chapter This chapter describes the different services available on the communication buses and networks What s in this Chapter This chapter contains the following sections Section Topic Page 2 1 Global Data Service 18 2 2 IO Scanning Service 20 2 3 Peer Cop Service on Modbus Plus 22 2 4 Common Words and Shared Tables Services on Fipway 25 2 5 Messaging Service 27 35010500 05 201
66. n access the address entry help with the following button Illustration The following illustration shows the address input help screen for a communication function 77 Help for Address Entry X Mode O Local OREM eie corna aa r Network Tevel z gt mmm eiwork Selection Number 0 FE p Station Selection lumber Fe Type TSx37 7 L Station level m Destination station TSX37 Goto __ _ Module Te Z Module Rack 0 Master System Module 0 Fe Set licati Channel 0 Channel 1 OFIP Manager Application T O FP Agent Protocol UNI_TELWAY L Device level r Destination Device APA P p Maas Broadcast Slave no 1 Cancel 35010500 05 2010 143 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Entry Help Mode Network Level Station Level The first parameter to select is the Mode With it you can select one of the following communication modes e local communication by bus e remote communication by network For remote communications only the network level is used to e enter the network number e enter the station number e select the station type Depending on the communication function with this parameter the type of exchange can be selec
67. nstructions can result in death serious injury or equipment damage 35010500 05 2010 35 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Interoperability 36 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Communication Architectures Subject of this Chapter This chapter gives an overview of the different communication architectures What s in this Chapter This chapter contains the following topics Topic Page Global Architecture 38 Network Architectures 42 Field Bus 46 35010500 05 2010 37 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Communication Architectures Global Architecture At a Glance Schneider has a communications strategy based on open standards core of the range such as e Ethernet Modbus TCP IP e CANopen e AS Interface e Modbus Link Series This has not always been the case and there are a significant number of installed bases on networks or proprietary buses such as Modbus Plus Fipway Ethway X Way on TCP IP Fipio Symax and Uni telway Schneider offers a connectivity range for the main standards available on the market through its Profibus Interbus and TCPopen ranges The possible and recommended communication architectures are presented in the following pages according to the type of PLC used
68. ole READ VAR Read standard language objects words bits WRITE VAR Write standard language objects words bits SEND_ REQ Send UNI TE requests DATA_EXCH Send request receipt of data INPUT_BYTE Read a byte stream PRINT_CHAR Write a character string INPUT_CHAR Read a character string OUT_IN_CHAR Send a character string and await a response UNITE_SERVER Process READ VAR and WRITE VAR requests immediately on Modbus Immediate server READ GDATA Read common Modbus Plus data WRITE GDATA Write common Modbus Plus data READ Asyn Read 1K of messaging WRITE Asyn Write 1K of messaging 35010500 05 2010 29 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services Function asynchronous Role Function synchronous ADDR Convert a character string into an address that can be used directly by communication functions SEND_TLG Send a telegram RCV_TLG Receive a telegram CANCEL Stop an exchange in progress Communica tion Functions on Quantum The following table gives an overview of Quantum communication functions Function Role CREAD_ REG Read contiguous registers CWRITE REG Write contiguous registers ModbusP_ADDR Define a MSTR Modbus Plus address READ_REG Read a register area from a Modbus slave or via Modbus Plus TCP IP Ethernet or SY MAX Ethernet WRITE REG Write a regist
69. ollowing are examples of the different types of addressing for a processor s communication channels The examples are based on a Premium type processor The modules have a topological address that is a function of the module s position in the rack Depending on the desired configuration there may be either a single or double power supply which occupies 1 or 2 slots in the rack respectively As a result the first slot the processor uses is either 0 or 1 With a Single Power Supply The power supply occupies one slot The processor s communication channels can then have the following addresses PS 0 0D OD 03 O 5 6 7 0 9 A PS 00 01 02 3 04 05 06 07 08 9 q0 Rack 0 Module 0 Channel 2 Fipio port built in channel Rack 0 Module 0 Channel 1 PCMCIA card incoming channel Rack 0 Module 0 Channel 0 terminal port built in channel 72 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing With a Double Power Supply The power supply occupies two slots The processor s communication channels can then have the following addresses 5 PS 0 1 02 03 G 3 Rack 0 Module 1 Channel 2 Fipio port built in channel Rack 0 Module 1 Channel 1 PCMCIA card incoming channel Rack 0 Module 1 Channel 0 terminal port built in channel 35010500 05 2010 73 This document provided by Barr
70. orresponds to the network module enabling entry to the station Example In the following example station R1 does not have the bridge function between its modules 2 4 and 5 Ethernet _ LOR R1 LOU Fipway neers 4 Fipway network 13 e For a communication from station A to station R1 the address is 13 5 SYS e For a communication from station B to station R1 the address is 12 7 SYS 52 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Routing Messaging With Multi Coupler Stations Messages intended for a network are sent to the coupler connected to the destination network The configuration phase allows the destination coupler to be determined Specific case Messages intended for a network with an unknown address are sent to the network with the main address of the station along with messages whose network number is 0 Example network 3 READ_VAR ADDR 3 2 0 4 1 network 1 All messages intended for network 3 are sent to the coupler with module address 4 and those whose destination network is 1 to the network link integrated into the processor All messages whose network number address is different from 1 or 3 are sent to the processor that manages the main network In a multi coupler architecture communication is limited to a single network level With Bridge Stations
71. ot all of the 5 bytes are necessary only one Bridge Plus crossed for example the remaining bytes are set to 0 35010500 05 2010 63 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modbus Plus Addressing Illustration The following illustration shows a multi segment Modbus Plus structure Three characteristic examples are used to explain Modbus Plus addressing 22 Modbus Plus 13 61 Premium Quantum lo tel i BS SSe Al i Ol BP85 g oo Bridge Plus Si E 12 30 15 25 Quantum SSeS 5 Multiple bridge 3 G 1 2 3 4 Bpss Slave Modem Bridge Plus mummu A Modem Slave 113 4 7 22 Quantum Master L Modem Slave SSS SS Quantum A 69 Tom Tn 0 i i 62 9 Tom d I BP85 Bridge Plus Example 1 The routing path to access the Quantum station is 61 30 22 62 0 NOTE The final O is added so that the address path consists of 5 bytes 64 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modbus Plus Addressing Example 2 The routing path to access slave A is as follows 61 25
72. ows entry of routing data for all the network modules of a station X Way table JIC e Network Network 1 tH Erenet 1 Ethernet_2 2 sg Ethernet Ethernet as 2 3 zz Selection of accessible networks r Accessnetworks r Available networks 7 1 gt 2 3 Delete network list E 8 10 z 11 13 14 A 15 4 Caneel 35010500 05 2010 123 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Configuration of X Way Routing Elements and Functions The following table describes the various zones in the configuration screen Label Field Function 1 Logical Used to display the logical network name network Network type Used to display the network type 3 Accessible Used networks e forthe unshaded Logical Network zone to enter the list of networks accessible by this module e for the shaded Logical Network zones to display the list of networks accessible by these modules 4 Available Used to select the networks accessible by a module configured networks as a bridge A list of numbers from 1 to 127 shows the networks available for a connection point Each network number selected as being accessible is removed from the list of available networks in order to avoid configuration errors 124
73. provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modicon M340 PLCs Addressing Example 2 The second example is a multi network configuration as follows J Modicon m340 E Configuration Gateway Gateway H Modicon M340 Configuration Modbus serial CANopen Modbus serial Modbus CANopen device 2 device Modbus device 1 In the diagram above there are two Modicon M340 configurations which are called A and B The configuration B is directly connected to the Modbus device 1 via Modbus communication channel Communication between the two Modicon M340 PLCs is possible because the configurations are linked to the same Ethernet network Communication between the configuration A and the Modbus device 2 is possible only if you use an Ethernet Modbus gateway In case of it is a CANopen device an Ethernet CANopen gateway is required NOTE To address the CANopen device or the Modbus device 2 on the configuration A you must use the following syntax ADDM Netlink hostAddr node the gateway being identified with hostAddr field For example if the Netlink is set to Ethernet_1 the gateway address is 139 160 234 64 and the slave number of the device is set to 247 the syntax of the ADDM function is as follows ADDM Ethernet_1 139 160 230 64 247 35010500 05 2010 93 This document provided by Barr Thorp Electric Co Inc 800 4
74. r data transmission This mode of operation makes it possible to exchange data with several stations without them having to be repeated Report Three types of report are associated with specific inputs and outputs e An activity bit provides information on the availability and validity of the status bits e Status bits one bit per station e ensure consistency between the number of specific inputs configured and the number of specific inputs received e indicate if the specific inputs have been received before the Timeout e Presence bits one bit per station indicate if the specific inputs have been refreshed NOTE The presence bits are only valid for the specific inputs 22 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services Example for the Inputs The data blocks are copied in their entirety from the PCMCIA communication card to the internal word space reserved at the time of configuration In the following example the address of the first internal word is MW10 Intemal words PCMCIA Modbus Plus PLC memory communication network SMW 10 card 3 words from station 1 SMW 13 32 words from station 5 SMW45 20 words from station 6 i 500 words max MW65 Station 1 12 words from station 8 Specific Peer Cop data MW77 inputs 32 words from station 9 Station 5 Station 6 Station 62 SMW 150 3 words from station 62 Activity bit Status bits
75. r Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing Addressing of a Device on a Fipio Bus The address of a device on a Fipio bus depends on the station managing the bus e stand alone station ADDR b e SYS e station belonging to a network ADDR n s b e SYS where n network number network s station number station b bus number bus for Fipio the bus number is always 2 e device number equipment SYS keyword used to stipulate the station server system see page 70 Example The figure below describes the address of the station located in the gray rectangle The example here shows slave 2 on channel 1 of the module in rack 0 base rack slot 1 on network 20 station 3 Network 20 Station 2 Station 3 DDR 20 3 0 1 1 2 35010500 05 2010 69 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing Types of Communication Entities At a Glance There are different types of communication entities To characterize them the following keywords have been created SYS APP and APP num Another keyword ALL makes it possible to send general broadcast messages These exchanges are performed by the communication functions described in the Communication EF library It is possible to class addr
76. re distinguished e Multi module architectures in which there are several networks but no communication between these different segments is provided by the communication system e Multi network architectures composed of several network segments intercon nected by bridge stations Communication transparency is then provided in the equipment group present in this type of architecture This chapter describes how to set up the bridge function in a Premium PLC station as well as the use of communication services in a multi network architecture The multi network architecture complies with X Way communication standards To set up stations on different networks refer to the documentation corresponding to the module used NOTE X Way communication is not available for Modicon M340 PLCs 48 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Routing Features At a Glance An X Way PLC architecture is comprised of various network levels that interconnect via intermediate stations In a multi network architecture a single logic link must exist between two terminal stations Example Station 1 1 Terminal stations Station 1 2 1 network 1 2 3 4 Station 1 3 Intermediate Station 1 4 and 2 1 Stations and 3 1 network 2 1 1 network 3 2 2 Station 2 2 Station 3 2 Terminal stations
77. remium PLCs P57 4634 P57 5634 and P57 6634 35010500 05 2010 97 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Introduction to bridging Bridging Example At a glance The following pages present an example of PLC configurations bridging and its transparent PLC adresses Bridging Example The following example consists of the following PLC configurations e Configuration 3 this Modicon M340 configuration consists of the following communication modules e An Ethernet Modbus processor with IP address 139 160 235 34 and Modbus slave address 5 The processor is in slot 0 of the configuration so that the topological address of this processor s Ethernet channel is 0 0 3 and the topological address of this processor s Modbus channel is 0 0 0 e An Ethernet module BMX NOE 0100 with IP address 118 159 35 2 The Ethernet module is in slot 5 of the configuration so that the topological address of this Ethernet module s channel is 0 5 0 e Configuration 1 this configuration consists of a remote PLC linked to processor s Ethernet channel of the configuration 3 The IP address of this remote PLC is 139 160 235 16 e Configuration 2 this configuration consists of a remote PLC linked to Ethernet module s channel of the configuration 3 The IP address of this remote PLC is 118 159 35 45 e Configuration 4 this configuration consists of a remote PLC linked to processor s Modbus channel of
78. remote inputs ouputs on the Ethernet network without requiring any specific programming This service comprises the following essential elements e aread field containing all the values of the remote inputs e awrite field containing all the values of the remote outputs e scanning periods independent of the PLC cycle and dedicated to checking each remote device The scan will only be performed if the PLC is in Run mode This service works with all devices supporting Modbus communication on the TCP IP profile in server mode The exchange mechanism which is transparent for users involves e read requests e write requests e read and write requests 20 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services The following diagram shows how scanning of remote inputs outputs works Application memory r E Write Write e B field field mi Habi Oa i e U i oe 2 1 3 PLC in stop mode OB AG Input aan d n P P o1 words Output CAE words eE 1 ET As soon as the PLC goes into Run mode the module opens one connection per scanned device
79. ress E l Type of Object to Read x Address offirst object to read x l Number of consecutive objects to read x Reception zone X Bl Report x Possible types Constant Int Table Int Table n gt 6 Address ADDR Cancel NOTE The number and type of fields vary according to the communication function selected Availability This screen is available for the following communication functions e DATA EXCH e INPUT CHAR e OUT IN CHAR e PRINT CHAR e READ VAR e SEND REQ e SEND TLG WRITE VAR 140 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Entry Help Access a specific instruction of the function function block or DFB type At a Glance The application specific function may be accessed e by direct entry of the instruction and its parameters in an operate block e via the entry help function accessible in the program editors FBD LD IL ST Calling a Function The following table describes how to call a function Step Action 1 Access the required editor 2 Depending on the editor select one of the following methods to open the function library Select the function to enter with the data editor Once in the editor right click on the function LD FBD editors e Right click in the program editor and select the option FFB Input Assistant Note The function input assistant window appears Function Input
80. rp com Safety Information ZZ Important Information NOTICE Read these instructions carefully and look at the equipment to become familiar with the device before trying to install operate or maintain it The following special messages may appear throughout this documentation or on the equipment to warn of potential hazards or to call attention to information that clarifies or simplifies a procedure injury if the instructions are not followed This is the safety alert symbol It is used to alert you to potential personal injury hazards Obey all safety messages that follow this The addition of this symbol to a Danger or Warning safety label indicates that an electrical hazard exists which will result in personal A symbol to avoid possible injury or death A DANGER DANGER indicates an imminently hazardous situation which if not avoided will result in death or serious injury A WARNING WARNING indicates a potentially hazardous situation which if not avoided can result in death or serious injury 35010500 05 2010 7 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com PLEASE NOTE A CAUTION CAUTION indicates a potentially hazardous situation which if not avoided can result in minor or moderate injury CAUTION CAUTION used without the safety alert symbol indicates a potentially hazardous situation which if not avoided can result in equipment dam
81. rr thorp com Communication Architectures Field Bus At a Glance The PLC installed base has evolved and now uses many types of field bus Ethernet CANopen Modbus AS i Uni Telway and Fipio The field bus types used on communication architectures see page 38 for Modicon M340 Premium and Quantum PLCs are summarized in the following table Platform Field Bus Modicon M340 Premium Quantum Core of the range Ethernet I O Scanning CANopen Modbus AS i Proprietary bus 1 Uni Telway Fipio Connectivity INTERBUS Profibus TCP Open Legend 1 depends on the type of processor x Yes No 46 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Message Routing Subject of this Chapter This chapter describes the principles of X Way message routing on X Way multi network architectures What s in this Chapter This chapter contains the following topics Topic Page General 48 Features 49 Main Address 51 Multi Module Station Addresses 52 Messaging 53 35010500 05 2010 47 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Routing General Introduction A multi network architecture consists of several networks Two levels of architecture a
82. rs for Premium Atrium PLCs 4 IW Read consecutive input integer READ VAR values until 124 registers for SEND_RER for Premium Atrium PLCs see 1 Premium Atrium PLCs 15 16 0XXX M Write n output bits WRITE VAR 16 16 4XXX MW Write consecutive integer values WRITE_VAR 1 The addresses l and IW cannot be used when creating a communication function of type RI EAD VAR with the function input assistant 34 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Interoperability The way in which to use function codes with communication functions is described in the Modbus manual see Premium and Atrium using Unity Pro Asynchronous Serial Link User Manual NOTE Interoperability with Windows applications is provided in 2 ways e Access to the PLC variables can be easily achieved with OFS software e The application download function import export source format function and access to operating modes RUN STOP INIT functions can be performed using the UDE Unity Development Edition range A WARNING UNEXPECTED APPLICATION BEHAVIOR DATA EXCHANGE COMPATIBIL ITY Data structure alignments are not the same for Premium Quantum and M340 PLCs so verify that the data exchanged are compatible See the page DDT Mapping rules see Unity Pro Program Languages and Structure Reference Manual for more information Failure to follow these i
83. s The Modicon M340 processor s serial port is always channel 0 e node slave number to which the request is being sent The range for configured slave numbers is from 1 to 247 NOTE In a Modbus Slave configuration an additional address number 248 is used for a point to point serial communication Serial Link Using Modbus Protocol The diagram below shows two Modicon M340 processors connected via a serial link and using Modbus protocol la g Modbus Master e a Piy BMX P34 2010 Processor 3k IFE ae jS P JBI IEE i Modbus Slave BMX P34 2010 Processor Ag The address settings of the slave processor number 8 are ADDM 0 0 0 8 90 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modicon M340 PLCs Addressing Character Mode Addressing Rules The syntax of Character mode addressing is ADDM r m c of ADDM r m c SYS SYS can be omitted The meaning of the string parameter is as follows r rack address of the connected device m module address of the connected device c channel address of the connected device SYS keyword used to stipulate the station server system SYS can be omitted Serial Link Using Character Mode Protocol The diagram below shows a Modicon M340 processor linked to a data entry d
84. s Frame length error MAST i Receiver collision abort error Net Link Receiver alignment error Modbus_Plus_1 Receiver CRC error _ Incorrect packet length error 4 be 5 136 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Debugging Description The table below shows the different elements of the debug screen and their functions Label Element Function 1 Tabs The tab in the foreground indicates the mode in progress Debug for this example You can select each mode by clicking the corresponding tab The modes available are e Debug accessible only in online mode e Diagnostic accessible only in online mode e Configuration o Settings 2 Module This area displays the abbreviated module indicator area There are three indicators that provide the module s status in online mode e RUN indicates the module s operating status e ERR indicates an internal fault in the module e I O indicates a fault from outside the module or an application fault 3 Channel This area is used to select the channel to be debugged area e Channel module channel number To the left of the symbol there is a copy of the CHx channel LED 4 General This area shows the communication channel parameters parameters e Function shows the configured communication function This area information cannot be modified e Task shows the task configured MAST This informat
85. s section gives an overview of the messaging service available on Schneider PLCs What s in this Section This section contains the following topics Topic Page Messaging Service 28 Characteristics of the Messaging Service Communication Functions 29 35010500 05 2010 27 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services Messaging Service At a Glance The messaging service makes it possible to perform inter PLC data exchanges using communication functions Two types of messaging are used e Private UNI TE on Premium and Telemecanique installed base e Standard Modbus on Quantum Premium Modicon M340 and Modicon installed base The destination entities of an exchange can either be located in a local station or in a remote station on a communication channel or directly in the CPU The communication functions provide an interface that is independent of the location of the destination entity Furthermore they mask the coding of the communication requests from the user They thus guarantee compatibility of communication between Premium Micro Quantum TSX 40 TSX 17 1000 series and Modicon M340 PLCs NOTE Processing of communication functions is asynchronous in relation to the processing of the application task which allowed them to be activated The send receive telegram and stop operation functions are the only exceptions as their execution is totally
86. synchronous with the execution of the activation task Synchronous Asynchronous Communication A communication function is said to be synchronous when it is wholly executed during the PLC task that activated it A communication function is said to be asynchronous when it is executed during one or more PLC tasks after the task that activated it 28 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Services Characteristics of the Messaging Service Communication Functions At a Glance These functions see Unity Pro Communication Block Library enable communication between one device and another Certain functions are common to several types of communication channel Others may be specific to one communication function NOTE Processing of communication functions is asynchronous in relation to the processing of the application task which allowed them to be activated The send receive telegram and stop operation functions are the only exceptions as their execution is totally synchronous with the execution of the activation task NOTE It is recommended that asynchronous functions be triggered on edge and not on state so as to avoid sending several identical requests in quick succession thus saturating the communication buffers Communica tion Functions on Premium The following table gives an overview of Premium communication functions Function asynchronous R
87. t provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Entry Help 146 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Index A addressing 67 assistant 139 IP 59 Modbus Plus 63 Modicon M340 81 Premium 67 ALL 70 APP 70 architectures 37 brigde 95 broadcast Modicon M340 82 Premium 71 C Communication Entry help 140 configuring field buses 111 configuring networks 103 configuring X way 121 D Debug screen 135 E Entry help 140 G Global Data 17 IO Scanning 17 M messaging 17 P Peer Cop 17 S SYS 70 T topologies 37 X X Way message routing 47 35010500 05 2010 147 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Index 148 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com
88. ta only the manufacturer should perform repairs to components When devices are used for applications with technical safety requirements the relevant instructions must be followed Failure to use Schneider Electric software or approved software with our hardware products may result in injury harm or improper operating results Failure to observe this information can result in injury or equipment damage 2010 Schneider Electric All rights reserved 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Table of Contents This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Safety Information 000 cece eee eee 7 About the Book 2 0 0 9 Part Introduction to the Communication Application 11 Chapter 1 General 5 427 scdees fel bee sewnee ev eiiG ved 13 Introduction to the Communication Application 14 Summary of Communication Solutions 20000ee eee 16 Chapter 2 Services Available on Networks and Buses 17 2 1 Global Data Service 0 00 18 Global Data Service sser 0 00 cc ete 18 2 2 lO Scanning Service 0 6 teas 20 IO Scanning Service 1 1 0 tenes 20 2 3 Peer Cop Service on Modbus Plus 0000 cee eee eeee 22 Peer Cop Service 0 0 c cece 22 2 4 Common Words and Shared Tables Services on Fipway 25 Fipwa
89. ted e The Application box selects an exchange with a PL7 application corresponds to APP addressing e The System box selects the PLC system of the station designated by the network level corresponds to SYS addressing e The Module box means that the destination device is connected to the station via a link Uni Telway Modbus Modbus Plus or Fipio This case requires you to specify e the position of the module supporting this link e the type of this module Protocol The Protocol field defines the exchange protocol used between the station on the network and the exchange s destination device Device Level This parameter is used to specify e the type of destination device e the address of this device 144 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Entry Help Limitations In the address entry help screen communications from a Uni Telway slave require coding of the destination address in the transmission buffer see Unity Pro Communication Block Library The help window allows full entry of the section corresponding to ADDR advising the user that the additional buffer must be coded Remote station address coding is only supported by the following devices TSX 17 TSX 37 TSX 47 107 TSX 57 For third party devices only entry of the port number is proposed In other cases the address must be entered manually 35010500 05 2010 145 This documen
90. ting Stations 129 Examples of Partial Routing 132 35010500 05 2010 121 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Configuration of X Way Routing Configuration At a Glance In an intermediate station the management of several network couplers requires a configuration phase in order to distribute the functional characteristics to the various network entities Terminal stations network 1 Intermediate stations L i network 3 Terminal stations Configuration of Unity Pro station NOTE Multi network routing information is constructed at the station level at the time of configuration of each bridge No consistency check is done on routing data for the same network architecture 122 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Configuration of X Way Routing Configuration of Multi Network Services At a Glance In a station that supports various network modules each network connection point is considered as an address for the station When configuring each module it is necessary to define the list of network numbers that are accessible for each connection point Depending on the processor selected during hardware configuration a bridge station can only manage 3 or 4 network modules The table will therefore have a maximum of 4 elements Illustration A specific screen all
91. tion of Station R1 The module at slot 2 is not involved in the routing of data The module at slot 4 can access networks 1 and 11 The module at slot 5 can access networks 13 and 21 The bridge configuration of the station is therefore as follows X Way table Ba letwork Network Ethernet_4 Fipway_5 Ethernet Fipway 11 21 Delete network list Configuration of Station R2 The module at slot 0 can only access network 11 The module at slot 5 can access networks 1 13 and 21 Network 12 is inaccessible The bridge configuration of the station is therefore as follows Network X Way table x Network Fipway_0 Ethernet 9 Fipway Ethernet 1 13 21 Delete network list 35010500 05 2010 133 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Configuration of X Way Routing Configuration of Station R3 The module at slot O can access networks 13 1 and 11 Network 12 is no longer accessible The module at slot 5 can only access network 21 The bridge configuration of the station is therefore as follows Network Network Fipway_0 Fipway_5 Fipway Fipway 134 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc
92. twork 11 The module at slot 5 can access networks 1 12 13 and 21 The bridge configuration of the station is therefore as follows X Way table ka ork let Network Ethernet 5 Delete network list Configuration of Station R3 The module at slot O can access networks 13 12 1 and 11 The module at slot 5 can only access network 21 The bridge configuration of the station is therefore as follows X Way table X letwork Jelete net link Messaging To use the communication function see Unity Pro Communication Block Library such as Read_VAR for ethernet exchange between stations configure the TCP IP Messaging in the Ethernet network configuration see Premium and Atrium Using Unity Pro Ethernet Network Modules User Manual screen In the Messaging tab for each exchange set the IP address and target XWay address For example if station R3 needs to communicate with station B in R1Messaging tab e set the R2 IP address 139 255 255 4 in the field IP address and e set the B XWay address 11 4 in the field XWay address 130 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Configuration of X Way Routing The following illustration shows the R1 Messaging tab Configuration of connections A
93. unication Entity At a Glance With Modicon M340 PLCs it is possible to address any Modicon M340 PLC communication channel and any device directly connected to a Modicon M340 PLC communication channel Each device is identified by a unique address which consists of a device number or an IP address The addresses then differ according to the protocol e Ethernet TCP IP e Modbus or CANopen e Character Mode Within a station each communication entity is characterized by a topological address access path and a target entity NOTE An address is expressed in the form of a character string However it can only be used in conjunction with the function ADDM which is why the following notation will be used to describe an address ADDM address string Modicon M340 addressing uses 3 concepts e The target entity depends on the communication EF and is chosen implicitly e MBS for addressing a Modbus server e TCP MBS for addressing a TCP Modbus server e sys for addressing a channel server on Character mode SYS can be ommitted e The communication channel is explicit processor s or module s position and communication channel number or symbolized with the Netlink name for Ethernet communication e The node address depends on the communication protocol e IP address with Ethernet e node address with CANopen e slave address with Modbus 35010500 05 2010 83 This document provided by Barr Thorp Electric Co Inc 800
94. works Selection of accessible networks m Access networks m Available networks 7 1 A 3 2 7 3 9 10 6 lt 8 1 12 gt 14 15 16 17 Y 2 Double click the numbers of the accessible networks to be removed left column Result The network number is reassigned in the Available networks scroll list Confirm the selection by clicking OK Confirm the router configuration 128 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Configuration of X Way Routing Examples of X Way Routing Stations At a Glance Each station must be configured in order to define the list of accessible networks network 1 Ethernet R2 BQ Fipway Fipway network 11 network 12 XWay address 11 4 R3 IP address of station R1 139 255 255 5 IP address of station R2 139 255 255 4 Fipway network 21 XWay address 21 7 Configuration of Station R1 The module at slot 2 can only access network 12 The module at slot 4 can only access network 1 and 11 The module at slot 5 can access networks 13 and 21 The bridge configuration of the station is therefore as follows X Way table Network Network twort 35010500 05 2010 129 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Configuration of X Way Routing Configuration of Station R2 The module at slot 0 can only access ne
95. ws how to access a Magelis system connected to a Fipio bus connection point 6 and communicate with text block TXT 8 on a model 40 programmable PLC connected to network 2 Network 2 Fipway TSX 7 Station 4 Station 2 a m z 5 ta oe o ie iig Communication Hh ita with TXT 8 block e Network 3 i Fipio ey Station 1 Station 3 5 I BE E f fi Aal E ji i l eee i Bl lee lp ipie Magelis Communication with g9 se the Magelis system S033 Connection point 6 The address of the TXT 8 text block on the TSX 7 PLC station 4 is ADDR 2 4 APP 87 The address of the Magelis system is ADDR 2 4 2 6 SYS 35010500 05 2010 79 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com X Way Addressing 80 35010500 05 2010 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com Modicon M340 PLCs Addressing 10 Purpose of this Chapter This chapter describes Modicon M340 PLCs addressing and indicates its fields of application What s in this Chapter This chapter contains the following topics Topic Page Modicon M340 Types of Communication Entities 82 Modicon M340 Addressing for a Communication Entity 83 Processor Communication Channels Addressing 86 Example of Modicon M340 Ethernet Addressing 88 Example of Modicon M340 CANopen Addressing 89 Examples of Modicon M340 Modbus and Character Mode Addressing 90 Examp
96. y Common Words and Shared Tables 0 005 25 2 5 Messaging Service 0 00 teeta 27 Messaging Service 0 0 0 c eect ete eee 28 Characteristics of the Messaging Service Communication Functions 29 Chapter 3 Interoperability 000 e cece eee eens 33 List of Modbus Function Codes 0c cece eee eee eee 33 Chapter 4 Communication Architectures 0 00005 37 Global Architecture 0 0 00 eee 38 Network Architectures 0 000 cece eee eee 42 Field BUS ai 4a sted ada near eae ee even shag oo 46 Chapter 5 X Way Message Routing 0 eeee seen eee 47 Ge erals imre een e Lie Ee Rg EERE Dee 48 FPOatUNGS 3s ti Serie tes tees iether vets ad atte aac Na thane 49 Main Address oieri nts 25 ob bbe ool bi bok Shoda d 51 Multi Module Station Addresses 0 000 cece eee eee 52 MeSSaGINgs ose Ai eee Poel es Be oy ok tn ee Ea ai 53 35010500 05 2010 3 Part Il Addressing 2 00 cece eee eee eee eee 55 Chapter 6 General Points Concerning Addressing 57 General suaran mimar hte tie ea a Peau a ae a a A 57 Chapter 7 IP Addressing 20 cece eee eee eee 59 Note on IP Addressing 0 0 e cece eee ee 59 Chapter 8 Modbus Plus Addressing 00 20eeeeeeee 63 Addressing for a Modbus Plus Communication Entity 63 Chapter 9 X Way Addressing 000e cece eee eee e eens 67 Addressing for a Com
97. y the company s network manager An IP address is defined as 32 bits It consists of 4 numbers one for each byte of the address NOTE Standardized and made common largely thanks to the Internet IP addressing is described in detail in RFCs Request For Comment 1340 and 791 which stipulate the Internet standards as well as in computing manuals describing networks You can refer to these sources for further information 35010500 05 2010 59 This document provided by Barr Thorp Electric Co Inc 800 473 9123 www barr thorp com IP Addressing Example Depending on the size of the network three classes of address can be used 7 bits 24 bits Class A o Network ID Machine ID 14 bits 16 bit Class B pgp Network ID Machine ID 21 bits 8 bits Class C pug Network ID Machine ID Spaces reserved for the different classes of IP addresses Class Range A 0 0 0 0 to 127 255 255 255 B 128 0 0 0 to 191 255 255 255 C 192 0 0 0 to 223 255 255 255 e Class A addresses are intended for large scale networks which have a large number of connected sites e Class B addresses are intended for medium scale networks which have fewer connected sites e Class C addresses are intended for small scale networks which have a small number of connected sites Sub Addressing and Sub Network Mask An IP address is composed of two identifiers one of which identifies the network while the other identifies the connected machine

Download Pdf Manuals

image

Related Search

Related Contents

Calcium Hypochlorite BRIQUETTES  USER MANUAL FOR  Bedienungsanleitung (Deutsch)  Nortec MH Series User's Manual  Powerware 3115 Power Supply User Manual    

Copyright © All rights reserved.
Failed to retrieve file