The PWM block doesn't allow a variable for the frequency, only a constant.
Sorry about that. PWMOUT was set up to provide a simple way to set up a PWM with a constant frequency but be able to change the duty cycle. I would recommend not using the PWMOUT but just manipulate the PERIOD (not frequency) as an INTEGER in MILLISECONDs or MICROSECONDs (units are DYNAMIC - see the .PeriodScale in the PWM Out heap item, e.g. $PWMOut1.PeriodScale.)
Look at Help Topic DMD0408 BRX Pulse Width Modulated Outputs for how to easily control the "frequency" as a Period in milliseconds or microseconds. The .PeriodScale manipulation is CRITICAL (along with the proper unit value for .Period) when manipulating the Frequency at runtime.
PWMOUT was also created as a place holder for Cross Reference of your PWM configuration. You could technically still use it, just make sure your PWMOUT box is BEFORE the direct manipulation of the $PWMOut1 structure members (last one wins).