Operating Modes. Schneider Electric ATRIUM, Premium, Quantum, Modicon M340
Reklamë
Reklamë
Modicon M340, Premium, Atrium, and Quantum Using Unity Pro
Operating Modes
35010500 10/2014
Operating Modes
Part III
Operating Modes
Subject of this Part
This part describes the operating modes associated with expert communication.
What Is in This Part?
This part contains the following chapters:
Chapter
12
13
14
15
16
Chapter Name
Network Configuration
Bus Configuration
Configuration of X-Way Routing Premium Stations
Debugging
Communication Function Programming and Entry Help
Page
105
35010500 10/2014
Operating Modes
106
35010500 10/2014
Modicon M340, Premium, Atrium, and Quantum Using Unity Pro
Network Configuration
35010500 10/2014
Network Configuration
Chapter 12
Network Configuration
Subject of this Chapter
This chapter presents the tools for configuring a network at the global level and at the station level.
What Is in This Chapter?
This chapter contains the following topics:
Topic
Network Configuration Principle Using Unity Pro
Creating a Logic Network
Configuring a Logic Network
Associating a Logic Network with Network Hardware
Page
107
35010500 10/2014
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:
creation of a logic network, configuration of the logic network, declaration of the module or of the PCMCIA card (for Premium), 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:
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),
Modbus Plus configuration (see Premium and Atrium Using Unity Pro, Modbus Plus Network,
User Manual),
Fipway configuration (see Premium and Atrium using Unity Pro, Fipway Network, User Manual).
108
35010500 10/2014
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
1
Action
Expand the Communication directory in the project browser.
Result::
2 Right-click in the Networks sub-directory and select the New network option.
Result::
35010500 10/2014
109
Network Configuration
Step
3
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:
110
4
Note: You can also add a comment, if you so desire, by clicking on the Comment tab.
Click OK and a new logic network is created.
Result: We have just created the Ethernet network that appears in the project browser
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.
35010500 10/2014
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:
Ethernet configuration for Premium (see Premium and Atrium Using Unity Pro, Ethernet
Network Modules, User Manual) and Ethernet configuration for M340 (see Modicon M340 for
Ethernet, Communications Modules and Processors, User Manual),
Modbus Plus configuration (see Premium and Atrium Using Unity Pro, Modbus Plus Network,
User Manual),
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
1
Action
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 the project networks.
Example::
2 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 10/2014
111
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
1
2
3
Action
Open the hardware configuration editor.
Right-click the device (Ethernet module, Fipway PCMCIA card or Modbus Plus
PCMCIA card) that you wish to associate with a logical network.
Select the channel and function.
Result: For a TSX ETY 4103 module:
112
35010500 10/2014
Step
4
Network Configuration
Action
In the Network link field, select the network to be associated with the card.
Result:
5 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:
35010500 10/2014
113
Network Configuration
114
35010500 10/2014
Modicon M340, Premium, Atrium, and Quantum Using Unity Pro
Bus Configuration
35010500 10/2014
Bus Configuration
Chapter 13
Bus Configuration
Subject of this Chapter
This chapter describes how to access bus configuration tools.
What Is in This Chapter?
This chapter contains the following topics:
Topic
Creating and Accessing RIO\DIO Field Buses
Accessing Bus Configurations on PCMCIA and SCY 21601 Cards
Page
115
35010500 10/2014
Bus Configuration
Creating and Accessing RIO\DIO Field Buses
Introduction
Quantum PLCs offer a decentralized input/output architecture solution:
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.
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).
Creating a RIO Bus
The following table describes the procedure for creating a RIO bus from a communication module:
Step
1
2
3
Action
In the bus editor, select the slot where you wish to insert the communication module.
Select New Device in the contextual menu.
Result: The New Device window appears.
Expand the Communication directory.
Result: The following window appears:
116
35010500 10/2014
Step
4
Action
To create a RIO bus, select a 140 CRP 93x 00 module.
Result: The bus appears in the project browser:
Bus Configuration
Creating a DIO Bus
The following table describes the procedure for creating a DIO bus from a communication module:
Step
1
2
Action
In the bus editor, select the slot where you wish to insert the communication module.
Select New Device in the contextual menu.
Result: The New Device window appears.
35010500 10/2014
117
Bus Configuration
Step
3
Action
Expand the Communication directory.
Result: The following window appears:
4
5
6
7
To create a bus, select a 140 NOM 2XX 00 module.
Result: The module appears in the rack.
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.
118
35010500 10/2014
Bus Configuration
Creating a DIO Bus from the Processor
The following table describes the procedure for creating a DIO bus from the processor:
2
3
Step
1
Action
In the bus editor, double-click the processor’s Modbus Plus port.
Check the box marked DIO Bus.
Confirm the configuration.
Result: The DIO bus appears in the project browser:
35010500 10/2014
119
Bus Configuration
Accessing a RIO or DIO Bus
To access a bus, carry out the following actions:
Step
1
Action
In the project browser, open the Configuration directory.
Example:
120
35010500 10/2014
Step
2
Bus Configuration
Action
Select the RIO bus or DIO bus subdirectory depending on the type of bus you want to open. Next, select the Open command in the popup menu.
Result: The following window is displayed for the RIO bus:
Result: The following window is displayed for the DIO bus:
35010500 10/2014
121
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
1
Action
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:
122
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.
35010500 10/2014
Bus Configuration
How to Configure a Communication Bus
The table below describes the actions to be taken to configure a communication bus:
Step
1
Action
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:.
35010500 10/2014
123
Bus Configuration
Step
2
Action
Select the channel and the desired function (for example, Modbus).
Result: A window that resembles the following is displayed. The bus must now be configured according to the project parameters:.
124
35010500 10/2014
Modicon M340, Premium, Atrium, and Quantum Using Unity Pro
Configuration of X-Way Routing
35010500 10/2014
Configuration of X-Way Routing Premium Stations
Chapter 14
Configuration of X-Way Routing Premium Stations
Subject of this Chapter
This chapter presents the operating modes required for configuring X-Way routing Premium stations.
What Is in This Chapter?
This chapter contains the following topics:
Topic
Configuration
Configuration of Multi-Network Services
Configuring an X-Way Router Module
Examples of X-Way Routing Stations
Examples of Partial Routing
Page
125
35010500 10/2014
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.
126
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.
35010500 10/2014
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 allows entry of routing data for all the network modules of a station.
35010500 10/2014
127
Configuration of X-Way Routing
Elements and Functions
The following table describes the various zones in the configuration screen:
2
3
Label
1
4
Field
Logical network
Function
Used to display the logical network name.
Network type Used to display the network type.
Accessible networks
Available networks
Used:
for the unshaded Logical Network zone, to enter the list of networks accessible by this module,
for the shaded Logical Network zones, to display the list of networks accessible by these modules.
Used to select the networks accessible by a module configured 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.
128
35010500 10/2014
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
1
Action
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.
35010500 10/2014
If the list of accessible module networks is empty, the window appears automatically (without double-clicking).
129
Configuration of X-Way Routing
Step
2
Action
Double-click the highlighted field in order to configure the first network.
Result: The Selection of accessible networks window appears.
3
4
5
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.
130
35010500 10/2014
Removing the Bridge Function
It is possible to remove the bridge function from the module.
Step
1
Action
Access the following X-Way window.
Configuration of X-Way Routing
2
3
Click Delete network list.
Confirm the configuration
35010500 10/2014
131
Configuration of X-Way Routing
Removing Access to a Network
It is possible to remove access to a single network.
Step
1
Action
Access the following X-Way window of the accessible networks.
132
2
3
4
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.
35010500 10/2014
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.
35010500 10/2014
133
Configuration of X-Way Routing
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:
Configuration of Station R2
The module at slot 0 can only access network 11.
The module at slot 5 can access networks 1, 12, 13 and 21.
The bridge configuration of the station is therefore as follows:
134
35010500 10/2014
Configuration of Station R3
The module at slot 0 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:
Configuration of X-Way Routing
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:
set the R2 IP address (139.255.255.4) in the field IP address, and set the B XWay address (11.4) in the field XWay address.
The following illustration shows the R1 Messaging tab:
For another example if station B needs to communicate with station A, in R2, Messaging tab: set the R1 IP address (139.255.255.5) in the field IP address, and set the A XWay address (21.7) in the field XWay address.
35010500 10/2014
135
Configuration of X-Way Routing
The following illustration shows the R2 Messaging tab:
136
35010500 10/2014
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.
35010500 10/2014
137
Configuration of X-Way Routing
Configuration 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:
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:
138
35010500 10/2014
Configuration of X-Way Routing
Configuration of Station R3
The module at slot 0 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:
35010500 10/2014
139
Configuration of X-Way Routing
140
35010500 10/2014
Modicon M340, Premium, Atrium, and Quantum Using Unity Pro
Debugging
35010500 10/2014
Debugging
Chapter 15
Debugging
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:
The top left section, which is in all types of debug screens, is dedicated to module and communication channel information.
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
1
2
Action
Access the configuration screen
Select Debug mode by clicking the corresponding tab.
141
35010500 10/2014
Debugging
Illustration
This area is used to access diagnostics for a communication channel.
142
35010500 10/2014
Description
The table below shows the different elements of the debug screen and their functions.
Label
1
2
3
4
5
Element
Tabs
Module area
Function
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:
Debug (accessible only in online mode),
Diagnostic (accessible only in online mode),
Configuration,
Settings.
This area displays the abbreviated module indicator.
There are three indicators that provide the module’s status in online mode:
RUN indicates the module’s operating status,
ERR indicates an internal fault in the module,
I/O indicates a fault from outside the module, or an application fault.
Channel area
General
parameters area
Mode
parameters area
This area is used to select the channel to be debugged:
Channel: module channel number. To the left of the symbol there is a copy of the CHx channel LED.
This area shows the communication channel parameters:
Function: shows the configured communication function. This information cannot be modified.
Task: shows the task (configured MAST). This information cannot be modified.
This area contains the parameters of the mode selected by the tab.
NOTE: All unavailable LEDs and commands appear in gray.
Debugging
35010500 10/2014
143
Debugging
144
35010500 10/2014
Modicon M340, Premium, Atrium, and Quantum Using Unity Pro
Entry Help
35010500 10/2014
Communication Function Programming and Entry Help
Chapter 16
Communication Function Programming and Entry Help
Subject of this Chapter
This chapter presents the various entry help tools.
What Is in This Chapter?
This chapter contains the following topics:
Topic
Communication Function Entry Help
Access a specific instruction of the function, function block or DFB type
Address Entry Help
Page
145
35010500 10/2014
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.
NOTE: The number and type of fields vary according to the communication function selected.
Availability
This screen is available for the following communication functions:
DATA_EXCH
INPUT_CHAR
OUT_IN_CHAR
PRINT_CHAR
READ_VAR
SEND_REQ
SEND_TLG
WRITE_VAR
146
35010500 10/2014
Entry Help
Access a specific instruction of the function, function block or DFB type
At a Glance
The application-specific function may be accessed:
by direct entry of the instruction and its parameters in an operate block 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
1
2
Action
Access the required editor.
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).
Right-click in the program editor and select the option FFB Input Assistant.
Note: The function input assistant window appears:
3
4
35010500 10/2014
Select the type of FFB required (if it is not already entered).
Then select the name of the instance (where necessary and if available).
147
Entry Help
Step
5
6
7
Action
Many instructions have a customized entry help screen. You can access this screen by clicking the
Special Assistant button.
Enter each parameter of the instruction (each instruction is explained in the relevant application-specific documentation):
in the customized detailed data entry screen, or in the Prototype area of the Entry field.
Confirm by clicking Ok.
148
35010500 10/2014
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 can access the address entry help with the following button:
Illustration
The following illustration shows the address input help screen for a communication function.
35010500 10/2014
149
Entry Help
Mode
The first parameter to select is the Mode. With it you can select one of the following communication modes: local (communication by bus) remote (communication by network)
Network Level
For remote communications only, the network level is used to:
enter the network number, enter the station number, select the station type.
Station Level
Depending on the communication function, with this parameter the type of exchange can be selected:
The Application box selects an exchange with a PL7 application (corresponds to APP addressing).
The System box selects the PLC system of the station designated by the network level
(corresponds to SYS addressing).
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:
the position of the module supporting this link,
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:
the type of destination device, the address of this device.
150
35010500 10/2014
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 10/2014
151
Entry Help
152
35010500 10/2014
Shkarko
Reklamë