Mitsubishi — 5.6 Application Instructions

5 Categories and Use of Basic Application Instructions Specified device Specified CR Specified device Specified CR D0 D1 D2 CR #5 CR #6 CR #7 D0 D1 D2 CR #5 CR #6 CR #7 D3 D4 CR #8 CR #9 D3 D4 CR #8 CR #9 D5 CR #10 D5 CR #10 16-bit instruction when n=6 32-bit instruction when n=3 Application Example 1: Adjust the A/D conversion curve of DVP04AD-H2. Set the OFFSET value of CH1 as 0V ( = K0 LSB ) and GAIN value as 2.5V ( = K2,000 LSB ). 1. Write H’0 into CR#1 of analog input module No. 0 to set CH1 as mode 0 (voltage input: -10V ~ +10V). 2. Write H’0 into CR#33 to allow OFFSET/GAIN tuning in CH1 ~ CH4. 3.

When X0 goes from OFF to ON, write the OFFSET value K0 LSB into CR#18 and GAIN value K2,000 LSB into CR#24. Application Example 2: Adjust the A/D conversion curve of DVP04AD-H2. Set the OFFSET value of CH2 as 2mA ( = K400 LSB ) and GAIN value as 18mA ( = K3,600 LSB ). 1. Write H’18 into CR#1 of analog input module No. 0 to set CH2 as mode 3 (current input: -20mA ~ +20mA). 2. Write H’0 into CR#33 to allow OFFSET/GAIN tuning in CH1 ~ CH4. 3. When X0 goes from OFF to ON, write the OFFSET value K400 LSB into CR#19 and the GAIN value K3,600 LSB into CR#25. FROM/TO Application Example 3:

DVP-PM Operation Instruction 5-82 M1002 TO K0 K1 H0 K1 TO K0 K33 H0 K1 X0 TO K0 K18 K0 K1 TO K0 K24 K2000 K1 TO K0 K24 K2000 K1 TO K0 K1 H0 K1 TO K0 K33 H0 K1 TO K0 K18 K0 K1 M1002 TO K0 K1 H18 K1 TO K0 K33 H0 K1 X0 TO K0 K19 K400 K1 TO K0 K25 K3600 K1 TO K0 K25 K3600 K1 TO K0 K1 H18 K1 TO K0 K33 H0 K1 TO K0 K19 K400 K1