7.3
Program Example (for Wave Output Mode)
This section describes the program examples when operating the D/A converter module in the wave output mode.
System configuration
The following figure is an example of the system configuration.
(1)
(1) Power supply module (R61P)
(2) CPU module (R120CPU)
(3) D/A converter module (R60DAH4)
(4) Input module (RX10)
Programming conditions
• Output the voltage delineating the sine wave locus from CH1.
• Store the wave pattern and parameter settings of the wave output function in the file register of the CPU module.
Program configuration
The program for the wave output mode has the following configuration. Execute the program in the order described below.
1.
Wave output data read processing program
Page 43 Wave output data read processing program example
2.
Operating condition setting request processing program
Page 45 Operating condition setting request processing program example
3.
Wave output start processing program
Page 46 Wave output start processing program example
Moreover, if the parameters of the wave output function need to be changed upon execution of the wave output data read
processing program, execute the following program.
Page 44 Wave output parameter setting processing program example
7 OPERATION EXAMPLES
36
7.3 Program Example (for Wave Output Mode)
(2)
(3)
(4)