one embodiment of the present invention will be described below with reference to the accompanying drawing . the injection molding machine includes an injection molding machine body 1 , an injection screw 4 arranged so as to be inserted into a cylindrical barrel 3 . the injection machine also includes a hopper 2 . the injection screw 4 is rotatable in the barrel 3 and freely movable forward and backward . the barrel 3 communicates with the hopper 2 . a synthetic resin material is fed into the barrel through the hopper 2 . a plurality of heaters , not shown , are arranged at predetermined intervals on the outer periphery side of the barrel 3 . these heaters are adapted to heat the outer periphery of the barrel and melt the resin material fed into the barrel 3 . the barrel 3 has an injection nozzle 5 at a forward end of the barrel 3 to allow the melted synthetic resin material to be injected . a heating temperature of the barrel 3 is controlled by the plurality of heaters so that the melting degree of the melted resin material gradually increases when the resin moves toward the forward end of the barrel 3 . the injection screw 4 is rotatably driven by a servomotor 6 for injection and moved forward and backward . that is , the servomotor 6 for injection transmits its rotation to a ball screw shaft 11 through a transmission mechanism comprising a pulley 7 , a timing belt 8 and a timing pulley 9 . the ball screw shaft 11 is rotatably provided in a servo bracket 10 . the ball screw shaft 11 is set in a ball nut 12 . the ball nut 12 is fixed by bolts to a thrust box 13 . the injection screw 4 is rotatably joined at its rear end portion to the thrust box 13 through an s shaft and bearing ( not shown ). the s shaft is rotatably connected to the thrust box 13 and mounted to a timing pulley 14 . a servomotor 17 is also provided . the servomotor 17 has a rotation shaft which is connected to a pulley 16 . a timing belt 15 is provided between the timing pulley 14 and the pulley 16 . the timing pulley 14 , timing belt 15 and pulley 16 constitute a transmission mechanism . the servomotor 17 moves the injection screw 4 material which is to be injected forward , determining an amount of the melted resin . the servomotor 17 transmits its rotation to the s shaft as set out above through the associated transmission mechanism as set out above to allow the injection screw 4 to be rotated . the forward moving position of the injection screw 4 is determined by an amount of synthetic resin material injected . in the forward position of the barrel 3 are provided metal mold halves 18 and a device 19 for opening / closing and clamping the metal molds . when the melted resin material is injected from the injection nozzle 5 , the injection nozzle 5 is pushed into a nozzle inlet 18 a of one metal mold half 18 . in this state , the forward end 4 a of the injection screw 4 is moved forward and , by doing so , allows the resin material which is melted in the barrel 3 to be injected through the injection nozzle 5 . thus , the resin material is charged into a cavity 20 defined by the metal mold halves 18 . the device 19 has a fixing plate 21 that supports one of the metal mold halves 18 . a movable plate 23 is provided . the movable plate 23 holds a tie bar 22 which in turn supports the fixing plate 21 . the movable plate 23 can move toward and away from the fixing plate 21 . the device 19 attaches the movable plate 23 to a toggle mechanism support plate 25 through a toggle type mold clamping mechanism 24 . a servomotor 26 is provided on the toggle mechanism support plate 25 to drive the toggle type clamping mechanism 24 . a mold thickness adjusting mechanism 27 is provided . the mechanism 27 adjusts a mold thickness when the toggle type mold clamping mechanism 24 effects the mold clamping operation . in the electrical type injection molding machine thus structured , the servomotor 26 is first driven for mold clamping . by doing so , the metal molds 18 start their mold closing operation . in addition , the injection nozzle 5 of the barrel 3 is pushed into the nozzle 18 a of the mold halves 18 . then , the measuring servomotor 17 , while being rotated , moves the injection screw 4 forward and effects a quantity of the melted resin material injected . then , the injection servomotor 6 rotates the injection screw 4 to inject the melted resin . the barrel 3 injects the melted resin through the injection nozzle 5 and charges the melted resin into the cavity 20 of the metal molds 18 . as shown in fig2 , a control device of the electrical type injection molding machine 1 includes a main control section 31 for controlling each part of the injection molding machine , a sequence processing section 32 and a servo command section 33 . the main control section 31 includes a cpu , rom , ram , etc . the main control section 31 allows to manage and monitor the injection molding machine 1 . the sequence processing section 32 has a cpu , rom , ram , etc . the sequence processing section 32 allows to control the operation sequence of the injection molding machine 1 . the servo command section 33 has a cpu , rom , ram , etc . the serve command section 33 allows to control the injection servomotor 6 and the measuring servomotor 17 . the main control section 31 , the sequence processing section 32 and the servo command section 33 are electrically connected together through a bus line 34 . the servo command section 33 controls a servo amplifier 35 in a driver section and drives the injection servomotor 6 . the rotation and current value of the injection servomotor 6 are detected by a detection section 36 . the servo command section 33 receives a signal from the detection section 36 and detects the moved position and rotation speed of the injection screw 4 and the current value in the motor . furthermore , the servo command section 33 performs feedback control based on the detected moved position of screw 4 and rotation speed of the screw 4 and current value in the motor and thus controls the servomotor 6 . the servo command section 33 controls the servo amplifier 35 in the driver section and drives the servomotor 17 for measurement . the rotation and current value of the measuring servomotor 17 are detected by a detection section 38 . the servo command section 33 receives a signal from the detection section 38 and detects the moved position and rotation speed of the injection screw 4 and current value of the servomotor . furthermore , the servo command section 33 performs feedback control based on the moved position of screw 4 and rotation speed of the screw 4 and current value in the servomotor 17 . the servo command section 33 also controls the servomotor 17 for measurement . an i / o 40 , etc ., is electrically connected via i / o bus 39 to the sequence processing section 32 . the main control section 31 , sequence processing section 32 and servo command section 33 each constitute a control module with a dedicated microprocessor for each control module . the main control section 31 includes a communication interface section such as hmi section 41 . hmi section 41 is a human / machine interface device that is electrically connected to the main control section 31 through a lan 42 such as ethernet ( registered trademark name ). the hmi section 41 includes a cpu , rom , ram , etc ., and general - purpose os ( operating system ). the hmi section 41 is comprised of , for example , a personal computer and connected to a display section 43 . the display section 43 has a touch panel on a liquid crystal display screen to allow the display screen to be controlled . the main control section 31 is connected via a cable 45 to an operation panel section 44 . the operation panel section 44 has a plurality of mechanical operation switches . the main control section 31 is connected via a cable 46 to the touch panel of the display section 43 . the main control section 31 is connected via a cable 48 to a temperature control section 47 . the temperature control section 47 controls the heating temperature of the plurality of heaters arranged on the outer periphery of the barrel 3 . the display section 43 allows to display control parameters via the hmi section 41 and allows touch panel of the display section 43 to be controlled by the main control section 31 . the display section 43 outputs a key signal to the main control section 31 by finger - touching any corresponding key on the touch panel on the display screen . in such arrangement , the main control section 31 controls the temperature control section 47 . the temperature control section 47 controls the heating temperature of the plurality of heaters to melt the synthetic resin material transferred from the hopper 2 into the barrel 3 . when the resin material is injected through the injection nozzle 5 of the barrel 3 into the cavity 20 , the sequence processing section 32 and servo command section 33 are controlled . first , the servo command section 33 controls the servo amplifiers 37 and drives the measuring servomotor 17 . the servomotor 17 rotates the injection screw 4 to move the melted resin forward and determine the melted resin amount injected from the barrel 3 . then , while the injection screw 4 is rotated , the injecting servomotor 6 is driven to move the resin forward . the injection screw 4 pushes the melted resin through the injection nozzle 5 via the forward end 4 a . by doing so , the mold cavity 20 is filled with the melted resin which is through the injection nozzle 5 past the nozzle inlet 18 a of the mold halves 18 . when the filling of the melted resin material is finished , the device 19 is operated for the closing and clamping of the mold halves 18 . the mold halves 18 are moved apart from the barrel 3 . the device 19 opens the metal molds and a molded product is taken out from the metal mold halves 18 . the above description of operation is for the electrical type injection molding machine . however , it is also possible to use a hydraulic type injection molding machine in place of the electrical type injection molding machine . in the case of the hydraulic type injection molding machine , a hydraulic driver for relief / flow control is used . in this case , the injection servomotor 6 and measuring servo motor 17 may not be used . a control device of the hydraulic type injection molding machine does not use the servo command section 33 and servo amplifiers 35 , 37 connected to the servo command section 33 as well as the injection servomotor 6 , measuring servomotor 17 and so on . as shown in fig3 , the control device disconnects the servo command section 33 and servo amplifiers 35 , 37 connected to the section 33 as well as the injection servomotor 6 and measuring servomotor 17 and so on and , instead , connects a hydraulic i / o 51 to a bus line 34 . in this case , the hydraulic i / o 51 is connected to hydraulic drivers 52 and 53 . the hydraulic driver 52 moves the injection screw 4 forward and backward so that the injection screw 4 injects the molted resin . on the other hand , the hydraulic driver 53 moves the injection screw forward and backward so that the hydraulic driver 53 measures an amount of melted resin injected . when the injection molding machine is changed from the electrical type injection molding machine to the hydraulic type injection molding machine , a change is made to the configuration of the injection screw . indeed , the injection screw 4 driven by the injection servomotor 6 in an electrical type injection molding machine is changed to an injection screw driven under a hydraulic pressure in a hydraulic type injection molding machine . a barrel 3 having a different structure is employed in the hydraulic type injection molding machine compared to a barrel 3 in the electrical operation type injection molding machine . as such , the injection molding machine per se maybe wholly replaced . however , the control device has a dedicated cpu for each of the main control section 31 , the sequence processing section 32 , and the servo command section 33 . the control device provides a control module , that is , a unit modularized for each control element . therefore , the main control section 31 , the sequence processing section 32 , and the servo command section 33 in the main control device are individually exchangeable . in this way , when the injection molding machine is changed from the electrical operation type to the hydraulic type , the servo command section 33 and so on are disconnected from an associated circuit and , instead , the hydraulic i / o 51 is connected to the bus line 34 . the hydraulic i / o 51 is connected to hydraulic drivers 52 and 53 . in this case , if the sequence processing section 32 in the electrical type injection molding machine is different from a sequence processing section 32 in the hydraulic type injection molding machine , an appropriate hydraulic type sequence processing section can be used . as a result , even if a change is made from the electrical type injection molding machine to the hydraulic type injection molding machine , replacing the control device as a whole , may not be needed . in this case , an exchange may be made in control module units . it is also possible for the injection molding machine to use any proper electrical type / hydraulic type combination as a hybrid type injection molding machine . a control device that can be used in the hybrid type injection molding machine , is shown in fig4 . a hydraulic i / o 51 is connected to a bus line 34 as in the control device shown in fig2 . the hydraulic i / o 51 is connected to the hydraulic drivers 52 and 53 . furthermore , a sequence processing section 32 is replaced by a hybrid type . thus , it may not be necessary to replace the control device as a whole . incidentally , the sequence processing section 32 has initially a built - in sequence control program corresponding to an electrical , a hydraulic and a hybrid type operation . the sequence processing section 32 is constructed so that any corresponding sequence control program can be selected . accordingly , the sequence processing section 32 is not replaced by a new one and can be readily tailored to meet a specific need by selecting any sequence control program . as evident from the above , even if the injection molding machine is changed to any of the electrical , hydraulic and hybrid type operation , the control device does not need to be changed as a whole . it is possible to readily adapt to any configuration through the change of any possible control module combination . as a result , the control device provides an excellent general - purpose device and provides higher economic benefits . furthermore , the control device described herein achieves an enhanced processing capability , by allowing the exchange of the main control section 31 and sequence processing section 32 .