MC-Basic:NVRAMFORMAT

From SoftMC-Wiki
Revision as of 09:19, 22 May 2014 by Miborich (talk | contribs)
Jump to: navigation, search

This command formats the non-volatile memory device. All previous data is erased and new sets of data vectors are defined. LNVRAM defines the size of long integer data vector. Each element in the vector is 4 bytes long. DNVRAM defines the size of the data vector. Each element in the vector is 8 bytes long.

Syntax

NVRAMFormat LNVRAM = <expression> DNVRAM = <expression>

Availability

All versions

Type

NA

Range

NA

Units

NA

Default

NA

Scope

Configuration , Task , Library or Terminal

Limitations

  • - LNVRAM*4 + DNVRAM*8 < 30720bytes (30 KB)
  • Not supported in EtherCAT system

Examples

Program
       If (LNvRamSize <> 80) OR (DnvRamSize <> 80) Then
                   NvRamFormat lnvram = 80 dnvram = 80
       End if

End Program

See Also