Field Bus Device Net Slave g
-
Upload
pabloacosta5925 -
Category
Documents
-
view
229 -
download
0
Transcript of Field Bus Device Net Slave g
-
7/31/2019 Field Bus Device Net Slave g
1/26
www.schneider-electric.com
Fieldbus
DeviceNet Slave Device Driver
01/2010
-
7/31/2019 Field Bus Device Net Slave g
2/26
2
-
7/31/2019 Field Bus Device Net Slave g
3/26
3
Table of Contents
Safety Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5About the Book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Chapter 1 DeviceNet Slave Device Driver . . . . . . . . . . . . . . . . . . . 9System Structure. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Target Machine Serial Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Cable Diagrams. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Supported Device Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Consecutive Equipment Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . 19Environment Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
I/O Manager Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Driver Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Device Address Configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
-
7/31/2019 Field Bus Device Net Slave g
4/26
4
-
7/31/2019 Field Bus Device Net Slave g
5/26
5
Safety Information
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.
DANGERDANGER indicates an imminently hazardous situation, which, if notavoided, will result in death or serious injury.
WARNINGWARNING indicates a potentially hazardous situation, which, if notavoided, can result in death, serious injury, or equipment damage.
CAUTIONCAUTION indicates a potentially hazardous situation, which, if notavoided, can result in injury or equipment damage.
This is the safety alert symbol. It is used to alert you to potential
personal injury hazards. Obey all safety messages that follow thissymbol to avoid possible injury or death.
The addition of this symbol to a Danger or Warning safety labelindicates that an electrical hazard exists, which will result in
personal injury if the instructions are not followed.
-
7/31/2019 Field Bus Device Net Slave g
6/26
6
PLEASE NOTE
Electrical equipment should be installed, operated, serviced, and maintained only by
qualified personnel. No responsibility is assumed by Schneider Electric for anyconsequences 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.
2009 Schneider Electric. All Rights Reserved.
-
7/31/2019 Field Bus Device Net Slave g
7/26
7
About the Book
At a Glance
Document Scope
This manual describes the device driver communication settings in the Vijeo-
Designer screen editing software. Vijeo-Designer enables you to design Magelis
target machines that communicate with PLCs, drives, field devices, and other
equipment.
For more information about Vijeo-Designer and Magelis target machines, pleaserefer to Vijeo-Designer user documentation.
Validity Note
The data and illustrations found in this book are not binding. We reserve the right to
modify our products in line with our policy of continuous product development. The
information in this document is subject to change without notice and should not be
construed as a commitment by Schneider Electric.
Documentation Conventions
Target Machine: Human-Machine Interface (HMI) that runs user applications
designed in Vijeo-Designer screen editing software. A target machine is also known
as a terminal.
-
7/31/2019 Field Bus Device Net Slave g
8/26
8
Product Related Information
* For additional information, refer to NEMA ICS 1.1 (latest edition), Safety
Guidelines for the Application, Installation, and Maintenance of Solid State Control.
User Comments
We welcome your comments about this document. You can reach us by e-mail at
WARNINGLOSS OF CONTROL
The designer of any control scheme must consider the potential failure modes
of control paths and, for certain critical control functions, provide a means to
achieve a safe state during and after a path failure. Examples of critical control
functions are emergency stop and overtravel stop.
Separate or redundant control paths must be provided for critical controlfunctions.
System control paths may include communication links. Consideration must be
given to the implications of unanticipated transmission delays or failures of the
link.*
Each implementation of a Magelis XBTGT, HMISTO, HMISTU, XBTGH,
XBTGK, XBTGC, iPC, and XBTGTW must be individually and thoroughly tested
for proper operation before being placed into service.
Failure to follow these instructions can result in death, serious injury, orequipment damage.
DeviceNetSlave DeviceDriver
-
7/31/2019 Field Bus Device Net Slave g
9/26
9
1DeviceNet Slave Device Driver
Subject of this ChapterThis chapter explains the DeviceNet Slave Device Driver.
What's in this Chapter?
This chapter contains the following topics:
Topic Page
System Structure 10
Target Machine Serial Interface 11
Cable Diagrams 15
Supported Device Addresses 18
Consecutive Equipment Addresses 20
Environment Setup 21
I/O Manager Configuration 22
Driver Configuration 23
Device Address Configuration 25
-
7/31/2019 Field Bus Device Net Slave g
10/26
DeviceNet Slave Device Driver
10
System Structure
OverviewThe following table describes the basic system setup for connecting the target
machine to a DeviceNet network.
To view a cable connection diagram for a particular communication format, see
Cable Diagrams.
Connection
Series Link I/F Comm. Format Diagram
Any DeviceNet
MasterDeviceNet Slave Unit DeviceNet Cable Diagram 1
-
7/31/2019 Field Bus Device Net Slave g
11/26
DeviceNet Slave Device Driver
11
Target Machine Serial Interface
Use the following serial interface diagrams in combination with the cable diagramsin Section 3 to wire connections between the target machine and external
equipment.
Magelis iPC Series (Smart, Compact, and Flex) and XBTGTW Series
The iPC Series (Smart, Compact, and Flex) and the XBTGTW Series target
machines come with one to four COM ports. All serial ports use 9-pin SUBD male
connectors and support RS-232C serial communication. The following table
illustrates the pin layout for these target machines.
COM1, COM2, COM3, OR COM4 (9-pin SUBD Plug)
RS-232C
Magelis XBTGK, XBTGC2000, and XBTGT2000 Series or higher
All XBTGK and XBTGT2000 Series and higher target machines have two COM
ports: COM1 and COM2. The XBTGC2000 Series has one COM port: COM1.
XBTGH2000 Series (Junction Box) has one COM port: COM1.
COM1 is a 9-pin SUBD male connector and COM2 is an RJ45 socket. The following
tables illustrate the pin layout for these target machines.
COM1 (9-pin SUBD Plug)This COM port can act as either an RS-232C or RS-422 interface.
Pin Number Symbol Description
1 CD Carrier Detect
2 RD(RXD) Receive Data3 SD(TXD) Transmit Data
4 ER(DTR) Data Terminal Ready
5 GND Common Ground
6 DR(DSR) Data Set Ready
7 RS(RTS) Request to Send
8 CS(CTS) Send Possible
9 CI(RI) Called status display
-
7/31/2019 Field Bus Device Net Slave g
12/26
-
7/31/2019 Field Bus Device Net Slave g
13/26
-
7/31/2019 Field Bus Device Net Slave g
14/26
DeviceNet Slave Device Driver
14
COM1 (RJ45 Socket)
RS-232C.
RS-232C.
WARNINGLOSS OF CONTROL
When making your own connections, use shielded RJ45 connectors. The shielded
connector provides isolation against noise and provides a secure physical
connection in the RJ45 socket. Using an improper RJ45 plug could lead to loose
cable connections resulting in loss of control.
Failure to follow these instructions can result in death, serious injury, orequipment damage.
Pin Number Symbol Description
1 RD(RXD) Receive Data
2 SD(TXD) Transmit Data
3
4
5
6
7
8 GND Common Ground
Pin Number Symbol Description
1
2
3
4 D1(+) Send Data (Positive Signal)
5 D0(-) Send Data (Negative Signal)
6
7
8 GND Common Ground
-
7/31/2019 Field Bus Device Net Slave g
15/26
DeviceNet Slave Device Driver
15
Cable Diagrams
Schneider Electric recommends using the following diagrammed connections.When creating your own cables, to identify which pins to connect on the targetmachine, see Target Machine Serial Interface.
Note:
Ensure that the equipment is properly grounded as indicated in the user manual
and follows all applicable country standards.
When signal lines overlap as shown below, it indicates a twisted pair.
-
7/31/2019 Field Bus Device Net Slave g
16/26
DeviceNet Slave Device Driver
16
Diagram 1 - DeviceNet
To connect the target machine and the PLC, use the recommended cables andaccessories.
DANGERELECTRIC SHOCK
Isolate local ground connection for each component of interconnected equipment.
There is a risk of electric shock when connecting a PLC cable to a target machine,
as the two may be at different electrical potentials, even if both are separately
connected to ground.Failure to follow these instructions can result in death or serious injury.
WARNINGLOSS OF CONTROL
To reduce communication interference as a result of electromagnetic interference,use shielded twisted-pair cables. Connect the cable shields, then connect the
cable to a single-point ground on the HMI side.
Failure to follow these instructions can result in death, serious injury, or
equipment damage.
Note: The first and last stations on the network should be terminated with 121 ohm 1/4
Watt resistors.
Target Machine Comments
aDeviceNet Connector and
DeviceNet Cable
bDeviceNet Connector and User-
created connection
XBTGK Series
(DeviceNet Slave Unit)
or
XBTGT2000 Series or
higher (DeviceNet
Slave Unit)
Cable / Adapter
-
7/31/2019 Field Bus Device Net Slave g
17/26
DeviceNet Slave Device Driver
17
a. DeviceNet Connector and DeviceNet Cable
b. DeviceNet Connector and User-created connection
Target
DeviceNet
DeviceNet
Master or SlaveDeviceNetSlave Unit
ShieldDeviceNet Master or Slave
1 V- 1 V-
5 V+ 5 V+
2 CAN_L 2 CAN_L
4 CAN_H 4 CAN_H
3 SHIELD 3 SHIELD
TerminationResistance1/4W 121O
TerminationResistance1/4W 121O
Target
Machine
DeviceNet Slave Unit
-
7/31/2019 Field Bus Device Net Slave g
18/26
DeviceNet Slave Device Driver
18
Supported Device Addresses
Overview
The following tables list the device address ranges you can enter from the Device
Address keypad.
For actual device address ranges supported by the PLC, refer to the correspondingPLC manual.
I/O
I/O is process data that is exchanged between the DeviceNet Slave Unit (target
machine) and the DeviceNet master (PLC). This data is continuously updated andis available to the application.
*1 Read-modify-write. When you write to one of these bit addresses, the targetmachine reads the entire word address, sets the defined bit, then returns the new
value to the PLC. If the ladder program writes data to this word address during
the bit read/write process, the resulting data may be incorrect.
*2 Read-only.
*3 Range shown is the maximum range supported by the DeviceNet Slave (target
machine). Actual maximum depends on the input and output area allocated to
the slave (target machine) by the DeviceNet Master (PLC).
WARNINGUNINTENDED EQUIPMENT OPERATION
Design your system to avoid conflicting write processes between the target
machine and PLC program. Values on the PLC and target machine will be
incorrect if:
The target machine and PLC program attempt to simultaneously write to the
same register.
PLC programs or other devices write 16-bit word values to registers being
accessed in a bitwise manner.
Failure to follow these instructions can result in death, serious injury, orequipment damage.
Device Bit Address*1 Word Address 16 bit 32 bit
Input*1*3
%I000.00 ~ %I127.15 %I000 ~ %I127
Output*2*3 %Q000.00 ~ %Q127.15 %Q000 ~ %Q127
L/H*4L/H*4
-
7/31/2019 Field Bus Device Net Slave g
19/26
DeviceNet Slave Device Driver
19
Example Configuration
XBTGT/XBTGK target machine configured with 32 Words Input and Output.
Rockwell SLC 5/05 with 1747-SDN module maps the target machines Inputs toaddress %I:2.32 and Outputs to %Q:2.16.
*4 16-bit and 32-bit data, High and Low, refer to data as defined in the following
examples.
I:2.0
I:2.1:
:I:2.32
I:2.34
:I:2.63
I:2.64:
DeviceNet Master (PLC) I/O Layout
O:2.0O:2.1
:
:O:2.16
O:2.17:
O:2.47O:2.48
:
PLC
Input Area
PLC
Output Area
I000
I001:
:I031
I032
::
::
Target Machine I/Q Memory Area
Q000Q001
:
:Q031
Q032:
::
:
Not Used
Not Used
-
7/31/2019 Field Bus Device Net Slave g
20/26
-
7/31/2019 Field Bus Device Net Slave g
21/26
DeviceNet Slave Device Driver
21
Environment Setup
OverviewThe following table lists the default communication settings for the target machine
and the range of possible settings for the DeviceNet PLC equipment. After the PLC
is configured, the settings of the target machine must match that of the PLC.
For details on setting up the PLC, refer to the corresponding PLC manual. For
details on the target machine configuration, see Driver Configuration.
MAC Address 0
Baud Rate Auto
Input Size 0
Output Size 0
Driver
Target Machine Settings PLC Settings
125, 250, 500, Auto (Kb/s)
0 - 128 words
0 - 128 words
0 - 63
-
7/31/2019 Field Bus Device Net Slave g
22/26
DeviceNet Slave Device Driver
22
I/O Manager Configuration
OverviewSelect the following driver and equipment to enable communication with the target
machine.
Screen example of I/O Manager Configuration
Note:
For information on how to display the [New Driver] dialog box, see the online
help.
-
7/31/2019 Field Bus Device Net Slave g
23/26
DeviceNet Slave Device Driver
23
Driver Configuration
Overview
To configure the communication settings of the driver in the target machine, use the
Driver Configuration dialog box. Make sure the settings match those of the PLC.
For an overview of the driver settings, see Environment Setup.
Screen example of Driver Configuration
WARNINGUNINTENDED EQUIPMENT OPERATION
Read and understand the instructions in this section to ensure data is properly
transferred. If you do not follow these instructions, incorrect data could be written
to the PLC and the target machine, which could result in unintended system
operation.Failure to follow these instructions can result in death, serious injury, orequipment damage.
Note:
For information on how to display the [Driver Configuration] dialog box, see the
online help.
D i N Sl D i D i
-
7/31/2019 Field Bus Device Net Slave g
24/26
DeviceNet Slave Device Driver
24
Screen Description
Area Description
Manufacturer Displays the name of the equipment manufacturer.
Driver Displays the driver used to connect the target machine to the equipment.
MAC Address Defines the address of the target machines DeviceNet Slave interface
module.
MAC Address Defines the address of the target machines DeviceNet Slave interface
module.
Baud Rate Select 125, 250, 500 or Auto. Select the rate at which data is transferred
between the target machine slave and the PLC master.
Input Size Defines the number of words input to the PLC master. Range from 0 -
128 words.
Output Size Defines the number of words output from the PLC master. Range from
0 - 128 words.
D i N Sl D i D i
-
7/31/2019 Field Bus Device Net Slave g
25/26
DeviceNet Slave Device Driver
25
Device Address Configuration
Overview
To set up a PLC variable in the Variable List, use the Device Address Keypad fromthe variable properties.
See Supported Device Addresses.
Screen example of Device Address Keypad
WARNINGUNINTENDED EQUIPMENT OPERATION
Read and understand the instructions in this section to ensure data is properly
transferred. If you do not follow these instructions, incorrect data could be written
to the PLC and the target machine, which could result in unintended system
operation.Failure to follow these instructions can result in death, serious injury, orequipment damage.
Note:
For information on how to display the Device Address Keypad, see the online
help.
-
7/31/2019 Field Bus Device Net Slave g
26/26