Description
SPFEC12 PC Communication Program
SPFEC12 communication program to complete the function is when the PC to debug online with a PLC, first in the dialogue box of the control panel, enter the two applications for online command word, three PC machine number and three PLC machine number composed of the string, click OK button, then the PC communication program will be the eight-bit string through the RS-232C bus to the serial port of the microcontroller; when When the PLC is not occupied, the microcontroller sends back the online permission signal, and light up the green indicator on the control panel; once the PLC has been occupied, the microcontroller receives the resource occupation signal, and light up the yellow indicator on the control panel.
SPFEC12 and a PLC online debugging is completed, then in the dialogue box on the control panel, enter the two quit online command word, three PC machine number and three PLC machine number string, click OK button, then the PC communication program will be the eight-bit string through the RS-232C bus to the MCU’s serial port, and turn off the lights on the control panel. Click the exit button to exit the communication programme.
The SPFEC12 communication program is designed by applying VB programming software. The control MSComm can set the data sending and receiving of serial communication, set the serial port status and the message format and protocol of serial communication. It is a standard ten-bit serial communication, including eight standard data bits, a start bit and a stop bit.