Delta DVP — 4.3 Controlling Voltage Output of 2 DVP-04DA by 8 VRs (Variable Resistors)

4. Index Registers E, F Design Examples X0 Read out value processing of the 7th VR X0 Read out value processing of the 8th VR X1 Controlling 0 ~10V output from 4 channels on the 1st DA module X2 Controlling 0 ~10V output from 4 channels on the 2nd DA module Program Description: z The program uses index register E0 and FOR ~ NEXT loop to specify the No. of VR as well as the No. of D registers which store the read out value of VR. z In FOR ~ NEXT loop, E0 will change from 0 to 7 because of [INC E0] instruction. In this case, K0@E0 will change from K0 to K7 and D0E0 will change from D0 to D7. Therefore, the values of 8 VRs will be read out in order as below, VR0→D0, VR1→D1 … VR7→D7.

z The value range of the VR is K0 ~ K255, and the voltage range of DVP04DA is 0 ~ 10V corresponding to K0 ~ K4000. Therefore, the program is designed to convert the VR value K0 ~ K255 into the DVP04DA value K0 ~ K4000. Through this process, the target of controlling 0 ~ 10V voltage output by adjusting the VR value can be achieved. z The value which is converted into K0 ~ K4000 will be sent to D200, D210, D220 … D270, and will be transferred to DVP04DA by TO instruction as the voltage outputs of the corresponding channels. z For the application of API85 VRRD instruction and API79 TO instruction, please refer to DVP-PLC Application Manual - programming .

DVP-PLC Application Examples 4-7 DMUL D70 K4000 D160 DDIV D160 K255 D260 DMUL D80 K4000 D170 DDIV D170 K255 D270 TO K0 K6 D200 K1 TO K0 K7 D210 K1 TO K0 K8 D220 K1 TO K0 K9 D230 K1 TO K1 K6 D240 K1 TO K1 K7 D250 K1 TO K1 K8 D260 K1 TO K1 K9 D270 K1