PMAC Product Guide For option PMACs with flash-backed RAM, all user setup information including programs, buffers, and definitions is copied to flash memory with the SAVE command. This information is copied back from flash to active memory during a normal power-up/reset operation. This means that anything changed in PMAC’s active memory that is not saved to flash memory will be lost in a power-on/reset cycle. The SAVE operation can be inhibited by changing jumper E50 from its default state. If the SAVE command is issued with jumper E50 not in its default state, PMAC will report an error.
The retrieval of information from non-volatile memory on power-up/reset can be inhibited by changing jumper E51 from its default state. PMAC does not provide the acknowledging handshake character to the SAVE command until it has finished the saving operation, a significant fraction of a second later on PMACs with battery backup and about five to ten seconds on PMACs with flash backup. The host program should be prepared to wait much longer for this character than is necessary on most commands. For this reason, do not include the SAVE command as part of a dump download of a large file.
During execution of the SAVE command, PMAC will not execute other background tasks, including user PLCs and automatic safety checks, such as following error and overtravel limits. Particularly on boards with the flash backup where saving takes many seconds, make sure the system is not depending on these tasks for safety when the SAVE command is issued. Examples: I130=60000 ; Set Motor 1 proportional gain SAVE ; Save to non-volatile memory I130=80000 ; Set new value $$$ ; Reset card I130 ; Request value of I130 60000 ; PMAC responds with saved value SIZE Function : Report the amount of unused buffer memory in PMAC. Scope : Global Syntax :
SIZE This command causes PMAC to report to the host the amount of unused long words of memory available for buffers. If no program buffer (motion, PLC or rotary buffer) is open, this value is reported as a positive number. If a buffer is currently open, the value is reported as a negative number. Examples:
DEFINE GATHER ; Reserve all remaining memory for gathering SIZE ; Ask for amount of open memory 0 ; PMAC reports none available DELETE GATHER ; Free up memory from gathering buffer SIZE ; Ask for amount of open memory 41301 ; PMAC reports number of words available OPEN PROG 10 ; Open a motion program buffer SIZE ; Ask for amount of open memory -41302 ; The negative sign shows a buffer is open Online Commands 191