Você está na página 1de 20

DOWNLOAD FROM PC TO PLC

Follow these procedures:


The First Method:
1. Open your project in SIMATIC Manager
2. In Option menu: 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 Manager Double click on Station (Same as "SIMATIC 300 Station")
3. Double click on Hardware to open HW Config
4. In Station menu, select save and compile
5. In PLC menu select Download
6. In Select Target Module windows, select CPU module and press OK.
7. In Select Node Address Press OK or Press view to show all accessible nodes.
8. Now, hardware download is done.
9. Close HW Config!
10. In SIMATIC Manager Right click on Blocks, select PLC, select Download
The Second Method:
1. Open your project in SIMATIC Manager
2. In Option menu: 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 Manager Right 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 ph bin 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). n
gin ch l to 1 project rng upload Project ln thi.
B2: Chn Upload Station to PG theo hnh v di.

B3: Config si cp theo chun MPI hay Profibus upload d liu ( tu user). Ch
chn ng thng s.
B4; Ngi "rung i" + nhm nhi ly cafe cho ti khi n bo finish ( nu khng xy ra li).
V tu vo tnh hung m user s x l tnh hung. ^^. i khi l do phn mm, cp hoc
ang chy xy ra s c...
L do ti gi cch ny l cch upload thng thng v n n gin, khng qu kh m ai
cng lm c theo cch ny nu bit hoc lm quen vi PLC. Ngoi ra, n cn gi
thng thng v i khi s c nhng trng hp cc khi hm upload ln b li hoc b
mt cc khi hm FC, FB ( ci ny th qu nhiu ngi b ri ^^)

Ngoi cch 1 ra th ti hay s dng mt cch khc v m bo upload d liu ln ht.


Tm gi l l Upload thng minh ( Smart Upload) ^^. Gi l thng minh nhng n s cc
hn 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 b cc khi hm thc thi
ca PLC ta c th upload ln ht m khng b li g ht ( test rt nhiu ln ri).
1. To project bnh thng.
2. Chn giao thc truyn thng gia PG/PC
3. Chn Menu/PLC/ Display Accessible Node
4. Bm chn phi chn PLC/Hardware diagnostic

5. Chon Open Station Online. Sau vo c hardware config ri th upload


Hardware 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 s upload Programming do ngi khc lp trnh (
iu kin l h khng t pass ^^).
Tip tc cc thao tc vi Project mi upload c hardware ln nh sau:

Lc ny th chn Ctrl + A sau copy ht ton b thng cc khi hm ( Ctrl + C)


ri Paste vo block ca project mi upload nh vy l thnh cng 100%.
Nhc im: N s upload lun c cc phn System Function block ca PLC lun
lm cho ngi mi bt u hc thy ri ( hi hoang mang ^^ nhng c yn tm
khng c g c v l phn li ca PLC.
u im: Upload ton b mi th bn cn

Step 7 Connecting, Downloading and


Uploading
These are general guidelines for connecting, downloading and uploading from an S7300 or S7-400 PLC. The following procedures were created using Siemens SIMATIC
STEP 7 version 5.4 software.
To start, open the SIMATIC Manager.

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

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 connection
ports. 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
power LED for proper operation. The CP5512 card draws its power from the
computer.
For Ethernet (TCP/IP) use a standard Ethernet cable from the computer to a CPU with
an Ethernet port, a CP 343/443 module or a network switch all ready attached to
the PLC network.
Checking Communications
With the programming cable plugged in, you can check for proper operation by
clicking on the Accessible Nodes icon.

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.

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

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
Parameters Address is 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

First, in order to enable the download menu commands, you must select
the Block folder 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 online PLC blocks 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

blocks were selected. This may mean that an error will occur if a block is called
before it is downloaded.
The CPU will 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 download
the 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.

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.

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 you
don't have the original project, will upload everything from the CPU but 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.

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 the PLC >
Upload to PG menu item. For a full upload, select the Block folder and do the same.

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 the PLC > Upload Station to PG menu 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.

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.

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

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 program
code
- 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
to
trace 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

- 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 Programs
The 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.

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 where
they 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 is
within the PLC Control System.

Você também pode gostar