Documente Academic
Documente Profesional
Documente Cultură
MGate 5105-MB-EIP
Moxa Technical Support Team
support@moxa.com
Contents
1
Objective ................................................................................................. 3
1.2
Goals ....................................................................................................... 3
System Topology............................................................................. 3
Configuration .................................................................................. 5
4.1
Hardware Installation................................................................................. 5
4.2
4.3
4.4
4.5
4.6
4.7
5.2
5.3
5.4
5.5
5.6
About Moxa
Moxa is a leading manufacturer of industrial networking, computing, and automation
solutions. With over 25 years of industry experience, Moxa has connected more than 30
million devices worldwide and has a distribution and service network that reaches
customers in more than 70 countries. Moxa delivers lasting business value by empowering
industry with reliable networks and sincere service for automation systems. Information
about Moxas solutions is available at www.moxa.com. You may also contact Moxa by email
at info@moxa.com.
How to Contact Moxa
Tel:
Fax:
+886-2-8919-1230
+886-2-8919-1231
5.7
6.2
6.3
8.2
Appendix ....................................................................................... 34
9.1
9.2
Page 2 of 36
1 Application Description
1.1 Objective
This document describes an application using Allen-Bradley ControlLogix PLC with MGate
5105-MB-EIP.
In this application, Allen-Bradley ControlLogix PLC is used to get input data that MGate
5105-MB-EIP polls from the temperature meter through Modbus Register. Allen-Bradley
ControlLogix PLC evaluates the temperature value and outputs data to MGate 5105-MB-EIP,
which then uses the data to control speed.
1.2 Goals
In this document, you will learn the following:
1. Configure Allen-Bradley ControlLogix PLC.
2. Configure MGate 5105-MB-EIP to communicate with a Modbus RTU device.
3. Set up MGate 5105-MB-EIP in RSLogix 5000.
4. Create a basic RSLogix Ladder Programming.
5. Industrial field applications and the job of each role.
2 System Topology
The following figure shows a system architecture in which the Modbus end devices,
PowerFlex 4M and IAQPoint2, are connected to the serial port on MGate 5105-MB-EIP
through RS-485-2W wiring. MGate 5105-MB-EIP and PC (running RSLogix 5000) are
connected to Ethernet switch ports on Allen-Bradley ControlLogix PLC. A fan is connected to
PowerFlex 4M, which powers the fan.
Page 3 of 36
PC (RSLogix 5000)
Information
Level
Control
Level
Ethernet
Allen-Brandly
ControlLogix PLC
Ethernet
MGate 5105-MB-EIP
Device
Level
RS-485-2W
Power Flex 4M
Fan
IAQPoint2
Chassis: 1756-A7
MGate 5105-MB-EIP
PowerFlex 4M
PowerFlex 4M is an adjustable frequency AC drive to power the fan in this application.
IAQPoint2
IAQPoint2 is an indoor air quality monitor. It can detect CO2, temperature, and humidity
levels.
Page 4 of 36
RS Logix 5000
Allen-Bradley ControlLogix PLC Edit Utility released by Rockwell Automation.
Rev. : V20
RSLinx
Communication Utility released by Rockwell Automation.
Rev. :2.59
4 Configuration
4.1 Hardware Installation
PowerFlex 4M and IAQPoint2 Connection
Use RS-485-2W
Pin assignment
4
5
3
4
Modbus Port
5
6
Page 5 of 36
PLC Connection
Baudrate: 38400
01200
12400
24800
39600 (Default)
419.2K
538.4K
Page 6 of 36
Programmable Settings
0Keypad (Default)
13-Wire
22-Wire
32-W Lvl Sens
42-W Hi Speed
5Comm Port
Baudrate: 38400
Parity: Even(Default)
Page 7 of 36
EtherNet/IP Setting
Master Settings
Modbus Commands
Note:
For more information on Modbus registers for PowerFlex and IAQPoint 2, refer to
the appendix
Page 8 of 36
b. In the Configure Drivers screen, select EtherNet/IP Driver from the Available
Driver Types drop-down list and click Add New. Then, enter a driver name and
click OK.
Page 9 of 36
c.
In the screen that appears, select the network interface and click OK.
Page 10 of 36
Click Communications > RSWho to start searching for EIP devices on the
network.
The system displays the search result under the AB_ETHIP-1 node.
Page 11 of 36
Page 12 of 36
Page 13 of 36
2. Select Register a single file and specify the directory for the MGate 5105-MB-EIP
Adapter EDS file; then, click Next.
Page 14 of 36
4. Accept the default device icon for MGate 5105-MB-EIP or click Change icon to select
a new one. Click Next to continue.
Page 15 of 36
5. Click Next.
Page 16 of 36
Page 17 of 36
Chassis Type 1756-A7 7-Slot ControlLogix Chassis, and Slot 0. In addition, specify a
project name (for example, Demo).
Page 18 of 36
2. In the Select Module Type screen, select 1756-EN2TR and click Create.
Page 19 of 36
3. In the New Module screen, enter a name and the IP address; then, click Change in
the Module Definition area.
4. In the Module Definition screen, select 4 in the Revision fields as shown in the
following figure. Click OK.
Page 20 of 36
Page 21 of 36
Page 22 of 36
Connection Parameters: Set the Size (Input 8 and Output 2) and the Assembly Instance
(Input 110 and Output 100) that is determined by MGate 5105-MB-EIP.
Page 23 of 36
Page 24 of 36
3. In the Module Definition screen, Select INT (unit: 16bits) from the drop-down list and
set the input size as 8 and output size as 2.
Page 25 of 36
2. In the New Routine screen, enter Init in the Name field and click OK.
Page 26 of 36
To remove the Input Par, Input Par, and Return Par parameters that are not required,
right-click on the parameters and select Remove Instruction Parameter.
Page 27 of 36
4. Add Rung 1 and drag a GEQ instruction to Rung 1; then, set Source A as
MGate5105:I.Data[6] and input Source B as 250.
5. Drag a MOV instruction to the end of Rung 1; then, set Source as 600 and Dest
input as MGate5105:O.Data[1].
The settings for Rung 1 checks the value of the IAQPoint2 Temperature register. If the
register value is not 250, the PLC outputs the PowerFlex speed register as 600. This
means that if the temperature is greater than 25.0 C, PowerFlex speed is changed to 60
Hz.
6. Add Rung 2 and drag a GEQ instruction to Rung 2; then, set Source A as
MGate5105:I.Data[6] and input Source B as 245.
7. Drag a LES instruction to Rung 2 and set input Source A as MGate5105:I.Data[6]
and input Source B as 250.
8. Drag a MOV instruction to the end of Rung 1 and set Source as 600 and input Dest
as MGate5105:O.Data[1].
Page 28 of 36
The settings for Rung 2 checks the value of the IAQPoint2 temperature register. If the
range of the register value is between 245 and 250, the PLC would output PowerFlex Speed
register as 500. This means that if the temperature range is between 24.5 C and 25.0 C,
PowerFlex speed is changed to 50 Hz.
Temperature (C )
>=
<
250
60
245
250
50
240
245
40
235
240
30
230
235
20
Page 29 of 36
Rung
Temperature (C )
225
230
10
225
Page 30 of 36
3. In the Who Active screen, expand the EtherNet/IP network node and select
Backplane > 00, 1756-L71 LOGIX5571; then, click Download to download the
project to the PLC.
When a message appears to warn you to that you are downloading an offline project to the
PLC, click Download to continue.
Page 31 of 36
The RSLogix 5000 main screen displays green indicators as shown in the following figure.
Page 32 of 36
8 Communication Test
8.1 Monitor Tags
Select Controller Tags to view all the tags that you have created. You can monitor the
IAQPoint2 and PowerFlex register values using Input Tags.
For example, if you use a hairdryer to warm up IAQPoint2, this will increase the values of
MGate5105:I.Data[6] and MGate5105:I.Data[4] tags.
Page 33 of 36
9 Appendix
9.1 PowerFlex 4M Modbus Registers
Logic Command Register
Address: 8192
Access: R/W
Value:
Bit(s)
Description
Address: 8193
Access: R/W
Value: A decimal value entered as xxx.x where the decimal point is fixed. For example,
a decimal of 100 equals to 10.0 Hz and 543 equals to 54.3 Hz.
Address: 8448
Access: R
Value:
Bit(s)
Description
Page 34 of 36
Bit(s)
Description
1 = Alarm, 0 = No Alarm
10
11
12
13
14, 15
Not Used
Address: 8451
Access: R
Value: A xxx.x decimal value where the decimal point is fixed. For example, a decimal
of 123 equals to 12.3 Hz and 300 equals to 30.0 Hz.
Address: 8449
Access: R
Value:
Value (Decimal)
Description
No Fault
Auxiliary Input
Power Loss
Under Voltage
Overvoltage
Motor Stalled
Motor Overload
12
HW Overcurrent (300%)
13
Ground Fault
Page 35 of 36
Value (Decimal)
Description
29
33
38
39
40
41
Phase UV Short
42
Phase UW Short
43
Phase VW Short
63
Software Overcurrent
64
Drive Overload
70
80
AutoTune Fail
81
Communication Loss
100
122
Address: 101
Access: R
Value: This reports gas concentration. If the CO2 sensor is fitted, this will report in ppm
from 0 to 5000.
Temperature C Register
Address: 102
Access: R
Humidity Register
Address: 103
Access: R
Page 36 of 36