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 January 28th, 2008, 08:42 AM   #1
kdcui
Lifetime Supporting Member
United States

kdcui is offline
 
kdcui's Avatar
 
Join Date: Dec 2007
Location: New Hampshrie
Posts: 285
Proficy: Machine Edition / Memory Areas

I am working with Proficy: ME with a PAC RX3i controller. Normally I would map variables to a memory space on the CPU. However this controller supports "Symbolic" memory that variables are automatically assigned to if one does not specify a specific address for the data.

An excerpt from the help file:
Quote:
A symbolic variable is a variable that you do not map to the PACSystems CPU memory or PACSystems Hardware Configuration. Machine Edition automatically handles all the mapping for a symbolic variable in a special portion of PACSystems user space memory outside %R, %AI, %AQ, %P, %L, %W, %I, %Q, %M, %T, %S, and %G memory. In fact, if you map a symbolic variable to one of those memory areas, you destroy its symbolic nature and it becomes a CPU-mapped variable.
Not sure when I should use this managed, symbolic variable space as opposed to regular CPU memory. Does it even matter? Once I downoad to the controller it all takes up the same amount of memory doesn't it?
  Reply With Quote
Old January 28th, 2008, 09:43 AM   #2
KP_EENG
Member
United States

KP_EENG is offline
 
Join Date: May 2003
Location: Upstate, SC
Posts: 205
Typically, you will use CPU-mapped variables in your programs and give the variable some meaningful name to enhance readability of the program. For instance, something like Alarm_Reset could be mapped to %M00001. Then, you can configure Proficy to display the variable name, address or both.

Where I have found symbolic variables to be quite useful is when declaring variables for timers and counters. Timers and counters use three consecutive words of memory for the Current Value, Preset Value and a control word. If you use CPU-mapped variables, you have to ensure that you do not "step on" any of these words with other CPU-mapped variables or instructions that will overwrite the timer/counter data words. Symbolic variables are perfect for this. In fact, when I place a counter or timer instruction in a program, I will just type in the name of the symbolic variable that I want to use and Proficy will create the variable. The thing is that when Proficy creates the variable, it will not set the variable as retentive. When you verify the program, Proficy will display a message that it is setting all symbolic variables to retentive. If you re-verify, the message does not come back unless you have defined new symbolic variables.

Regards,
Ken

Last edited by KP_EENG; January 28th, 2008 at 09:45 AM.
  Reply With Quote
Old January 28th, 2008, 09:56 AM   #3
Steve Bailey
Lifetime Supporting Member + Moderator
United States

Steve Bailey is offline
 
Steve Bailey's Avatar
 
Join Date: Apr 2002
Location: The boondocks of Western Massachusetts USA
Posts: 4,664
For the most part, it doesn't really matter whether you use symbolic variables or traditionally addressed variables. Ken has identified one example where symbolic addresses can prevent a frequently-encountered problem.

Use CPU-mapped variables for things that need to appear on an HMI panel, especially if the HMI uses serial communications. The serial port drivers in your HMI will be looking for traditional addresses. Furthermore, the serial port drivers are at their most efficient when you use contiguous addresses for anything displayed on the HMI. That's because the drivers read data by sending a command that says "Send me X bytes of data from memory type Y starting at address Z".
  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
Panelview Plus 1000 - Out Of Memory Error mcrawford LIVE PLC Questions And Answers 0 October 9th, 2007 10:25 AM
HEAP Internal Errors in Intouch 9.5 SP3 CalfeMic LIVE PLC Questions And Answers 7 July 26th, 2007 07:18 AM
Proficy Machine Edition GMc LIVE PLC Questions And Answers 5 July 4th, 2005 10:16 AM
Siemens PLC program lost after power down TEOWK LIVE PLC Questions And Answers 24 May 30th, 2005 01:17 AM
SLC 5/03 data loss andydaoust LIVE PLC Questions And Answers 1 October 10th, 2002 06:38 PM


All times are GMT -5. The time now is 07:28 PM.


.