Question: Part 5 : ( Garage Door Opener ) - Create the following variables in Variables & FB Instances table o PB _ Open ( EBOOL
Part : Garage Door Opener Create the following variables in Variables & FB Instances table o PBOpen EBOOL PBClose EBOOL LimitSwitchUp EBOOL LimitSwitchDown EBOOL initial value MotorUP EBOOL @ Q MotorDOWN EBOOL @ Q intDoorOpenCount INT Create a LAD code named ladpart under TasksMASTLogic and code the following functionality o If Door is fully closed ie LimitSwitchDown then Pressing PBOpen momentarily will Start opening the door MotorUP True Make LimitSwitchDown False Door will open until fully open fully open when LimitSwitchUp TRUE When door is fully open, motor will stop MotorUP False When door is fully open, increment intDoorOpenCount by Use CTU o If Door is fully opened LimitSwitchUp then Pressing PBClose momentarily will Start closing the door MotorDOWN True Make LimitSwitchUp False Door will close until fully closed fully closed when LimitSwitchDown TRUE When door is fully closed, motor will stop MotorDOWN False o If both PBOpen and PBClose are pressed at the same time, then intDoorOpenCount is set to Reset CTU Create an Animation Table called Parttest and add all your variables to this table. Use it to simulate your code akla
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
