The present disclosure relates to an IoT-based modular robotics system where a function button for changing from a program mode to an automatic mode is installed in a master block, enabling instant execution of the automatic mode in the master block.