Knowledge Base

NVEM Page 0 is the same as all other SPLat controllers, but in the HMI430/700 it is read only so can’t be written to by your application at runtime.  You can only write data to NVEM0 in the HMI430/700 by putting data into NVEM0 in your source code then compile and download to the HMI430 with SPLat/PC.  Once your application is running it is unable to change data within NVEM0, it can only read from it.

Therefore, if you try to call write instruction on this page, like NVWriteRec or NVfWriteW the HMI430 will reset.

Here’s an example of displaying the day of week from a table in NVEM0:

<somwhere in your code>
RTCReadDate ;get the date from the RTC
RTCPushDN ;put the day number into X
#HMI Print( "Day is:", nz( pDOW, =x ) ) ;display the day
<the rest of your code>


NVEM0 ;this marker tells SPLat/PC the everything that follows is to be put into NVEM0
pMon   NV0Byte  "Monday",0
pTue NV0Byte "Tuesday",0
pWed NV0Byte "Wednesday",0
pThr NV0Byte "Thursday",0
pFri NV0Byte "Friday",0
pSat NV0Byte "Saturday",0
pSun NV0Byte "Sunday",0

pDOW
NV0Ptr pMon
NV0Ptr pTue
NV0Ptr pWed
NV0Ptr pThr
NV0Ptr pFri
NV0Ptr pSat
NV0Ptr pSun
 

Here is a full list of NVEM instructions.