The invention discloses an inter-core communication method based on a PLC multi-
core system, and relates to the technical field of inter-core communication, the PLC multi-
core system is divided into a control core and a calculation core, and initialization configuration is carried out for different types of cores; a
hybrid communication mechanism is set, the
hybrid communication mechanism comprises an openAMP architecture and a
shared memory mechanism, and environment establishment is carried out for the two communication
modes; establishing a
message type identification mechanism, and automatically classifying according to message features; constructing a self-
adaptive routing algorithm to select an optimal communication mode; constructing a double
linked list optimization management mechanism, calculating message priorities, and setting message sending time in a double
linked list; when the PLC multi-
core system sends a message, a sending core selects a core type according to the optimal communication mode, and openAMP architecture communication and
shared memory mechanism communication are executed respectively according to the core type; and checking a communication result, executing an automatic
retransmission strategy when the communication fails, and calculating
retransmission times and
retransmission intervals.