Author Topic: Initialization of DM and string  (Read 6790 times)

Tito

  • Newbie
  • Posts: 48
  • Think
    • View Profile
Initialization of DM and string
« on: August 21, 2012, 10:08:17 AM »
Hi, How to initialize:-
1) DM,
   do i have to put in loop and assign to -1?
2) String
   do i have to assign with ""   ?

thank you

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Re:Initialization of DM and string
« Reply #1 on: August 21, 2012, 11:33:12 AM »
If DIP switch #1 is OFF then all numeric variables are set to zero and all string variables are set to blank upon power on reset.

If DIP switch #1 is ON and your Nano-10 or FMD has FRAM-RTC then these data stays in the FRAM since it is non-volatile. In that case you will need to use a for next loop to assign values to whatever variables you need to set to a certain initial state.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS