testing and debugging

cindy

Member
Join Date
Jun 2002
Posts
16
Hello again plc world,

does anybody know of any hardware and software debugging methods for plc programs. An example would be great!. I'm using siemens step7 software and I'm not quite sure how to test or debugg with it, apart from running the program. I dont have access to a manual either.

Any help on this would be most appreciated:)
 
The most effective way to debug a program is to run it on the actual machine or process to be controlled. Second best is to run it on the PLC and manually turn the inputs on and off the way the machine would in real life. If you have lots of time, you can write a simulation subroutine that mimics the real life behavior of the inputs.

My advice to you is to get to the lab, download your program to the practice unit, and see what happens.

BTW, you do have access to the manuals. Siemens posts them on their website.
 
If you've got the complete siemens step 7 cd you also have PLCSIM installed. this utilitie simulates a fully functional PLC (NOT A NETWORKED PLC)


for manuals see
www4.ad.siemens.de
 
The control logix has a trace. If use a FIFO queue and use it the opposite of a sequencer. It copies the state of the I/Os and registers. 8 scans deep is enough for most things. I use the COP instruction as TIM MOULDER is doing in another thread to implement the FIFO. I also and add instructions that increment a register every time an event occurs.

Since most if not all of my programming is for machine control, a well laid out state machine reduces the need for debugging.


Learn to use a scope. It is a must. A good scope meter is very handy. I can't believe how many places I go to that don't even have a scope. It is pitiful and shameful.
 
thanks guys

Thanks to all that replied you have all confirmed my own suspicions that the debugging is basically running the program and whaching the inputs and outputs are doing what they should be. My program worked first time so I found this a bit odd and had to actually introduce a fault to find it. The program was to simply sort a conveyor and the products on it, I guess this is pretty low programming for you guys.

Anyway thankyou all.

Cindy;)
 
"My program worked first time"

Absolutely not!

This is one of those universal constants.
Murphy's law to the nth degree.
Nothing ever works the first time!

If I were you I go out and bet on the ponies this weekend.
Congratulations anyhow.
 
gbradley said:
"My program worked first time"

Absolutely not!

This is one of those universal constants.
Murphy's law to the nth degree.
Nothing ever works the first time!

If I were you I go out and bet on the ponies this weekend.
Congratulations anyhow.

My programs always work the first time!


The first time after I've got all the bugs squashed.
 

Similar Topics

Hi Guys, Can ControlLogix with Modsim32 for Modbus Server Testing? I have ControlLogix via Anybus Modbus TCP and I need to Test the...
Replies
6
Views
250
Hello all, looking for ideas on getting some basic training done, I need to practice on maintenance timers and bypass switches (with a Factory...
Replies
5
Views
1,275
I have a project in FTV ME (Studio v13) that I'm trying to apply security to a few buttons/setpoints. I have 4 users: Anonymous Logon, DEFAULT...
Replies
1
Views
764
I have a customer asking me to do some testing on non Rockwell I/O. They want to see if it will work. Thats simple hookup a PLC, put the IO in the...
Replies
4
Views
1,097
Hi, I’m just after a couple of pointers on testing comms between SLC PLCs in a test environment (i.e. not on a live plant). For a typical...
Replies
5
Views
2,719
Back
Top Bottom