News:

  • June 09, 2026, 11:47:51 AM

Login with username, password and session length

Author Topic: Loading Memory  (Read 22029 times)

DSTAUF

  • Newbie
  • *
  • Posts: 5
Loading Memory
« on: April 11, 2008, 12:38:15 PM »
I am writing my first program and have not been able to figure out how to load a value into a V location. I'm trying to set V2050 to 12. Any suggestions?

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Loading Memory
« Reply #1 on: April 11, 2008, 12:50:04 PM »
To load a value into a memory location within the ladder is a 2 step process. The value is firs loaded into the accumulator with a LD command. The argument to the LD command, if a constant value, will be labled with a 'K' then the number. This is easiest if you intend to use the default BCD representation for numbers.

The value is then sent to the memory location with an OUT command. The OUT command is best selected from the 'BOX' icon in the edit menu. Otherwise if you type 'OUT' and Enter you will get the coil version of the OUT command. This can be changed by pressing the '/' key to the previously mentioned OUT command used for sending the value.

Example

LD K12    - LoaD the BCD number '12' (or alternately the decimal value 18) into the accumulator.
OUT V2050  - Send the contents of the accumulator to location V2050
An output is a PLC's way of getting its inputs to change.

talotam

  • Newbie
  • *
  • Posts: 5
Re: Loading Memory
« Reply #2 on: April 16, 2008, 01:35:49 PM »
I am also a neophyte to the Direct Logic programming system.  I was fighting a timer array in development stages on a DL06 program last night, and was getting frustrated by trying to force a value into V0 for T0 - it constantly reset to 0.  Assigning a K value is no problem, except I need to be able to adjust the time for diferrent processes.

As I understand you, I only need to, for instance, LDV3000 and then OUTV0 for this system.  Then, I can control the timer by manipulating V3000 in my HMI.  Am I correct?

Next step will be to work with multiple timers.  I have a total of 64 adjustable timers, programmed from T0 to T77.  What is the simplest way to set up V-memory control of these timers?

I have several years programming experience with the older KOYO Kostac systems, the MACO-8000, Fuji PLC's, Mitsubishi FXN2, and YOKOGAWA PLC's.  Those systems are what I'm drawing on for helpful experiences so far.

Thanks,

John B.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3827
    • Host Engineering
Re: Loading Memory
« Reply #3 on: April 16, 2008, 01:49:12 PM »
You need to look at your PLC's memory map.  V0 is not available as User V, it is actually the Timer Current value of T0!  Therefore, use V1400 or V2000 (under PLC->Memory Map).  Also, read about memory in Chapter 3 of your PLC user's manual.

talotam

  • Newbie
  • *
  • Posts: 5
Re: Loading Memory
« Reply #4 on: April 16, 2008, 01:55:50 PM »
Thank you for the info.  I'll debug it tonight.

John B.

talotam

  • Newbie
  • *
  • Posts: 5
Re: Loading Memory
« Reply #5 on: April 20, 2008, 10:07:42 AM »
I've got the timers working with variable memory now.  Thanks for the help.

As I continue to develop my projects, I'm sure to have many more questions.  I appreciate and thank you in advance for future assistance.

John B.