Ethernet communication control method for steel and iron continuous annealing system
A communication control, Ethernet technology, applied in the field of Ethernet communication, can solve problems such as data buffer overflow, CP module crash, network congestion, etc., to achieve the effect of ensuring real-time stability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] Embodiment 1: as Figure 6 As shown, in the single-task sending mode, there is only one message loop on each communication connection. Set up a communication channel occupation flag M_TASK in the user program to help control the call of FC AG_SEND. The initial value of M_TASK is 0. When the pulse bit ACT of the trigger sending task is set to 1, the M_TASK flag is set to 1. At the same time, the user program calls the system sending function AG_SEND to execute the task of sending data "X". At this time, the state parameter is: the amount of completed tasks DONE is 0 , the number of wrong tasks ERROR is 0, and the status parameter is 8181H (8181H means that the task is being executed). During the process of data transmission between the CP module and the communication partner, the communication channel is always in a busy state, and the CP returns to the state showing that the job is in progress, and the M_TASK flag bit is in the occupied state "1". During this process, ...
Embodiment 2
[0031] Embodiment 2: Under the multi-tasking transmission mode of a single circuit (Channel), there are multiple (for example N, N is a natural number greater than 1) message loops on each communication connection at the same time, in order to avoid multiple tasks at the same time Trigger pulses lead to CP data buffer disorder, data loss and congestion. On the basis of single-task sending mode, add a task execution register, such as TSK_REG, to realize the task sequencing function under multi-task conditions. Specifically, a task execution register with N storage bits, such as TSK_REG, is set in the user program to identify the priority of each task. Such as Figure 7 As shown, the task execution register TSK_REG is a 16-bit single-word register, which is assigned by a free intermediate identifier in the user program. At this time, TSK_REG can set the priority for up to 16 sending tasks on the same communication connection. Among them, the priority (PRI) of the high bit BIT15...
Embodiment 3
[0032] Embodiment 3: Add a connection status judging mechanism in the user communication program, avoiding the communication processing module CP data buffer overflow that may be caused by the interruption of the communication connection between the Ethernet communication processing module CP and the communication partner, the CP module crashing or making the The moment the communication connection is restored, the network is congested. A heartbeat message is agreed on each communication connection between the user program and the communication partner. The content of the heartbeat message only includes the message header, and is sent to each other at intervals (for example, one minute or two minutes) to avoid occupying network resources. Such as Figure 9 As shown, during the execution of the user communication program, first check the return result of the heartbeat message, and when there is no error in the return result (DONE is 1, ERROR is 0, STATUS is 0000H), enter the ma...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 