Encapsulation of algorithm module based on component technology in ladder diagram programming
Aiming that the traditional ladder diagram programming can't realize generic algorithm multiplexing and algorithm secrecy problem,firstly,the component technology based on the ladder diagram principle was analyzed from the attribute and the definition in detail.Then,through the inheritance and reusability of the encapsulation technology and the rewrite of the component language which based on the ladder diagram data structure model,a method of packaging the intelligent algorithm into the reusable component module in ladder diagram was designed.At last,the type of the weights of the neural network was taken as an example,a method of packaging the neural network test algorithm which was edited by C language into a fixed component module was introduced,and it was compared with the method that realized the same function with the traditional ladder diagram programming.The results indicate that,this method is suitable for the encapsulation of any commonly algorithms,and packaging the intelligent algorithm module by the programmer themself can reduce a lot of repetitive work in software development activities.The confidentiality of the packaging technology ensures the security of the internal algorithm.