The invention discloses an automatic generating
system and method for electrical-device error-preventing logical formulas. The automatic generating
system comprises an input-output module, a typical wiring model base, a main wiring analysis module, a
common error-preventing
logical formula base, a formula generating module, a formula verifying module and the like. According to the automatic generating
system, all kinds of typical wiring modules and
common error-preventing logical formulas of a
plant station are internally arranged; after main wiring information of a specific
plant station is read, the wiring information can be matched with system-internally-arranged typical device wiring modules, then the
common error-preventing logical formulas under a matching module are replaced into actual device information to be output, and therefore specific error-preventing logical formulas are obtained; further, automatically-generated logical formulas and written logical formulas can be verified, and therefore the problems that current
plant-
station error-preventing logical formulas are low in writing efficiency and verifying efficiency and insufficient in reliability are solved.