Thail
Member
Hi all,
I've recently been tasked with programming an AB Micro810 to automate a light system. I'm fairly new to PLCs and have only been using CCW for a short period of time, however I've made solid progress so far. I've successfully implemented a TOW block to turn on the lights at 7am and turn them off at 6pm, and then allow a light switch to manually turn the lights on/off after 6pm. However, the issue I'm having is that if the lights are turned on manually before 7am or between 7am-6pm, they will remain on after 6pm. Essentially, I want them to turn off at 6pm regardless of what state the switch is in. I've used a one shot rising block to make it so that the switch needs to be toggled in order for the lights to come on manually however if the lights have been toggled on before 6pm they will stay on. At this point I'm not sure what to do so any help would be appreciated! I've attached my program as well as my function block and variables for each.
I've recently been tasked with programming an AB Micro810 to automate a light system. I'm fairly new to PLCs and have only been using CCW for a short period of time, however I've made solid progress so far. I've successfully implemented a TOW block to turn on the lights at 7am and turn them off at 6pm, and then allow a light switch to manually turn the lights on/off after 6pm. However, the issue I'm having is that if the lights are turned on manually before 7am or between 7am-6pm, they will remain on after 6pm. Essentially, I want them to turn off at 6pm regardless of what state the switch is in. I've used a one shot rising block to make it so that the switch needs to be toggled in order for the lights to come on manually however if the lights have been toggled on before 6pm they will stay on. At this point I'm not sure what to do so any help would be appreciated! I've attached my program as well as my function block and variables for each.