01
def
flask.route('/')
1
0
if ai.ready():
1
SELECT
0
render(app)
1
0
import pandas
0
1
df.fillna(0)
1
0
SELECT *
FROM clients
0
1
0
plt.show()
1
0
0
1
1
0
sql.connect()
1
AI
0
1
0
module.exports
1
0
return result
1
0
0
1
0
async def run():
1
0
1
1
0
for i in range(n):
0
1
0
1
0
1
PLC.run()
1
0
1
0
1
0
def predict(x):
1
0
1
vba.exe
0
0
1
1
try(x)
0
1
0
1
0
web.deploy()
1
0
1
0
0
1
CAD.export()
1
0
1
1
0
0
1
MATLAB
0
1
0
1
0
1
0
1
0
PLC

Celsius–Fahrenheit Converter

A PLC program built in OpenPLC Editor that converts a temperature from Celsius to Fahrenheit and raises a freezing alert. The conversion follows °F = (°C × 9) / 5 + 32, wired as a chain of function blocks: the Celsius input is multiplied by 9, divided by 5, then added to 32, with the constants held in named variables (K9, K5, K32) instead of being hard-coded. A separate section compares Celsius against zero with a less-than block and drives a Freezing_Alert output that turns true whenever the temperature drops below 0 °C. The program was tested in OpenPLC Editor's live debugger, where every wire shows its value as the program runs. Three test cases are shown: 25 °C gives 77 °F with no alert, 0 °C gives 32 °F with no alert, and −10 °C gives 14 °F with the freezing alert switched on. All values are integers, so results are whole degrees.

Celsius–Fahrenheit Converter screenshot
Celsius–Fahrenheit Converter screenshot
Celsius–Fahrenheit Converter screenshot