Import the following
PLC 05
// Rung 1
// Address 0
SG S0
// Rung 2
// Address 2
LD V2000
ADDD K12 (Note: if your readings are in Binary than change this to ADDB Kc)
OUT V2003
// Rung 3
// Address 6
STR V2001 V2003
JMP S1
// Rung 4
// Address 9
SG S1
// Rung 5
// Address 11
OUT Y0
LD V2000
ADDD K4 (Note: If your readings are in binary then change this to ADDB K4)
OUT V2004
// Rung 6
// Address 16
STRN V2001 V2004
JMP S0
// Rung 7
// Address 19
END
// Rung 8
// Address 20
NOP
#BEGIN ELEMENT_DOC
"Y0","Something","","You didn't say what this was, I presume a pump?"
"S0","Wait High Temp","",""
"S1","Wait Low Temp","",""
"V2000","Solar Coll Temp","","Temperature of the Solar Collectors"
"V2001","Tank Temperature","",""
"V2003","High Switch Pnt","",""
"V2004","Low Switch Pnt","",""
#END