Joe Boxer said:
When I try usig the greater than contact get a TA4 bit.
I'm sorry I left out the Vmem address. It's V7770. Which if you have set the time in the plc will be the hour 0-23
Here is a neat trick copy this code to notepad, save it, open a new project go to file, import, program, find the notepad file you saved, click on open. This will make a new project with the code
copy below this line
PLC 06
// Rung 1
// Address 0
STR X4
AND V7770 V1300
AND V1301 V7770
OR X5
OUT Y0
// Rung 2
// Address 7
END
// Rung 3
// Address 8
NOP
#BEGIN ELEMENT_DOC
"X4","","3 pos sel switch","selector switch ""pool filter auto"""
"X5","","3 pos sel switch","selector switch ""pool filter manual run"""
"Y0","","","pump motor"
"V1300","_v1300","","pump start time"
"V1301","_v1301","","pump stop time"
"V7770","_v7770","","hours on the plc clock"
#END
stop copying above this line