TwinCAT PLC Library Hydraulics - Version 1.4 — 4.4.3.1 MC_AxRtEncoder_BkPlcMc (from V3.0)

PLCopen Motion Control NOTE! The terminal supports up to five encoders. The variables InfoData.AdsAddr, InfoData.State and WcState should be distributed to all axes involved through multiple mapping. iTcMc_EncoderEL5001 The function block handles the evaluation of data from an EL5001 SSI encoder terminal. iTcMc_EncoderEL5021 The function block handles the evaluation of data from an EL5021 sin/cos encoder terminal. iTcMc_EncoderEL5032 (ab V3.0.40) The function block handles the evaluation of data from an EL5032 ENDAT encoder terminal. The EL5032 terminal provides a 32-bit or 64-bit counter, depending on its setting.

This means that the highest value that can be displayed is either 2 32 – 1 or 2 64 – 1. Multiplied with the encoder resolution, this results in the evaluable path. At 10 nm resolution results in a value of 42949 mm. This is sufficient for most applications, which is why it is usually OK to use the terminal in 32-bit mode. To do this, only the mapping to udiCount is required. Otherwise, the 64-bit mode of the terminal must be activated and the complete mapping to udiCount and S_DiReserve[1] must be configured. PLC Library Hydraulics 145 Version: 1.4 I/O variable Interface.Variable Use AI Standard Channel x.Value ST TcPlcDeviceInput.uiCount _ Read the actual position.

AI Standard Channel x.Status ST TcPlcDeviceInput.wEncDevSta _ te Evaluation of the fault signal of the encoder. InfoData.AdsAddr ST TcPlcDeviceInput.sEncAdsAdd _ r Address information for parameter communication via CoE. InfoData.State ST TcPlcDeviceInput.uiEncBoxSta _ te Connection monitoring, condition monitoring. WcState ST TcPlcDeviceInput.wEncWcStat _ e Connection monitoring. I/O variable Interface.Variable Use Value ST TcPlcDeviceInput.udiCount _ Read the actual position. Status ST TcPlcDeviceOutput.usiRegStat _ us Evaluation of the fault signal of the encoder. InfoData.AdsAddr ST TcPlcDeviceInput.sEncAdsAdd _ r Address information for parameter communication via CoE.

InfoData.State ST TcPlcDeviceInput.uiEncBoxSta _ te Connection monitoring, condition monitoring. WcState ST TcPlcDeviceInput.wEncWcStat _ e Connection monitoring. I/O variable Interface.Variable Use ENC Status.Counter value ST TcPlcDeviceInput.udiCount _ Read the actual position. ENC Status.Status ST TcPlcDeviceInput.usiRegStatu _ s Evaluation of the fault signal of the encoder. ENC Status.Latch value ST TcPlcDeviceInput.udiLatch _ For homing using the synchronous pulse of the encoder. ENC Control.Control ST TcPlcDeviceOutput.usiCtrl _ Control of the latch function. InfoData.AdsAddr ST TcPlcDeviceInput.sEncAdsAdd _ r Address information for parameter communication via CoE.

InfoData.State ST TcPlcDeviceInput.uiEncBoxSta _ te Connection monitoring, condition monitoring. WcState ST TcPlcDeviceInput.wEncWcStat _ e Connection monitoring.