Figure 1
An example of the difference between synchronous and asynchronous communication. Client 1 (GUI) sends a message with a command to change the state of the motor from the current P1 position to P2 at the t0 time. After receiving the message, the motor begins to execute the command and changes its states. The motor moves through intermediate positions P1′, P1′′, P1′′′ to reach the P2 position. Via synchronous communication the Client 1 (GUI) receives response P2 at the t4 time. Whereas via asynchronous communication Client 2, Client 3 (these may be another GUI, other motors or systems), which want to receive information about intermediate motor's states, receive these intermediate positions simultaneously: P1′ at t1 time, P1′′ at t2, P1′′′ at t3 and P2 at t4 time. |