Mitsubishi — Chapter 7 Application Instructions API 50-88

7 Application Instructions API 50-99 API 51 Operands: n : Response time (unit: ms) Explanation: 1. Range of n : for SA/SX/SC, n = K0 ~ K20; for EH/EH2/SV/EH3/SV2, n = K0 ~ K60. 2. To avoid interferences, X0 ~ X17 of EH/EH2/SV/EH3/SV2 series MPU and X0 ~ X7 of SA/SX/SC series MPU are equipped with digital filters on output terminals. Digital filters adjust the response time by REFF instruction. This instruction sets up n directly in D1020 (adjusting the response time of X0 ~ X7) and D1021 (adjusting the response time of X10 ~ X17). 3. Rules for adjusting the reponse time of the filter at X0 ~ X17:

a) When the power of PLC turns from Off to On or the END instruction is being executed, the response time will be determined upon the contents in D1020 and D1021. b) You can use MOV instruction in the program to move the time values to D1020 and D1021 and make c) You can use REFF instruction to change the response time during the execution of the program. The adjustments in the next scan. changed response time will be move to D1020 and D1021 and you can make adjustments in the next scan. Program Example: 1. When the power of PLC turns from Off to On, the response time of X0 ~ X17 will be determined by the contents in D1020 and D1021. 2.

When X20 = On, REFF K5 will be executed and the response time will be changed to 5ms for the adjustment in the next scan. 3. When X20 = Off, the REFF K20 will be executed and the response time will be changed to 20ms for the adjustment in the next scan. Remarks: When inserting an interruption subroutine in the program or using the high speed counter or API 56 SPD instruction, the corresponding signals at the input terminals will not delay and has nothing to do with this instruction. DVP-PLC APPLICATION MANUAL 7-2 Mnemonic Operands Function REFF P Refresh and Filter Adjust Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F REFF, REFFP:

3 steps n * * PULSE 16-bit 32-bit EH3 ES EX SS EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH SV SA SX SC EH SV SV2 SV2 X20 REFF K5 X0 Y1 X20 REFF K20 X1 Y2 END REFF K5 END REFF K20