9 Application Instructions API 150-199 199 Operands: S 1 : Target frequency to be changed S 2 : Gap time and gap frequency D : Pulse output device (EH3/SV2 supports Y0, Y2, Y4, and Y6.) (SX supports Y0.) Explanations: 2. Max frequency for S 1 : 200kHz. (The maxumum freuency that SX V3.0 and above suppors is 32767Hz.) When 1. The instruciton supports EH2 V2.0, SX V3.0, and above. It also supports EH3 and SV2. ICF instruction executes, frequecy changing will start immediately with ramp-up/down process. 3. ICF instruction has to be executed after the execution of DVSPO or DPLSY instructions.
When the instruction is used together with DVSPO, operands S 1 , S 2 , D of DICF has to be assigned the same device with S 1 , S 3 , D of DVSPO. When the instruction is used with DPLSY, operands S 1 and D has to be assigned the same device with S 1 and D of DPLSY . 4. If ICF instruction is used with DPLSY instruction, operand S 2 is invalid. 5. When ICF instruction is used with DVSPO instruction, parameter setting of S 2 functions the same as S 3 in DVSPO instruction, specifying the gap time and gap frequency of ramp-up/down process. 6. The instruction is suggested to be applied in interrupt subroutines for obtaining the better response time and execution results 7.
For associated flags and registers, please refer to Points to note of API 198 DVSPO instruction. Function Explanations: 1. If users change the target frequency by using DVSPO instruction, the actual changing timing will be delayed due to the program scan time and the gap time as below. Change target freq. Freq. Actual timing of changing Gap freq. Time Gap time Gap time Delayed by program scan cycle DVP-PLC Application Manual 9-144 Mnemonic Operands Function D ICF Immediately change frequency Type OP Bit Devices Word devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F DICF:
13 steps S 1 * S 2 * * * D * PULSE 16-bit 32-bit SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SC EH3 ES EX SS SX EH SV SV2