Mitsubishi — Chapter 7 Application Instructions API 50-88

7 Application Instructions API 50-99 Higher 16-bit Lower 16-bit Designated CR number d) Number of groups “n” to be transmitted: n = 2 in 16-bit instructions and n = 1 in 32-bit instructions mean the same. Designated device Designated CR Designated device Designated CR D0 D1 D2 D3 D4 CR #5 CR #6 CR #7 D0 D1 D2 D3 D4 CR #5 CR #6 CR #7 CR #8 CR #9 CR #8 CR #9 D5 CR #10 D5 CR #10 16-bit instruction when n=6 32-bit instruction when n=3 FROM/TO Application Example 1: Adjust the A/D conversion curve of DVP04AD. Set the OFFSET value of CH1 as 0V (= K0 LSB ) and GAIN value as 2.5V (= K2,000 LSB ). 1. Write H0 to CR#1 of anlog input module No. 0 and set CH1 as mode 0 (voltage input: -10V ~ +10V). 2.

Write H0 to CR#33 and 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 the GAIN value K2,000 LSB into CR#24. Adjust the A/D conversion curve of DVP04AD. Set the OFFSET value of CH2 as 2mA (= K400 LSB ) and GAIN value as FROM/TO Application Example 2: 18mA (= K3,600 LSB ). DVP-PLC APPLICATION MANUAL 7-94 CR #10 CR #9 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