SETDimmer  channel, value                   *{Applicable only to F-series PLC}
Purpose To set channel #channel of the F-series PLC's Light Dimmer Control outputs to fire a trigger pulse to opto-isolated TRIAC (or Solid State Relay). The trigger pulse is fired after a time delay specified by the  value parameter (each unit is equal to about 53 microseconds) and it is measured with respect to the zero crossing that occur at every half cycle of AC voltage.

channel =

1 to 12 (which maps to FPLC outputs #5 to 16)

value  = 

For 50Hz AC signal, range =1 to 188
For 60Hz AC signal, range = 1 to 156

Note: when value = 1 the output is fully ON. When value is near is maximum value the output is fully OFF. Do not set value to larger than the maximum for each particular AC frequency.

Examples SETDIMMER 1,78    
Comments: The PLC light dimmer output channel 1 (which corresponds to digital output #5 of F-series PLC) will send a short trigger pulse to the SSR to turn it on at 78 x (internal timer tick of 53 microsecond per unit) = 0.00413second from the last zero crossing. For a 60Hz AC this will occur at about 90 degree phase angle since the time duration of half a 60Hz wave = 1/60/2 = 0.00833 seconds.

 

backbutton.gif (507 bytes)  Basic to TBASIC Reference Manual