The theme of this bachelor thesis was to create firmware for internal and external control panel for a model of a lift. Control panels communicate with the upper-level control system via the AS-Interface fieldbus. The base of the firmware is the finite state machine. In the introduction of the thesis, there is a brief description of the AS-Interface bus and the outline of the principle of data transfer. Followed out, is the description of firmware for control panels. Furthermore, there was created a test application for PLC which verifies the functionality of control panels. In the last part, there was produced a manual for the firmware programming, including the construction of untypically involved programming cable