![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#1 |
Member
|
![]()
Hi, all.
I am a new guy in PLC field and now working with CompactLogix L35E. Now I have the processor but no IO card. I can download the program. But I don't know how to test my program? Can anybody give me some guide on how to test or debug a PLC program under RS5000? What is your usual test procedure? Thanks in advance! |
![]() |
![]() |
#2 |
Lifetime Supporting Member
|
You will not be able to test it until you get some Input and Output cards. With an Input card you can connest temporary test switches and pushbuttons to simulate the program. Digital outputs can usually be simulated with the output LED indicators on the Output cards. Analog inputs and outputs are more difficult to simulate. You need some test equipment to simulate thoes.
|
![]() |
![]() |
#3 |
Member
|
YFCARER,
With a CLX processor, you can define your I/O and then in RSLogix 5k you can inhibit the entire IO bus for testing purposes. Right click on the icon for CompactBus Local and on the connections tab, tick off the "inhibit module" checkbox and the processor will go into run mode without faulting. Really nice feature of RSL5K. |
![]() |
![]() |
#4 |
Member
![]() ![]() Join Date: Apr 2016
Location: HOME
Posts: 1
|
You can use RS Logix 5000 emulator to test your program.
|
![]() |
![]() |
#5 | ||
Member
![]() ![]() Join Date: Oct 2010
Location: Argentina
Posts: 686
|
Quote:
Quote:
I only use RSEmulator when I don't have a real controller.
__________________
"If you can't solve a problem, then there is an easier problem you can solve: find it." (George Pólya) |
||
![]() |
![]() |
#6 |
Member
![]() ![]() Join Date: Sep 2014
Location: NC
Posts: 962
|
Just make spoofed I/O tags and use those throughout your program. You can write to inputs at will then.
|
![]() |
![]() |
#7 |
Member
|
I do a combination of the above...inhibit all your io modules in the io configuration. Then you can write 1s and 0s to the i/o at will....I'll then usually create a simple routine to simulate what I want.
|
![]() |
![]() |
#8 | |
Member
|
Quote:
|
|
![]() |
![]() |
#9 |
Member
![]() ![]() Join Date: Jun 2019
Location: Melbourne
Posts: 3
|
We used to inhibit the IOs and create a test routine in PLC program. However we wanted something more general between programs and use it during PLC program development.
So we have created a simple app for automated testing if anyone's interested https://www.controlx.io/ Now we have a PLC on the desk without the IO cards which we are using with PLC Logic Prover for testing. |
![]() |
![]() |
#10 |
Member
|
One of the best ways if using a real controller is map all the I/O into internal bits/words in blocks but do not call them, use the mapped bits in the program(s) and create a simulation block to simulate the I/O by turning on or off the mapped bits (example: A Valve: if Output (mapped bit) start timer, set open mapped bit do the same for others etc. ) after all simulation is like making outputs change inputs that change outputs.
before download for testing remove or disable calls to I/O mapping, enable calls to simulation. After simulation enable mapping & either remove or disable simulation blocks. that way you are not trying to use real I/O, on many processors you cannot force inputs on programmatically so is a no brainer if you do not have a simulation program. |
![]() |
![]() |
#11 | |
Lifetime Supporting Member + Moderator
|
Quote:
__________________
www.PLCCable.com PLC Communication Cables, PLC Trainers, MicroLogix, ControlLogix, Siemens, Allen Bradley and more...OEM and aftermarket supplies... Aftermarket 1784-U2DHP Allen Bradley USB to DH+, new USB to 485 modbus |
|
![]() |
![]() |
#12 |
Member
|
Well spotted genius....
most of do not read the OP's date of post |
![]() |
![]() |
#13 |
Member
![]() ![]() Join Date: Jun 2019
Location: Melbourne
Posts: 3
|
Thanks @parky, it is a great approach. We map IOs in one routine and just don't call the routine during testing.
Thanks @geniusintraining! Yes, this post is quite old. I didn't want to appear as a spammer. This forum helped me so many times and wanted to contribute. Our tool is free and it helped my mates in Australia, so I thought to mention it here. |
![]() |
![]() |
#14 | |
Lifetime Supporting Member + Moderator
|
Quote:
Please do check in from time to time and contribute ![]()
__________________
www.PLCCable.com PLC Communication Cables, PLC Trainers, MicroLogix, ControlLogix, Siemens, Allen Bradley and more...OEM and aftermarket supplies... Aftermarket 1784-U2DHP Allen Bradley USB to DH+, new USB to 485 modbus |
|
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Allen Bradley To siemens PLC program conversion | vinitch | LIVE PLC Questions And Answers | 2 | April 2nd, 2010 03:08 PM |
Simulator, Simulation, Shadow Code | Terry Woods | LIVE PLC Questions And Answers | 1 | January 2nd, 2005 03:40 PM |
PLC Program Management | zmanvortex | LIVE PLC Questions And Answers | 5 | November 1st, 2004 12:03 PM |
PLC Program that will run Christmas lights | Damon8561 | LIVE PLC Questions And Answers | 5 | September 8th, 2004 11:13 AM |
Example Control 2 Pumps by PLC & real program | Platootod | LIVE PLC Questions And Answers | 2 | July 21st, 2004 10:32 AM |