MC-Basic:NVRAMFORMAT

From SoftMC-Wiki
Jump to: navigation, search
Language: English  • 中文(简体)‎

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