PWM Output Function9-49.1.3 [F173 PWMH] PWM Output Instruction (Frequency Specification)Performs the PWM output according to the set parameters. Instruction formatR0SF173 PWMH n OperandOperand SettingsSStarting address the memory area storing the parameters of the PWM output.S Specify the control code HFF.S+1 Specify the output frequency in 2-word 32-bit data.Setting range: K1 to K100000 (1 Hz to 100 kHz: in 1 Hz increments)S+2S+3Duty ratio (Resolution of 1000 or 100)For the output frequencies 1 to K70000, Setting range: K0 to K1000 (0.0% to 100.0%)For the output frequencies K70001 to K100000, Setting range: K0 to K1000 (0% to 100%)nChannel nos. used for PWM output:FP0H mode: 0 (CH0: Y0), 1 (CH1: Y3), 2 (CH2: Y8), 3 (CH3: YB)FPΣ mode: 0 (CH0: Y0), 2 (CH2: Y3) Memory area type that can be specifiedOperand WX WY WR WL SV EV DT LD I Constant IndexmodifierK HS - - - - - - A - - - - An - - - - - - - - - A A - Outline of operation• The PWM output is performed form a specified output. The output is performed when thetrigger (execution condition) is on.• The output frequency and duty ratio is specified in the operands [S1+1] to [S1+3]. Precautions during programming• This instruction cannot be executed when a control flag corresponding to each channel is on.• The duty may be different from the set ratio according to the load voltage and load currentespecially in the vicinity of minimum and maximum values. The duty can be changed foreach scan. However, the control code cannot be changed during the execution of aninstruction.• When rewriting during RUN is performed during the operation, the PWM output stops while aprogram is being rewritten.