Machineman
Member
Any ideas on code that could maybe produce a TTL out PWM frequency 50 to 100Hz with adjustable duty cycles 0 to 100%?
Freq50hz-DC50%:
Delay 20 # set 50Hz loop
Set OP1[10] 1 # on 50%
Goto Freq50hz
But lots of other PLC logic will need to be added and that might effect the entire PLC loop times? Something like this could be checked on a scope. Are these small delay times reasonable or in noise for WC8?
Freq50hz-DC50%:
Delay 20 # set 50Hz loop
Set OP1[10] 1 # on 50%
Goto Freq50hz
But lots of other PLC logic will need to be added and that might effect the entire PLC loop times? Something like this could be checked on a scope. Are these small delay times reasonable or in noise for WC8?