• 沒有找到結果。

Timing Chart (EtherCAT)

● Control command execution

(1) The command code and command parameter are set from the Controller.

(2) The EXE input signal state is changed from OFF to ON. Execution is instructed to the displacement sensor.

(3) When the displacement sensor receives the execution instruction, the READY output signal turns OFF and the command is executed.

(4) When the displacement sensor completes execution, the command code, response code and response data are set.

(5) The FLG output signal turns ON.

(6) The Controller makes sure that the FLG output signal has turned ON, and then returns the EXE input signal to OFF.

(7) The displacement sensor makes sure that the EXE input signal has turned OFF, and the FLG and READY output signals automatically turn OFF and ON, respectively.

Command Code

EtherCAT Connection

190 ZW User's Manual

● Measurement synchronization

(1) The Controller changes the state of the SYNC input signal from OFF to ON.

(2) When receives the SYNC input signal, the displacement sensor turns off the READY output signal, and starts the measurement synchronization processing.

(3) All displacement sensors that have received the SYNC input signal are synchronized with the end of exposure and measurement is resumed.

(4) After the end of synchronization, the displacement sensor changes the state of the SYNCFLG output signal from OFF to ON.

(5) The Controller makes sure that the SYNCFLG output signal has turned ON, and then changes the state of the SYNC input signal from ON to OFF.

(6) The displacement sensor makes sure that the SYNC input signal has turned OFF, and the SYNCFLG and READY output signals automatically turn OFF and ON, respectively.

• Be particularly careful of the following points when synchronizing measurement.

- When the exposure time control mode is automatic: Set the exposure time upper limit the same for all displacement sensors for which measurement is to be synchronized.

- When the exposure time control mode is fixed: Set the exposure time the same for all displacement sensors for which measurement is to be synchronized.

• By way of reference, the time from acceptance of the SYNC input up to when SYNCFLG output turns ON becomes

"currently set exposure time upper limit + 720 s".

• After multiple displacement sensors are synchronized, they gradually go out of sync. At most 1 s of difference generates EtherCAT communication between the slave. Input SYNC input signals periodically. The maximum deviation time can be calculated with the following formula.

Difference in EtherCAT + Exposure time (maximum) × 2 × Average number of repetitions × 24 ppm Example: Exposure time (maximum): 1 ms, average number of repetitions: 64

1 s + 1 ms × 2 × 64 × 24/1000000 = 4.072 s The maximum deviation time will be 4.072 s.

• The displacement sensor starts resetting the filtering process after receiving a SYNC signal. If the average number is set to 128 times, please note that the measurement value will not be finalized until the measurement is done 128 times. You can check whether the measurement value is finalized if either of HIGH, PASS or LOW signal turns on in the response area.

Displacement

EtherCAT Connection

ZW User's Manual 191

6

Communications with External Devices

● Execution of hold (peak/bottom/peak to peak/average) and reset of hold value

(1) The Controller changes the state of the TIMINGx input signal from OFF to ON. At the rising edge of the TIMINGx input signal, the displacement sensor starts sampling.

(2) At start of sampling, the displacement sensor changes the state of the HOLDSTATx output signal from OFF to ON.

(3) The Controller turns the state of the TIMINGx input signal from ON to OFF. At the falling edge of the TIMINGx input signal, the displacement sensor end sampling.

(4) At end of sampling, the displacement sensor changes the state of the HOLDSTATx output signal from ON to OFF.

(5) When the hold value is applied, the displacement sensor changes the state of the GATEx output signal from OFF to ON. The Controller makes sure that the GATEx output signal has turned ON, and then captures the output data.

(6) The displacement sensor turns OFF after the GATE signal ON duration has elapsed since the GATEx output signal turned ON.

(7) The Controller changes the state of the RESETx input signal from OFF to ON. At the rising edge of the RESETx input signal, the displacement sensor starts the measured value reset period.

(8) At the start of the measured value reset period, the displacement sensor changes the state of the RESETSTATx output signal from OFF to ON.

(9) At completion of the measured value reset, the displacement sensor changes the state of the GATEx output signal from OFF to ON.

(10) The displacement sensor turns OFF after the GATE signal ON duration has elapsed since the GATEx output signal turned ON.

(11) The Controller changes the state of the RESETx input signal from ON to OFF. At the falling edge of the RESETx input signal, the displacement sensor end the measured value reset period.

(12) At the end of the measured value reset period, the displacement sensor changes the state of the RESETSTATx output signal from ON to OFF.

When hold is being performed by multiple tasks, HOLDSTATx output signal turns ON when even one task enters the sampling period and GATEx output signal turns ON when the measured value is applied.

ON

EtherCAT Connection

192 ZW User's Manual

● Execution of hold (auto peak, auto bottom, auto peak to peak) and reset of hold value

(1) When the peak value is applied, the displacement sensor changes the state of the GATEx output signal from OFF to ON. The Controller makes sure that the GATEx output signal has turned ON, and then captures the output data.

(2) The displacement sensor turns OFF after the GATE signal ON duration has elapsed since the GATEx output signal turned ON.

(3) The Controller turns the state of the RESETx input signal from OFF to ON. At the rising edge of the RESETx input signal, the displacement sensor starts the measured value reset period.

(4) At the start of the measured value reset period, the displacement sensor changes the state of the HOLDSTATx output signal from ON to OFF and the RESETSTATx from OFF to ON.

(5) At completion of the measured value reset, the displacement sensor changes the state of the GATEx output signal from OFF to ON.

(6) The displacement sensor turns OFF after the GATE signal ON duration has elapsed since the GATEx output signal turned ON.

(7) The Controller changes the state of the RESETx input signal from ON to OFF. At the falling edge of the RESETx input signal, the displacement sensor end the measured value reset period.

(8) At the end of the measured value reset period, the displacement sensor changes the state of the HOLDSTATx output signal from OFF to ON and the RESETSTATx from ON to OFF.

When hold is being performed by multiple tasks, HOLDSTATx output signal turns ON when even one task enters the sampling period and GATEx output signal turns ON when the measured value is applied.

ON

EtherCAT Connection

ZW User's Manual 193

6

Communications with External Devices

● Execution of hold (sample) and reset of hold value

(1) The Controller changes the state of the TIMINGx input signal from OFF to ON. At the rising edge of the TIMINGx input signal, the displacement sensor starts sampling.

(2) At start of sampling, the displacement sensor changes the state of the HOLDSTATx output signal from OFF to ON.

(3) When the hold value is applied, the displacement sensor changes the state of the GATEx output signal from OFF to ON. The Controller makes sure that the GATEx output signal has turned ON, and then captures the output data.

(4) The displacement sensor turns OFF after the GATE signal ON duration has elapsed since the GATEx output signal turned ON.

(5) The Controller turns the state of the TIMINGx input signal from ON to OFF. At the falling edge of the TIMINGx input signal, the displacement sensor end sampling.

(6) At end of sampling, the displacement sensor changes the state of the HOLDSTATx output signal from ON to OFF.

(7) The Controller changes the state of the RESETx input signal from OFF to ON. At the rising edge of the RESETx input signal, the displacement sensor starts the measured value reset period.

(8) At the start of the measured value reset period, the displacement sensor changes the state of the RESETSTATx output signal from OFF to ON.

(9) At completion of the measured value reset, the displacement sensor changes the state of the GATEx output signal from OFF to ON.

(10) The displacement sensor turns OFF after the GATE signal ON duration has elapsed since the GATEx output signal turned ON.

(11) The Controller changes the state of the RESETx input signal from ON to OFF. At the falling edge of the RESETx input signal, the displacement sensor end the measured value reset period.

(12) At the end of the measured value reset period, the displacement sensor changes the state of the RESETSTATx output signal from ON to OFF.

When hold is being performed by multiple tasks, HOLDSTATx output signal turns ON when even one task enters the sampling period and GATEx output signal turns ON when the measured value is applied.

ON

EtherCAT Connection

194 ZW User's Manual

● Measurement LED out

(1) The Controller changes the state of the LIGHTOFFx input signal from OFF to ON. At the rising edge of the LIGHTOFFx input signal, the displacement sensor turns the measurement LED out.

(2) At measurement LED out, the displacement sensor changes the state of the LIGHTx output signal from ON to OFF.

(3) The Controller turns the state of the LIGHTOFFx input signal from ON to OFF. At the falling edge of the LIGHTOFFx input signal, the displacement sensor lights the measurement LED.

(4) At measurement LED on, the displacement sensor returns the LIGHTx output signal to ON.

● Zero reset execution/zero reset cancel

(1) The Controller changes the state of the ZEROx_T1 to 4 input signals from OFF to ON. The displacement sensor makes sure that ZEROx_T1 to 4 input signals have turned ON, and then executes the zero reset.

(2) At execution of zero reset, the displacement sensor changes the state of the ZEROSTATx_T1 to 4 output signal from OFF to ON.

(3) The Controller makes sure that the ZEROSTATx_T1 to 4 output signals have turned ON, and then returns the ZEROx_T1 to 4 input signals to OFF.

(4) The Controller changes the state of the ZEROCLRx_T1 to 4 input signals from OFF to ON. The

displacement sensor makes sure that ZEROCLRx_T1 to 4 input signals have turned ON, and then executes the zero reset cancel.

(5) At the zero reset cancel, the displacement sensor returns the ZEROSTATx_T1 to 4 output signals to ON.

(6) The Controller makes sure that the ZEROSTATx_T1 to 4 output signals have turned OFF, and then returns the ZEROCLRx_T1 to 4 input signals to OFF.

ON

EtherCAT Connection

ZW User's Manual 195

6

Communications with External Devices

相關文件