Pm designer operation manual – B&B Electronics WOP-2121V-N4AE - Manual User Manual
Page 439

14
PM Designer Operation Manual
14-30
CHAPTER 14 USING MACROS
14.4.11. Recipe Operation
RB2ROM
Format
P1
= RB2ROM(P2 )
Data Type
U
Function
Saves the data of recipe block P2 to the flash ROM and saves the completion code in P1.
P1 (I)
The word to receive the completion code. If the completion code is 0, the operation succeeded;
Otherwise the operation failed.
P2 (I/C)
The ID of the recipe block to be saved. The option "Need space in flash ROM to save backup"
must be selected for the recipe block.
Example 1
$U10
= RB2ROM(
3
)
/* Save recipe block #3 to the flash ROM. */
ROM2RB
Format
P1
= ROM2RB(P2 )
Data Type
U
Function
Restores the data of recipe block P2 from the flash ROM and saves the completion code in P1.
P1 (I)
The word to receive the completion code. If the completion code is 0, the operation succeeded;
Otherwise the operation failed.
P2 (I/C)
The ID of the recipe block to be restored. The option "Need space in flash ROM to save backup"
must be selected for the recipe block.
Example 1
$U10
= ROM2RB(
3
)
/* Restore recipe block #3 from the flash ROM. */