Download downloaded
Transcript
GSK980TD Turning Machine CNC System signal of the second lags the first one and its max. lag time is runtime of one grade two program. Book 1 Programming C:Difference of input signal states of the first and the second: For the same input signal, its states are different in the first and the second when PLC reads input signals, because the first reads input memories at NC side and machine side but the second reads the synchronous input memory at NC side and ones at machine side. The input signal of the second lags behind that of the first and its lag time is 8nms which should be noted. Example: End of grade one program Fraction1: 0003~0005 Fraction1: 0006~0007 End of grade two program When the lag time is the first 8ms, X0001.0=1 and the system executes the first Y0001.0=1. When the system starts to execute the second, X0001.0=1 inputs to the synchronous input memory and starts to execute the first block of the fractional second. When the lag time is the second 8ms, X0001.0=0 and the system executes the first one Y0001.0=1. And then the system executes the second block of the fractional second but X0001.0 =1 which state is still the previous synchronous input memory and Y0002.3=1 after execution. 1.4.2 Processing Input Signal A:Signal to NC PLC transmits output signal to the output memory at NC side every 8ms, and then directly outputs to NC. B:Signal to machine PLC transmits output signal to the output memory at machine side, and then directly outputs to memory every 2ms. Ⅰ-6