Write programs in the three programming languages (LADDER, FFBD,STL) that workcarpentry automation as follows:Initially the wood is in a position where it presses a switch S1(Normally open) and waits for theturn on the mode which starts with other Switch S2 (Normally open) Starteractivates the wood cutting process. Wood for cutting is promoted with the help of a piston (the operation of the piston is activated by the Q1 output) for 10 sec afterwards and after thepiston has reached the end of the track pressing a switch S3 (normally closed). In this positionit remains for 15 sec and then another piston (the function of this piston is activated byexit Q2) promotes the wood to the outlet lasting 3 sec then the process shouldrepeat until a switch is pressed S4 (normally closed) Stop