In order to utilize the advantages of optical computing and promote the application and popularization of Ternary Optical Computer (TOC), this paper proposes a dual-center programming model consisting of electronic processor and optical processor, presents the theory and technologies of the dual-center model in detail, and for the first time explains the SAN ZHI GUANG (SZG) file chain technology, gives the implementation method of the dual-center model. The model tries to effectively manage the resources of optical processor and solve the problem of the distance and network connection mode of using the TOC. Experimental results show that the dual-center model is correct and the implementation method is feasible. It can improve the usability of the TOC and further simplify the TOC programming process, and makes common users apply the TOC and electronic computer to work cooperatively for the same task.