I am in deep trouble! If anyone can help me figure out how to make this one output work using the real time clock to control when it is true and when it is false !!!please school me!!!
I have been writing logic for a couple years now and have taught myself everything I know. I am now stumped. I usually can figure it out myself by just tinkering or searching on the web... but my boss has thrown a job at me that he thought I could do, usually I can, this time uggh! I have to figure out how to automate office lighting for 40 rooms. The hours for these rooms will vary depending on their work schedules. POINT BLANK... I dont know how to do it. I've spent my last 2 weekends searching the web and now the project starts soon. I have to start writing now. If you are a wiz with automation direct plcs, please show me how to write one time based output and I will surely be able to modify the hours as needed.
please.. thank you.
below is what I need help with.
PLC 440
// Rung 1
// Address 0
#BEGIN COMMENT
"I need a light (output Y0) to become true at 7:00 and stay true, then to become false at 16:00 , and "
"repeat the next day. HELP?!?!"
""
"This example provides a 24-hr clock value for use in Time-of-day operations."
""
"Rung 1 updates the clock value once per second"
#END
STR SP4
PD C0
// Rung 2
// Address 2
#BEGIN COMMENT
"Rung 2 loads the 'Hours' value, shifts it left by 2 digits, and adds the 'Minutes' value, "
"resulting in a Time-of-Day value in HHMM format."
#END
STR C0
LD V7770
SHFL K8
ADD V7767
OUT V2000
// Rung 3
// Address 8
END
// Rung 4
// Address 9
NOP
I have been writing logic for a couple years now and have taught myself everything I know. I am now stumped. I usually can figure it out myself by just tinkering or searching on the web... but my boss has thrown a job at me that he thought I could do, usually I can, this time uggh! I have to figure out how to automate office lighting for 40 rooms. The hours for these rooms will vary depending on their work schedules. POINT BLANK... I dont know how to do it. I've spent my last 2 weekends searching the web and now the project starts soon. I have to start writing now. If you are a wiz with automation direct plcs, please show me how to write one time based output and I will surely be able to modify the hours as needed.
please.. thank you.
below is what I need help with.
PLC 440
// Rung 1
// Address 0
#BEGIN COMMENT
"I need a light (output Y0) to become true at 7:00 and stay true, then to become false at 16:00 , and "
"repeat the next day. HELP?!?!"
""
"This example provides a 24-hr clock value for use in Time-of-day operations."
""
"Rung 1 updates the clock value once per second"
#END
STR SP4
PD C0
// Rung 2
// Address 2
#BEGIN COMMENT
"Rung 2 loads the 'Hours' value, shifts it left by 2 digits, and adds the 'Minutes' value, "
"resulting in a Time-of-Day value in HHMM format."
#END
STR C0
LD V7770
SHFL K8
ADD V7767
OUT V2000
// Rung 3
// Address 8
END
// Rung 4
// Address 9
NOP