ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

43
MECHATRONICS ENGINEERING TECHNOLOGY Introduction to Allen-Bradley Compact Logix & RS Logix 5000 Software (MAH,MAJ,MAS instructions)

Transcript of ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

Page 1: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Introduction to Allen-Bradley Compact Logix & RS Logix 5000

Software (MAH,MAJ,MAS instructions)

Page 2: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

MAH( Motion Axis Home) Instruction

• Use the MAH instruction to home an axis

• Two different homing modes can be selected during axis configuration: Active or Passive

Page 3: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Active Homing

• The Axis executes the configured Home Sequence Type and establishes an absolute axis position

• No specific homing sequence is executed and the axis is left waiting for the next marker pulse to establish the home position.

Passive Homing

Page 4: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

MAH Instruction Structure

• EN (Enable) -Bit 31 Set when the rung makes a false-to-true transition and remains set until the servo message transaction is completed and the rung goes false.

• .DN (Done)-Bit 29 Set when the axis' faults have been successfully cleared.

• .ER (Error)-Bit 28 Indicates when the instruction detects an error, such as if you specified an un-configured axis.

Page 5: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

MAH Instruction contd…

• .IP (In Process)-Bit 26-Set on a positive rung transition and cleared after the Motion Axis Stop is complete, or terminated by a shutdown command or a servo fault.

• .PC (Process Complete)-Bit 27-Set after the stop operation has successfully completed.

Page 6: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

MAJ (Motion Axis Jog) Instruction

• Use the MAJ instruction to move an axis at a constant speed without regard to position.

Page 7: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

MAS (Motion Axis Stop) Instruction

• Use the MAS instruction to initiate a controlled stop of any motion process on the designated axis.

Page 8: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

MAS Instruction continued…

• This command defaults to stop at the Maximum Deceleration rate, established when the axis is configured.

• You can use the MAS instruction's Change Decel parameter to specify a deceleration rate that is different from the currently-configured Maximum Decel value.

Page 9: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

CONFIGURATION PROCEDURES

RS Logix 5000

Page 10: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

STEP 1:Start New PROJECT • Goto FileNewIn the New Controller Box make following selections

carefully:

Page 11: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

STEP 2: Define Motion Group

• Goto Left Menu Right-click

and create “New Motion Group”

Page 12: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

STEP 3: CREATE AXES To Create a Real Axis: Right-click Motion_GroupNew Axis AXIS_SERVO_DRIVE

Page 13: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

CREATE AXES continued To Create a Virtual Axis: Right-click Motion_GroupNew Axis AXIS_VIRTUAL

Page 14: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

I/O CONFIGURATION

RS Logix 5000

Page 15: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Compact Logix System Layout

Page 16: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

STEP 4: Setup the 1768 Bus

Ethernet Bus:

Right-click on 1768-Bus New Module Communications Select 1768-

ENBT/A:

Page 17: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Ethernet Bus Configuration continued

Please Note that the IP Address fields

should be exactly filled with the given

values, otherwise your program will not

work.

Name: “ETHERNET_BUS” IP Address: 192.168.1.105

Slot: 1

Electronic Keying: “Disable Keying”

Page 18: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

STEP 5: Setup SERCOS Module

SERCOS Module:

Right-click on 1768 BusNew ModuleMotion

Page 19: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

STEP 5 Continues: Adding Drives Right-click SERCOS Network New ModuleDrive:

Select: 2098-DSD-030-SE Ultra3000, 230V, SERCOS Drive, 15A Continuous, 30A

Peak…

Page 20: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

STEP 5 Continues: Configuring Drives

Goto your Axis_1 (in this case MOTOR1_LEFT)

in the Motion GroupRight-Click Properties:

Homing Tab Configuration:

Do not enter a value other than 1 for speed and return speed

this may result in abnormal motor functioning.

Page 21: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Configuring Drives contd…. General Tab Configuration:

Page 22: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Configuring Drives contd…. Conversion Tab Configuration:

Page 23: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Configuring Drives contd…. Drive/Motor Configuration Tab:

Amplifier Catalog Number: 2098-DSD-030-SE

Page 24: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Selecting Motor

Click Change Catalog for selecting the

Motor:

Select “MPL-A430P-M”

A: 230Volts Motor M: Multi-turn Encoder

B: 480V Motor S: Single-turn Encoder

Similarly, to add the second servo drive Repeat Steps 5 for

second servo drive

Page 25: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Configuring Virtual Axis

Goto your Motion Group Select Virtual Axis Right Click Properties:

Conversion Tab Configuration:

Page 26: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

STEP 6: Setup 1769 Bus: Add Output Module

Right-click 1769-BusNew Module Digital: Select “1769-OW8I”:

Page 27: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Configure Output Module

1769-OW8I Module Properties:

Page 28: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Add Input Module Right-click 1769-BusNewModuleDigital: Select “1769-IQ16”

Page 29: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Configure Input Module

• Enter the following values:

• Name: “DIGITAL_INPUT_24VDC”

• Slot: 2

Page 30: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

CROSS-CHECK SYSTEM Configuration

Page 31: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

MAIN ROUTINE PROCEDURES

Page 32: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Starting Ladder Logic

• Goto Main Task Main Program(expand the +) Main Routine:

Normally Normally Output Unlatch Latch

Open Closed Contact Output Output

Page 33: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Adding Enable Servo Drive Logic:

The Servo Drive enable signal is hard-wired from Output Module from

slots 5, 6 and 7 for Drives 1, 2 and 3. Note that 3RD Drive is not running

any motor but still we have to enable it.

Using Tags 5,6,7 from the Output Module:

Page 34: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Inserting a Contact Example:

Insert & Define Start Home Contact: • Find From the Bit Tab and insert a Normally Open Contact (First in the

list) Name the contact to “HOME_ALL_AXIS”Right-click the contact New “HOME_ALL_AXIS” OK

Page 35: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Inserting a Parallel Branch

• Drag Parallel Branch towards end of the rung

• Place the cursor at the first parallel branch

• Drag Parallel Branch again.

Page 36: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Inserting MAH Blocks

• Insert MAH (Motion Axis Home) instruction from the Motion/Move

Tab in the toolbar in all three parallel branches by dragging the MAH

to each branch one at a time:

Page 37: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Defining TAG for Motion Instructions

• Goto Motion Control, select the Tag Right-click New “Axis_Name”:

Tag Name should be different from the Axis Name, for example- if the Axis Name is MOTOR_LEFT, then Tag Name could be LEFT_MOTOR

Page 38: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

DOWNLOADING PROJECT

Select Controller

Download

During the LAB do not download the project to the controller until you are told

to do so. Each group will be given a opportunity to download and run the

program one at a time.

Page 39: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

SELECT CONTROLLER

Goto “Who Active” AB_ETHIP-1,

Ethernet

192.168.1.105, 1768-ENBT/A, 1768-

ENBT/A

Backplane, 1768 3 Slot Bus

00, 1768-L43 LOGIX5343, AH_Ultra3000_10_29_09

Download

Ignore the Warning Download

Page 40: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

SCREENSHOT

Page 41: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

Controller Date & Time: • Go to Controller (Top of the Hierrachy) Right-click Properties

Select Date/Time TabCheck the option “Make this Controler the Co-ordinated system time master” ApplyOK

Page 42: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

GOING ONLINE • Goto Offline Go Online:

As soon as you go online you’ll see the contacts in the first rung

will go HIGH (GREEN).

Page 43: ECET262NSFCCLIRSLOGIX5000INTRODUCTIONMAHMAJMASSLIDES10111213

MECHATRONICS

ENGINEERING

TECHNOLOGY

TOGGLING A CONTACT • Right-click the contact Toggle Bit (You must be online

to see a response when you toggle a bit)