The invention discloses a
data processing method of a programmable controller based on logic separation, which comprises the following steps: a communication core sends a data updating request to a logic core, and the
data type is an IO type and a control type; when the
data type is an IO type, judging whether the state of the hardware lock is an open state or a
closed state; if so, executing data reading or data writing according to the data operation type; if the state is closed, the updating is skipped to the next period for updating; when the
data type is a control type, defining the data of the control type as high-priority data, and waiting for response after the communication core sends a
data request event through inter-core interruption; a logic core high-priority task is awakened, a response task is executed according to a request
event type, response data is copied to a shared data area, and a response completion event is sent through inter-core interruption; and the communication core reads the response data. According to the method, the stability and reliability of
external communication of the programmable controller are improved, and meanwhile, the I / O response performance of equipment is improved.