Two actuators act together as a hydraulic press. The press starts after
holding two start buttons for 2 seconds. (There is only one "finger" cursor arrow on the screen, so that one button is a switch)

The press is working for 5 seconds and then it goes back to the initial position.

The PLC program working out the mathematical operations consists of one block OB1 and function FC2

Networks: 1 and 3 invoke the function FC2 which performs the entering number task.

Networks: 2 and 4 store the entered number into the proper memory field MW2 or MW4.

Networks 5 and 6 send the first or second number to decimal output QW0 that is assigned to 8-bit indicator on the screen.

The decimal inputs I1.4. I1.5, I1.6, I1.7 and I2.1 correspond to "/", "*', "-", "+', "CE" calculator's key on the screen after pressing any of them the first entering number is switched to the second entering number.

Network 8 set res_no - show result variable after pressing I2.0 "=" key

Networks 9, 10, 11, 12 do one of the four math calcultions.

Next the PLC program shows the result (Net13), clears the memory fields after pressing the CE key (Net14), switch to the second number, select proper math operation.

The auxilary function FC2 is invoked after pressing any digit from "0" to "9"

Network2 shifts the entering number left (multiplies by 10)