PWM outputs¶
/stm.cgi?pname¶
Set a name for the PWM output.
GET /stm.cgi?pname=AB
A
is index of PWM output PWM0-PWM3, integer0-3
B
is the name to set, a string of up to 15 characters
Example:
http://192.168.1.100/stm.cgi?pname=0Dioda
/outs.cgi?pwm=pwm¶
Toggle the state of the PWM output.
GET /outs.cgi?pwm=pwmA
A
is index of PWM output PWM0-PWM3, integer0-3
Example:
http://192.168.1.100/outs.cgi?pwm=pwm0
/outs.cgi?pwmA=B¶
Set state of PWM output.
GET /outs.cgi?pwmA=B
A
is index of PWM output PWM0-PWM3, integer0-3
B
is the state to be set, integer0-1
Example:
http://192.168.1.100/outs.cgi?pwm0=1
/stm.cgi?pwmd¶
Set the duty cycle for the PWM output.
GET /stm.cgi?pwmd=AB
A
is index of PWM output PWM0-PWM3, integer0-3
B
is the duty cycle in percent, integer0-100
Example:
http://192.168.1.100/stm.cgi?pwmd=050
/stm.cgi?pwmp¶
Set options Active low and Mode ON/OFF.
GET /stm.cgi?pwmp=A
A
determines whether the function is enabled for PWM0-PWM3, integer0-255
(8 bits 20, 21, .. ,27 - first 4 are Active low for PWM0-PWM3, next 4 are Mode ON/OFF for PWM0-PWM3)
Example:
http://192.168.1.100/stm.cgi?pwmp=15
/stm.cgi?pwmf¶
Set the frequency for the PWM outputs.
GET /stm.cgi?pwmf=AB
A
determines whether the frequency is set for PWM0 or PWM1-PWM3, integer0-1
B
is the frequency in Hz, integer1-1000000
(50-100000
till SW 1.49d inclusive)
Example:
http://192.168.1.100/stm.cgi?pwmf=010000
/stm.cgi?pwmt¶
Added in HW 3.5+ SW 1.30
Set the time over which the duty cycle of signal will be changed.
GET /stm.cgi?pwmt=AB
A
is index of PWM output PWM0-PWM3, integer0-3
B
is the time in seconds, integer0-2147483647
Example:
http://192.168.1.100/stm.cgi?pwmt=010
PID Regulator¶
/stm.cgi?pidvalue¶
Set PID Regulator options.
GET /stm.cgi?pidvalue=A*B*C*D*E*F*G
A
determines whether the function is enabled, integer0-1
-
B
is input, integer0-30, 47-51
{ "0": "VCC", "1": "INPA1", "2": "INPA2", "3": "INPA3", "4": "INPA4", "5": "INPA5", "6": "INPA6", "7": "TEMP", "8": "T1", "9": "H1", "18": "P1", "10": "DS1", "11": "DS2", "12": "DS3", "13": "DS4", "14": "DS5", "15": "DS6", "22": "DS7", "23": "DS8", "16": "DIFF1", "17": "DIFF2", "26": "DIFF3", "47": "DIFF4", // added in HW 3.5+ SW 1.49 "48": "DIFF5", // added in HW 3.5+ SW 1.49 "49": "DIFF6", // added in HW 3.5+ SW 1.49 "19": "CO2/GMQ125", // changed in HW 3.5+ SW 1.49 "24": "PM1.0", "20": "PM2.5", "25": "PM4.0", "21": "PM10.0", "27": "POWER1", // added in HW 3.5+ SW 1.36 "28": "POWER2", // added in HW 3.5+ SW 1.36 "29": "POWER3", // added in HW 3.5+ SW 1.36 "30": "POWER4", // added in HW 3.5+ SW 1.36 "50": "POWER5", // added in HW 3.5+ SW 1.49 "51": "POWER6", // added in HW 3.5+ SW 1.49 }
-
C
is the target value on the input, integer (the desired value multiplied by 10) D
is coefficient Kp, integerE
is coefficient Ki, integerF
is coefficient Kd, integerG
determines which PWM output is to be controlled, integer0-3
Example:
http://192.168.1.100/stm.cgi?pidvalue=1*7*240*1*1*1*0