You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old May 22nd, 2009, 05:06 PM   #1
wildcatherder
Member
United States

wildcatherder is offline
 
Join Date: May 2009
Location: Morro Bay
Posts: 132
Unhappy DL205 directsoft5 C-More EA7-S6C

Although I have programmed in a variety of higher level languages and have gone through several PLC ladder-logic tutorials, I have found nothing about interaction between the DL205 (using a D2-250-1 CPU) and the C-More EA7-S6C touch panel. The Touch Panel manual is hardware and self-programming oriented. The DirectSoft manual seems to leave external interface panels as "an exercise for the reader".

I understand that each object on the screen has a memory address and for simple on/off inputs and outputs that is clear enough. What I need is an example of the ladder-logic - just a screen capture would be great (because few people are still using DirectSoft5) showing how to read and write Numeric Inputs and Outputs from/to the Touch Panel.

I have searched the AutomationDirect and HostEngineering forums with no joy.

Any assistance would be appreciated.
  Reply With Quote
Old May 22nd, 2009, 07:08 PM   #2
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 4,624
Wildcatherder - your posts here, on the AutomationDirect forum and on the Host Engineering forum seem to show a fundamental misunderstanding about the role of the display panel in relation to the PLC. After this please confine your posts to one forum, choose which and post that fact to the other forums.

In the normal Display-PLC setup the PLC is the place which holds all the information regarding values.

Let's discuss display and input objects on the display (the C-More in this case).

On the C-More a display object is programmed to look at an address WITHIN THE PLC. The display, at run time, asks the PLC for that value which is at that address and displays it. The PLC does not actively SEND the value to the display except in response to a request from the display.

An input object (let's say a number) is programmed such that, once a number is entered by the operator, to send that number to a specific location within the PLC. (As a help the input object may have asked for and displayed the current value - similar to an display object - from the PLC). The PLC does not actively request from the display the value. The value is sent by the display into the PLC.

As I said before - you must understand the relationship of which hardware item (the display) initiates any communication and which item (the PLC) responds to those requests.
__________________
Controlling outputs is the PLC's way of getting its inputs to change.

www.thePLCguy.com
  Reply With Quote
Old May 23rd, 2009, 09:32 AM   #3
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 4,624
Let me expand on my previous reply.

Typically there does not have to be any extra ladder logic in the PLC for the display to perform its communication. The responding by the PLC to queries happens automatically by the PLC system.

When you are creating tags in the display program and enter an address, that address is the location of the information within the PLC. I can't tell if possibly you thought that the display had a set of memory locations with coincidentally similar nomenclature.
__________________
Controlling outputs is the PLC's way of getting its inputs to change.

www.thePLCguy.com
  Reply With Quote
Old May 28th, 2009, 10:54 AM   #4
wildcatherder
Member
United States

wildcatherder is offline
 
Join Date: May 2009
Location: Morro Bay
Posts: 132
In fact, there are memory locations in the touch screen but they are MAPPED to locations in the PLC, in a transparent fashion. My fundamental misunderstanding is that I asked for a simple example and not an explanation of my ignorance and thought this was a place I could get it.
  Reply With Quote
Old May 28th, 2009, 11:32 AM   #5
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 4,624
I'm sorry that I must have misunderstood your intent in your sentence...
Quote:
What I need is an example of the ladder-logic - just a screen capture would be great (because few people are still using DirectSoft5) showing how to read and write Numeric Inputs and Outputs from/to the Touch Panel.
... since no ladder-logic is used in the transfer of information to/from the display. Maybe you can set me straight on what you need.
__________________
Controlling outputs is the PLC's way of getting its inputs to change.

www.thePLCguy.com
  Reply With Quote
Old May 28th, 2009, 11:36 AM   #6
Brian123
Member
United States

Brian123 is offline
 
Join Date: Sep 2007
Location: Nebraska
Posts: 227
Quote:
Originally Posted by wildcatherder View Post
In fact, there are memory locations in the touch screen but they are MAPPED to locations in the PLC, in a transparent fashion. My fundamental misunderstanding is that I asked for a simple example and not an explanation of my ignorance and thought this was a place I could get it.
From your original post, it appears that you want a screenshot of the ladder logic used to move numbers, bits, etc. to the touch screen. You will NEVER FIND this example because you do not use ladder logic or directsoft to program a touchscreen. Bernie is right when he says that you don't need any ladder logic present in the PLC for the touchscreen to communicate. You DO however need a completely separate software package to program the touchscreen. The manual for that software will explain how to connect objects on the screen to memory registers in the PLC. This is what creates the mapping you referred to in your latest post. The mapping doesn't exist without you creating it. It is not as if you can copy V2000 to V40000 and have it show up on your panel.

Now, it is possible you understood all this to begin with. If so, you didn't make that understanding very clear when you are asking for ladder logic screenshots and mentioning DirectSoft, a PLC programming package only. Also, you only ever mentioned reading the manual for the touchscreen (which only gives information on the hardware portion of the screen, not the programming) and the help in directsoft (which is the programming software for the PLC.) So forgive Bernie if he thinks you have some gaps in your understanding of how this stuff works; I thought the same thing.

Brian
  Reply With Quote
Old May 28th, 2009, 11:55 AM   #7
icky812
Member
United States

icky812 is offline
 
icky812's Avatar
 
Join Date: May 2002
Location: Cumming, GA
Posts: 582
The help file in the CMore software is very detailed. Also there are several sample projects in the Cmore projects directory.

As others have mentioned, the Cmore initiates all "conversations" with the PLC and will read/write directly from the PLC memory. You will make tags to address the User Defined memory areas that you want data transferred from/to in the Cmore software. There is no ladder logic involved.
  Reply With Quote
Old May 28th, 2009, 01:09 PM   #8
wildcatherder
Member
United States

wildcatherder is offline
 
Join Date: May 2009
Location: Morro Bay
Posts: 132
Simple example of basic operation

I have a numeric input, a numeric display, and a pushbutton.
What would the ladder logic look like to add the number 2 to the value entered on the numeric input and have it appear on the numeric display?

I know this is very, very simple, if you have already done it once.

Please show me how it is done, once.

Thank you.
  Reply With Quote
Old May 28th, 2009, 01:10 PM   #9
wildcatherder
Member
United States

wildcatherder is offline
 
Join Date: May 2009
Location: Morro Bay
Posts: 132
Sorry, too simple. Addition should occur when button is pushed.
  Reply With Quote
Old May 28th, 2009, 01:22 PM   #10
bernie_carlton
Lifetime Supporting Member + Moderator
United States

bernie_carlton is offline
 
bernie_carlton's Avatar
 
Join Date: Apr 2002
Location: Yakima, Washington
Posts: 4,624
Check out the Increment/Decrement Value control. No ladder logic needed.
__________________
Controlling outputs is the PLC's way of getting its inputs to change.

www.thePLCguy.com
  Reply With Quote
Old May 28th, 2009, 01:37 PM   #11
jgreenewv
Lifetime Supporting Member + Moderator
United States

jgreenewv is offline
 
Join Date: Aug 2002
Location: Jacksonville, NC, USA
Posts: 141
Here's a bit of code that will do what you're looking for. Just substitute the appropriate addresses, depending on your particular system.
Attached Images
File Type: jpg DSoft.jpg (42.8 KB, 38 views)
  Reply With Quote
Old May 28th, 2009, 01:38 PM   #12
Brian123
Member
United States

Brian123 is offline
 
Join Date: Sep 2007
Location: Nebraska
Posts: 227
Quote:
Originally Posted by wildcatherder View Post
I have a numeric input, a numeric display, and a pushbutton.
What would the ladder logic look like to add the number 2 to the value entered on the numeric input and have it appear on the numeric display?

I know this is very, very simple, if you have already done it once.

Please show me how it is done, once.

Thank you.
Quote:
Originally Posted by wildcatherder View Post
Sorry, too simple. Addition should occur when button is pushed.
Ok, I will make the following assumtions about your system. If any of these are incorrect, you will have to adjust the rung accordingly.

Your pushbutton is set to turn on (and leave on) bit C0 in the PLC. This would not be a momentary pushbutton.
Your numeric input is set for 16 bit BCD Integer, no decimal places and pointed at V1400.
Your numeric display is set for 16 bit BCD Integer, no decimal places and pointed at V1401.
The number 2 that you want added is a constant, never changing number.


If you have any questions on this, let us know.

Brian
Attached Images
File Type: jpg add example.JPG (22.6 KB, 37 views)
  Reply With Quote
Old May 28th, 2009, 01:41 PM   #13
wildcatherder
Member
United States

wildcatherder is offline
 
Join Date: May 2009
Location: Morro Bay
Posts: 132
Thank you all for answering my simple question. Seeing one (or, in this case a few) examples is really all I needed to get started. As an expert, one takes for granted that elements of layout, vocabulary, etc. are just not that obvious.

I know because, believe it or not, I am expert in certain areas and have made similar assumptions.

Thanks again.
  Reply With Quote
Old May 28th, 2009, 01:49 PM   #14
Brian123
Member
United States

Brian123 is offline
 
Join Date: Sep 2007
Location: Nebraska
Posts: 227
Quote:
Originally Posted by jgreenewv View Post
Here's a bit of code that will do what you're looking for. Just substitute the appropriate addresses, depending on your particular system.
I will assume that in your example, you have your HMI pushbutton to be set for momentary. In this case, the bit associated with the pushbutton will be changed to ON for as long as the pushbutton is held down on screen. When the pushbutton on screen is released, the bit is changed to OFF. With the ladder setup as shown in your example, the addition operation will happen _every scan_ that the pushbutton is held down for. In this instance, it will not matter. The end result will be the same for each scan, whether it is one scan or hundreds (very possible.) However, if you setup a button to increase a register with a similar ladder setup (not the Inc/Dec funtion Bernie mentioned) multiple executions would be bad. An example would be: LD V1400, Add K2, OUT V1400. In this example, V1400 would increase for every operation. In cases like this, use the ladder setup that I gave and the operation should only occur once.

Brian
  Reply With Quote
Old May 28th, 2009, 02:08 PM   #15
wildcatherder
Member
United States

wildcatherder is offline
 
Join Date: May 2009
Location: Morro Bay
Posts: 132
Why one needs simple examples - #1

The OUT command gives the error "Invalid Element" when I try to load the original address of my Numeric Display: V10016.

I changed the C-More project to use V1400 and V1401 for my numerics, as in the example from Brian123 but got the same "Invalid Element" error when trying to enter the OUT instruction. (I'm also unsure that one can actually address two 16-bit displays one bit apart doesn't work when the second is V1416 either.)

Any suggestions? This is on DirectSoft5 with the C-More EA7 panel.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
GE 90-30 & AutoDirect DL205 similarities DickDV LIVE PLC Questions And Answers 3 June 5th, 2002 07:47 PM


All times are GMT -5. The time now is 07:27 AM.


.