+ All Categories
Home > Documents > PLC Troubleshootong

PLC Troubleshootong

Date post: 02-Jun-2018
Category:
Upload: avandetq15
View: 218 times
Download: 0 times
Share this document with a friend

of 20

Transcript
  • 8/10/2019 PLC Troubleshootong

    1/20

    DOWNLOAD FROM PC TO PLC

    Follow these procedures:

    The First Method:

    1. Open your project in SIMATIC Manager

    2. In Optionmenu: select Set PG-PC Interface ...3. In Interface Parameter Assignment field: select your interface (For example: PC

    Adapter, CP5611, or etc.) and set connection parameters for it. After that press OK!

    4. In SIMATIC ManagerDouble click on Station(Same as "SIMATIC 300 Station")

    3. Double click on Hardwareto open HW Config

    4. In Stationmenu, select save and compile

    5. In PLCmenu select Download

    6. In Select Target Modulewindows, select CPU module and press OK.

    7. In Select Node AddressPress OK or Press view to show all accessible nodes.

    8. Now, hardware download is done.9. Close HW Config!

    10. In SIMATIC ManagerRight click on Blocks, select PLC, select Download

    The Second Method:

    1. Open your project in SIMATIC Manager

    2. In Optionmenu: select Set PG-PC Interface ...

    3. In Interface Parameter Assignment field: select your interface (For example: PC

    Adapter, CP5611, or etc.) and set connection parameters for it. After that press OK!

    4. In SIMATIC ManagerRight click on Station(Same as "SIMATIC 300 Station"),select PLC, select download.

    UPLOAD FROM PLC TO PC

    Vi cch upload PLC cho dng s7-300/400 th hin nay c 2 cch phbin nht:C1: Mnh tm thi gi l cch upload thng thng ( bnh thng nh bao ngi lm) ^^.Vi cch ny th qu l n gin v thao tc theo cc bc sau y:

    B1: To mt Project mi bnh thng ( khng cn cu hnh PLC hay Station g ht). ngin chl to 1 project rng upload Project ln thi.B2: Chn Upload Station to PG theo hnh vdi.

  • 8/10/2019 PLC Troubleshootong

    2/20

    B3: Config si cp theo chun MPI hay Profibus upload dliu ( tuuser). Ch chn ng thng s.B4; Ngi "rung i" + nhm nhi ly cafecho ti khi n bo finish ( nu khng xy ra li).V tuvo tnh hung m user sxl tnh hung. ^^. i khi l do phn mm, cp hocang chy xy ra sc...

    L do ti gi cch ny l cch upload thng thng v n n gin, khng qu kh m aicng lm c theo cch ny nu bit hoc lm quen vi PLC. Ngoi ra, n cn githng thng v i khi sc nhng trng hp cc khi hm upload ln bli hoc bmt cc khi hm FC, FB ( ci ny th qu nhiu ngi bri ^^)

    Ngoi cch 1 ra th ti hay sdng mt cch khc v m bo upload dliu ln ht.Tm gi l l Upload thng minh ( Smart Upload) ^^. Gi l thng minh nhng n scchn rt nhiu so vi cch 1. Bi v cch ny phi upload Programming v upload

    hardware ring tng phn nh. Tuy nhin vi cch ny th ton bcc khi hm thc thica PLC ta c thupload ln ht m khng bli g ht ( test rt nhiu ln ri).

    1.

    To project bnh thng.2. Chn giao thc truyn thng gia PG/PC3. Chn Menu/PLC/ Display Accessible Node4. Bm chn phi chn PLC/Hardware diagnostic

    http://img641.imageshack.us/img641/513/69488380.jpg
  • 8/10/2019 PLC Troubleshootong

    3/20

    5. Chon Open Station Online. Sau vo c hardware config ri th uploadHardware mt cch bnh thng.Theo cc bc trn th chng ta upload c hardware mt cch hon chnh.

    Cn cc bc tip theo di y supload Programming do ngi khc lp trnh (iu kin l hkhng t pass ^^).Tip tc cc thao tc vi Project mi upload c hardware ln nh sau:

    http://img607.imageshack.us/img607/8817/25150087.jpg
  • 8/10/2019 PLC Troubleshootong

    4/20

    Lc ny th chn Ctrl + A sau copy ht ton bthng cc khi hm ( Ctrl + C)ri Paste vo block ca project mi upload nh vy l thnh cng 100%.

    Nhc im: N supload lun ccc phn System Function block ca PLC lunlm cho ngi mi bt u hc thy ri ( hi hoang mang ^^ nhng cyn tmkhng c g cv lphn li ca PLC.

    u im: Upload ton bmi thbn cn

    Step 7 Connecting, Downloading and

    Uploading

    These are general guidelines for connecting, downloading and uploading from an S7-

    300 or S7-400PLC.The following procedures were created using Siemens SIMATIC

    STEP 7 version 5.4 software.

    To start, open the SIMATIC Manager.

    http://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://img17.imageshack.us/img17/4636/42715685.jpghttp://www.plcdev.com/glossary/1?Array
  • 8/10/2019 PLC Troubleshootong

    5/20

    Now follow the links below.

    Connecting to the S7 PLC

    The Programming Cables

    There are three major types of programming cables:

    1. The CP5512 card in a PCMCIA slot.

    2. The PC Adapter using a serial or USB connection

  • 8/10/2019 PLC Troubleshootong

    6/20

    3. An Ethernet cable

    The CP5512 card and the PC Adapter can communicate on either an MPI or

    PROFIBUS port. Note that PROFIBUS is labeled as DP on the Siemens connectionports. These cables can piggyback on existing connectors. Be aware that the PC

    Adapter draws its power to work from the connection port so check the

    powerLEDfor proper operation. The CP5512 card draws its power from the

    computer.

    For Ethernet (TCP/IP) use a standard Ethernet cable from the computer to aCPUwith

    an Ethernet port, a CP 343/443 module or a network switch all ready attached to

    thePLCnetwork.

    Checking Communications

    With the programming cable plugged in, you can check for proper operation by

    clicking on the Accessible Nodes icon.

    http://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Array
  • 8/10/2019 PLC Troubleshootong

    7/20

    If communications are successful, you'll see a window pop up similar to the one

    below. If so, then close the Accessible Nodes window and proceed to the download or

    upload section.

    If communication fails then you will receive a message like below.

    This indicates that the cable is not in the right computer port or the cable is not

    plugged in properly.

    Setting the PG/PC Interface

    In order to start communication to the PLC you will need to match the "PG Interface"

    setting with the programming cable and protocol. To do this, select the menu Options

    > Set PG/PC Interface.

  • 8/10/2019 PLC Troubleshootong

    8/20

    The following dialog box will open up displaying all the different interfaces (i.e.

    communication drivers).

  • 8/10/2019 PLC Troubleshootong

    9/20

    Each cable has its own interface. For Ethernet select the TCP/IP interface for your

    computers network card. Be careful not to select your wireless Ethernet connection.

    To get it working quickly it is best to select the interface with the Auto designation.

    This will discover working settings and use them automatically.

    For the PC Adapter click on the Properties button and make sure the Station

    ParametersAddressis a unique network address. It should not conflict with existing

    PLC and slave devices on the network. Also, check under the Local Connection tab

    and make sure connection selection matches the port the cable is connected into.

    Once the proper interface is selected and the properties are set then click OK and use

    the Accessible Nodes window to check for successful communications. It should

    work. If not double-check the connection and cable. With the CP5512 and PC Adapter

    cables, you should use the MPI port, as this is the default connection for Siemens.

    If this doesn't work then I don't know what to tell you.

    Downloading

    http://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Array
  • 8/10/2019 PLC Troubleshootong

    10/20

    First, in order to enable the download menu commands, you must select

    theBlockfolder in the project's station you wish to download.

    There are three methods of downloading.

    1.

    Partial download of selected blocks

    2. Full download of all blocks and system data

    3.

    Complete deletion of onlinePLCblocks and then downloading of all blocks

    and system data

    Partial Download

    Partial downloads are used in existing projects where only one or more blocks will be

    downloaded. To perform this type of download select the block(s) you wish to

    download and then select the PLC > Download menu item or the download button.

    Holding down the Ctrl key or the Shift key allows more then one block to be selected

    at a time. Be careful though as the order of download will occur in the order that the

    http://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Array
  • 8/10/2019 PLC Troubleshootong

    11/20

    blocks were selected. This may mean that an error will occur if a block is called

    before it is downloaded.

    TheCPUwill need to be in Stop mode before downloading the System Data Block

    (SDB) as this is equivalent to a hardware configuration download. This is usually not

    necessary in a PLC that has all ready had its hardware configured. If you do downloadthe system data, the following messages will prompt you through the transitions.

    If the CPU is in Run mode then you will be prompted to Stop the CPU. The software

    will do the Run to Stop transition when you click OK.

    After downloading the SDB you will be prompted to Run the CPU again.

    http://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Array
  • 8/10/2019 PLC Troubleshootong

    12/20

    Clicking Yes will automatically put the CPU back into run mode.

    Full Download

    To download all the blocks at once make sure you are in the Block folder and select

    the Edit > Select All menu item. Click on the Download icon . You will be

    prompted to overwrite any existing blocks and if you want to load the system data

    (see above).

    Clearing the CPU Memory and then Downloading

    The partial and full download methods above will overwrite existing blocks but will

    not any blocks from memory. In order to completely delete the existing program in

    the CPU and download a new project select the Blocks folder and then use the PLC >

    Download User Program to Memory Card menu item.

    The following dialog box will pop up prompting you about the deletion of all the

    blocks and project data in the PLC. Click Yes to perform the operation.

  • 8/10/2019 PLC Troubleshootong

    13/20

    After this, follow the normal download procedure.

    Uploading

    There are two methods for uploading. The first is when you have the original project

    and you want to preserve the symbols and comments. The second method, when youdon't have the original project, will upload everything from theCPUbut will have no

    associated documentation (i.e. symbols and comments).

    Uploading to an Existing Project

    With the existing project open, select the View > Online menu item.

    This is the same as the Online button on the icon bar.

    http://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Array
  • 8/10/2019 PLC Troubleshootong

    14/20

    This will open up another window called the Online Partner. It shows the existing

    blocks inside the CPU. The Online version is indicated by the highlighted title bar.

    There is a connection between these two versions so that uploading from the online

    partner makes sure to preserve all the symbols and comments. Be careful. After

    uploading, make sure to close the online partner and do all work from the offline

    version.

    To upload individual blocks, select them in the Online view and choose thePLC>

    Upload to PG menu item. For a full upload, select theBlockfolder and do the same.

    http://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Arrayhttp://www.plcdev.com/glossary/1?Array
  • 8/10/2019 PLC Troubleshootong

    15/20

    Upload without an Existing Project

    Follow these steps when you do not have the original project but wish to upload the

    program for backup purposes. With an existing project open or a new blank project

    select thePLC > Upload Station to PGmenu selection.

    In the next screen, fill in the slot the CPU is in (this is always 2 for S7-300) and the

    node address of the communication port on the CPU. In the case below we are talking

    to a CPU over MPI with node address 10.

  • 8/10/2019 PLC Troubleshootong

    16/20

    After clicking OK, the whole contents of the PLC including all blocks and hardware

    configuration will be uploaded into a new station in the project.

  • 8/10/2019 PLC Troubleshootong

    17/20

    While this project contains no documentation, it can be used as a backup to download

    later if needed.

    Siemens S7-300/400 PLC Troubleshooting

    Duration:

    3 days

    Prerequisites:

    To be able to cope with the range of practical troubleshooting exercises & get maximum

    benefit from the course, attendees need to have attended the Siemens S7-300/400 Getting

    Started course or have a reasonable working knowledge of Siemens S7-300/400 PLCs &

    STEP7 software.

    Aims:

    The Troubleshooting course targets maintenance personnel who need to be able to use

    the

    full STEP7 diagnostic toolkit to effectively troubleshoot S7-300/400 hardware problems

    &

    machine or process faults. The course is entirely practical & consists of troubleshooting

    a

    range of fault scenarios to establish a logical approach to faultfinding & to reinforce the

    use of

    standard tools & test procedures.

    Objectives:

    For specific course objectives see Training Record Log.

    Content:

    Logical Approach to Faultfinding

    - Understand what should be happening

    - Understand what is/is not happening

    - Understand the reasons why most faults will not be PLC hardware or software & are

    much more likely to be due to field device failures or wiring problems

    - Define the symptoms & consider possible causes

    - Perform appropriate checks to localise the problem

  • 8/10/2019 PLC Troubleshootong

    18/20

    Troubleshooting Siemens S7-300/400 hardware problems

    - Know the first level checks to begin to quickly distinguish between PLC & field faults

    - Know typical fault symptoms for common PLC hardware (module) failures

    - Be able to recognise & interpret the meaning of external system diagnostic LEDs- Be able to correctly interpret the status of I/O LEDs & relate these to the operation of

    field

    devices to distinguish between I/O module faults & wiring or field faults

    - Know how & where to use a meter to check & confirm I/O module power supplies &

    for correct operation of digital & analogue I/O circuits

    - Know quick methods to identify a failed I/O module

    - Know the symptoms of using a faulty comms cable or if connected to the wrong CPU

    comms port

    S7-300/400 PLC system Resets & Re-starts

    - Understand the effect on the operation of the PLC (program & memory) of stopping &

    restarting (PGM to RUN mode) or cycling power

    - Understand how & when to use Memory Reset & understand the effect of this on

    system

    operation

    - Understand how Memory Reset differs when invoked on CPU utilising Micro Memory

    Card (MMC)

    Troubleshooting simple problems through interpreting Siemens S7-300/400 programcode

    - Review the 3 program display modes (LAD, STL, FBD) & be able to interpret simple

    code for each

    - Know how to use the Search tools in a program to trace I/O status

    - Recognise & understand the different TMR/CTR formats in STL

    - Know the conditions under which on-screen status is displayed incorrectly

    - Be able to read an S7-300/400 program printout & interpret cross reference information

    totrace signals when troubleshooting

    - Know how to interpret status in STL with RLO & accumulator

    Diagnostic tools in STEP7

    - Know how to generate on-screen Cross Reference data

  • 8/10/2019 PLC Troubleshootong

    19/20

    - Know how to compare a program in the PLC with a program on disk & be able to

    interpret

    the report

    - Know how to set up & use the Monitor/Modify Variables display using VAT tables to

    monitor multiple I/O points & data registers in the S7-300/400- Know how to use the Force function with S7-300/400 to set/reset a point or to step-on a

    sequence & understand the dangers

    - Know how to use the Diagnostics Buffer facility & how to interpret the information

    provided

    to troubleshoot more difficult problems

    Tips & Tricks when Troubleshooting with S7-300/400

    - Know the easy methods to be able to display more STL code in ladder

    - How to unlock some hidden code- Simple program tools to time or count events, to prove status & trap intermittent faults

    Further S7-300/400 troubleshooting practicals

    - Troubleshooting more complex problems- Troubleshooting S7-300/400 systems with programs held on Flash/MMC memory

    - Troubleshooting data handling problems

    - Troubleshooting problems with analogs

    - Troubleshooting programs which make extensive use of Data Blocks

    - Troubleshooting problems which include Indirect Addressing- Introduction to third party diagnostic tools e.g. PLC Analyser pro 5

    Highly Recommended Follow-up Courses

    - Siemens S7-300/400 Networked Systems

    The benefit of attending this further 3 day course is that delegates will be able to gain

    knowledge & practical experience of maintaining & troubleshooting Siemens PLC

    automation control systems that use MPI, Profibus DP & ASi. An introduction to

    Ethernet will also be given.

    - Understanding S7 ProgramsThe benefit of attending this further 3 day course is that delegates will be able to gain

    knowledge & practical experience of modifying or develop routines & applications for

    Siemens PLC controlled automation control systems.

  • 8/10/2019 PLC Troubleshootong

    20/20

    A Logical Approach to PLC Troubleshooting

    The first job is not to make the problem worse, by jumping in with two left feet.

    Understanding how a PLC works and using a logical approach is the key to

    sucessfully fault finding a PLC systems.

    Some fairly simple techniques can be used to fault find the PLC. The easiest is probably

    the half split technique. This however relies on knowing where the various check points

    are for the PLC system.

    Our courses are based on understanding simple diagrams and then using them to fault

    find, delegates cannot believe how simple it is once you know where the check points are

    and how to check them and are then confident to say wether the signal is present or

    not. Check and then go on. 8 simple check points and you know where the fault is.

    There are possibly 4 places where the PLC program can reside, you need to know wherethey are and how to keep them all the same, not easy with some PLCs. If you have ever

    lost the documentation you used to have from your Allen Bradley PLC, this is the reason.

    Where is the problem ? Is it the PLC or is it a sensor or relay?

    How do I know the PLC is OK.

    How do i know if the PLC has a program,without the use of a laptop?

    The Led on the output card means i am getting voltage out right? does it?

    What exactly happens in between? ,theres more than just a program in the CPU

    How exactly does it scan the program? Do I need to know?

    What is this Watchdog Timer? Is it that important?

    Can I use the same output twice? That's bad programming isn't it?

    A PLC is a logic controller, so use a logical approach to fault find it.

    What are the 5 check points, without a laptop?

    What are the 8 simple check points?

    The PLC is in RUN, that means theres a program right? does it?

    Where do I get the documentation for the program?

    FORCING a bit and toggling a bit is pretty much the same yeah? depends on which PLC

    We couldn't even get online to the PLC, whats that all about.?

    Our delegates are always amazed that by following the logical approach we teach works every

    time.

    Within the first hour of the course delegates are able to identify exactly where the problem iswithin the PLC Control System.


Recommended