125
CHAPTER 8 FUNCTIONS
8
8.19 Saving and Restoring Offset/Gain Values
(b) To apply the offset/gain values of one module to the other modules in the same
system:
Here, the offset/gain setting of module No.1 is applied to modules No.2 to No.4.
(2) Methods for saving and restoring offset/gain values
There are two methods for saving and restoring offset/gain values.
• Saving and restoring by dedicated instructions
• Saving and restoring by reading from and writing to the buffer memory
(a) Saving and restoring by a dedicated instruction
Use the dedicated instruction G(P).OGLOAD to temporarily save the offset/gain values of the source A/D
converter module to the CPU module’s internal device, then use G(P).OGSTOR to write to the destination A/D
converter module.
You can prevent the saved offset/gain value data from getting deleted, by doing one of the following before
replacing the modules:
• Use latch settings for the internal device of the destination module.
• Save the data onto an SD memory card.
To write data: use SP.FWRITE instruction
To read data: use SP.FREAD instruction
• Store the saved data
For use of dedicated instructions, refer to the following.
• Dedicated Instructions ( Page 209, Appendix 5)
1. Save the offset/gain values of module No.1.
↓
2. Apply the offset/gain values to modules No.2 to No.4.
Ex.