PLCopen Motion Control NOTE! In order to simplify the establishment of the I/O link, the linking of ST_TcPlcDeviceInput.sEncAdsAddr, ST_TcPlcDeviceInput.nEncAdsChannel and ST_TcPlcDeviceInput.wEncWcState can be avoided, if the actual value acquisition takes place via the same device, as usual. In this case, the function blocks for parameter communication and encoder evaluation use the corresponding variables of the drive link. iTcMc_EncoderAx2000_B110R The function block handles the evaluation of the actual values of an AX2000 servo actuator at the EtherCAT fieldbus. This assumes that the connected motor is equipped with a resolver.
If a motor is operated with an absolute encoder, iTcMc_EncoderAx2000_B110A must be set. NOTE! During manual insertion or automatic detection of a drive actuator the TwinCAT System Manager will suggest to insert an NC axis in the project and connect it with this actuator. If this actuator is to be controlled with the hydraulic system library, it is essential to decline this proposition. This I/O device belongs to a group of devices, which are used for the control value output as well as actual value determination. The required mapping definitions overlap with those of the drive function block. See also iTcMc_DriveAX2000_B110R [ } 126] . PLC Library Hydraulics 137 Version:
1.4 I/O variable Interface.Variable Use Position actual value ST TcPlcDeviceInput.ActualPos[0. _ .1] Determines the actual position. Status word ST TcPlcDeviceInput.uiStatus _ Device status, encoder emulation. Control word ST TcPlcDeviceOutput.uiDriveCtrl _ Device control. Velocity demand value ST TcPlcDeviceOutput.NominalVe _ lo Output of the velocity control value. WcState (see note) ST TcPlcDeviceInput.wEncWcStat _ e Connection monitoring for actual value acquisition. WcState ST TcPlcDeviceInput.wDriveWcSt _ ate Connection monitoring for the drive.
InfoData.State ST TcPlcDeviceInput.uiDriveBoxSt _ ate Monitoring of online status InfoData.AdsAddr (see note) ST TcPlcDeviceInput.sEncAdsAdd _ r Parameter communication. InfoData.AdsAddr ST TcPlcDeviceInput.sDrvAdsAdd _ r Control of real-time status, parameter communication. Chn0 (see note) ST TcPlcDeviceInput.nEncAdsCha _ nnel Parameter communication. Chn0 ST TcPlcDeviceInput.nDrvAdsCha _ nnel Control of real-time status, parameter communication. Output (on a DO terminal) ST TcPlcDeviceOutput.PowerOn _ Optional control of the mains contactor. A digital output terminal is required for this purpose.
Input (on a DI terminal) ST TcPlcDeviceInput.PowerOk _ Optional evaluation of the mains contactor. A digital input terminal is required for this purpose.