The main goal of this work is the development of a multiagents system that would allow the creation of control agents for the intelligent distributed control system based on agents (SCDIA), including the creation of an agent's source code, its compilation, and incorporation to the SCDIA. The SCDIA has a control agents community consisting of five agents that resemble the elements of a closed control loop: coordinator agent, controller agent, measurement agent, acting agent, and specialized agent. Agent development platform JADE was used for developing this system. The system has three main agents: central agent, code generator agent, and behavior agent. These agents communicate with each other to generate the control agents of the SCDIA through the use of a code generation ontology.