logo Welcome, Guest. Please Login or Register.
May 24, 2018, 10:53:42 PM
Home Help Search Login Register
 News: Self-Registration temporarily suspended due to abuse.To Register as a member, please email to webmaster@triplc.com with your email and username.

  Internet PLC Forum
  General
  Technical support
(Moderator: support)
  SAVE_EEP
? previous next ?
Pages: [1] Go Down Reply Notify of replies Send the topic Print
   Author  Topic: SAVE_EEP  (Read 231 times)
Lorne Van Dusen
Jr. Member
**

Posts: 71



I'm a old guy

View Profile
SAVE_EEP
« on: February 20, 2018, 05:20:32 PM »
Reply with quote

I am still a little confused about the correct way to do a SAVE_EEP on consecutive DM's
If I want to do a SAVE_EEP for DM[700] through DM[704]

Do I use SAVE_EEP [DM700] + 3

Then on first scan what is the proper method to move the value back into DM[700] to DM[704]
Report to moderator   Logged
support
Global Moderator
*****

Posts: 3065





View Profile WWW E-Mail
Re:SAVE_EEP
« Reply #1 on: February 21, 2018, 02:25:54 PM »
Reply with quote

Which location of EEPROM do you want to save these data to?

E.g. if you want to save DM[700] - DM[704] to EEP location 100 to 105.


FOR I = 0 to 4
  SAVE_EEP DM[700+I],  100+I
NEXT

---------------------------------------------------------------------------------------


To load values from EEP location 100-104 back to DM[700] to DM[704]:

FOR I = 1 to 4
  DM[700+I] = LOAD_EEP(100 + I)
NEXT
« Last Edit: February 21, 2018, 02:26:21 PM by support » Report to moderator   Logged

Email: support@triplc.com
Tel: 1-877-TRI-PLCS
Lorne Van Dusen
Jr. Member
**

Posts: 71



I'm a old guy

View Profile
Re:SAVE_EEP
« Reply #2 on: February 22, 2018, 03:00:47 PM »
Reply with quote

Thanks for the reply
I must have been having one of those brain freeze days
as I should have figured that out because I have used the same type of circuit before.

Lorne
Report to moderator   Logged
Pages: [1] Go Up Reply Notify of replies Send the topic Print 
? previous next ?
Jump to: 


Login with username, password and session length

Powered by MySQL Powered by PHP Internet PLC Forum | Powered by YaBB SE
© 2001-2004, YaBB SE Dev Team. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!