News

Solution of MCGS communication problem

Published:2023-02-16 16:13:35

1. How to check the communication status of the device in Kunlun Mode (MVGS)


In all MCGS non-board devices (except some custom devices), *** channels are communication channels. That is, after entering the running environment and the device driver starts to work, the communication status of the device is returned in this channel. For example, 0 indicates that the communication of the device is normal, while non-0 indicates that the communication is abnormal. Note: When the upper computer is running, do not open the device debugging to check the device status, which will cause abnormal communication.


2. What does the communication status -8 mean


Check whether the number of added channel addresses exceeds the limit. In this case, the value of the faulty channel is -5.


3. The project displays a message indicating that the serial port initialization fails


(1) Check whether the serial port is occupied by other software on the TPC. If yes, stop other software using the serial port first.


(2) A nonexistent serial port number is set in the parent device of the universal serial port.

105521emh5twawwvwvd2va.jpg