TwinCAT · PLC Library Hydraulics - Version 1.4 · 267 pp.
TwinCAT PLC Library Hydraulics User & Service Manual PDF (Version 1.4)
Related manuals
Contents
Document text
Manual PLC Library Hydraulics TwinCAT Version: Date: Order No.: 1.4 2018-06-30 TS/TF5810
Table of contents
Table of contents Table of contents 1 Foreword .................................................................................................................................................... 7 1.1 Notes on the documentation........................................................................................................... 7 1.2 Safety instructions .......................................................................................................................... 8 2 Introduction to hydraulics ........................................................................................................................
9 3 General structure..................................................................................................................................... 14 3.1 The hydraulics library.................................................................................................................... 14 3.2 Structure of the documentation..................................................................................................... 15 3.3 Functions, function blocks and types (from V3.0).........................................................................
17 4 PLCopen Motion Control ........................................................................................................................ 26 4.1 Administrative ............................................................................................................................... 26 4.1.1 MC_Power_BkPlcMc (from V3.0) .................................................................................... 26 4.1.2 MC_ReadActualPosition_BkPlcMc (from V3.0) ............................................................... 28 4.1.3 MC_ReadActualTorque_BkPlcMc (from V3.0) ................................................................
29 4.1.4 MC_ReadActualVelocity_BkPlcMc (from V3.0) ............................................................... 30 4.1.5 MC_ReadAxisError_BkPlcMc (from V3.0) ....................................................................... 30 4.1.6 MC_ReadBoolParameter_BkPlcMc (from V3.0).............................................................. 31 4.1.7 MC_ReadDigitalOutput_BkPlcMc (from V3.0) ................................................................. 32 4.1.8 MC_ReadParameter_BkPlcMc (from V3.0) ..................................................................... 33 4.1.9 MC_ReadStatus_BkPlcMc (from V3.0)............................................................................
34 4.1.10 MC_Reset_BkPlcMc (from V3.0) ..................................................................................... 36 4.1.11 MC_ResetAndStop_BkPlcMc (from V3.0) ....................................................................... 36 4.1.12 MC_SetOverride_BkPlcMc (from V3.0) ........................................................................... 37 4.1.13 MC_SetPosition_BkPlcMc (from V3.0) ............................................................................ 39 4.1.14 MC_SetReferenceFlag_BkPlcMc (from V3.0) .................................................................
40 4.1.15 MC_WriteBoolParameter_BkPlcMc (from V3.0) .............................................................. 41 4.1.16 MC_WriteDigitalOutput_BkPlcMc (from V3.0) ................................................................. 42 4.1.17 MC_WriteParameter_BkPlcMc (from V3.0) ..................................................................... 43 4.2 Motion ........................................................................................................................................... 44 4.2.1 MC_CamIn_BkPlcMc (from V3.0)....................................................................................
44 4.2.2 MC_CamOut_BkPlcMc (from V3.0) ................................................................................. 45 4.2.3 MC_CamTableSelect_BkPlcMc (from V3.0).................................................................... 46 4.2.4 MC_DigitalCamSwitch_BkPlcMc (from V3.0) .................................................................. 48 4.2.5 MC_EmergencyStop_BkPlcMc (from V3.0.5).................................................................. 50 4.2.6 MC_GearIn_BkPlcMc (from V3.0)....................................................................................
51 4.2.7 MC_GearInPos_BkPlcMc (from V3.0.33) ........................................................................ 53 4.2.8 MC_GearOut_BkPlcMc (from V3.0)................................................................................. 55 4.2.9 MC_Halt_BkPlcMc (from V3.0) ........................................................................................ 56 4.2.10 MC_Home_BkPlcMc (from V3.0)..................................................................................... 57 4.2.11 MC_ImediateStop_BkPlcMc (from V3.0.5) ......................................................................
59 4.2.12 MC_MoveAbsolute_BkPlcMc (from V3.0)........................................................................ 60 4.2.13 MC_MoveJoySticked_BkPlcMc (from V3.0) .................................................................... 62 4.2.14 MC_MoveRelative_BkPlcMc (from V3.0)......................................................................... 63 4.2.15 MC_MoveVelocity_BkPlcMc (from V3.0) ......................................................................... 64 4.2.16 MC_Stop_BkPlcMc (from V3.0) .......................................................................................
66 4.3 Data types..................................................................................................................................... 67 4.3.1 Axis_Ref_BkPlcMc (from V3.0)........................................................................................ 67 4.3.2 CAMSWITCH_REF_BkPlcMc (from V3.0)....................................................................... 69 4.3.3 E_TcPlcBufferedCmdType_BkPlcMc............................................................................... 69 4.3.4 E_TcMcCurrentStep (from V3.0)......................................................................................
71 4.3.5 E_TcMcDriveType (from V3.0)......................................................................................... 72 PLC Library Hydraulics 3 Version: 1.4
Table of contents
Table of contents 4.3.6 E_TcMcEncoderType (from V3.0).................................................................................... 75 4.3.7 E_TcMCFbState (from V3.0)............................................................................................ 78 4.3.8 E_TcMcHomingType (from V3.0)..................................................................................... 79 4.3.9 E_TcMCParameter (from V3.0) ....................................................................................... 79 4.3.10 E_TcMcProfileType (from V3.0).......................................................................................
88 4.3.11 E_TcMcPressureReadingMode (from V3.0) .................................................................... 89 4.3.12 MC_BufferMode_BkPlcMc (from V3.0)............................................................................ 89 4.3.13 MC_CAM_ID_BkPlcMc (from V3.0)................................................................................. 90 4.3.14 MC_CAM_REF_BkPlcMc (from V3.0) ............................................................................. 90 4.3.15 MC_Direction_BkPlcMc (from V3.0) ................................................................................
90 4.3.16 MC_HomingMode_BkPlcMc (from V3.0) ......................................................................... 91 4.3.17 MC_StartMode_BkPlcMc (from V3.0).............................................................................. 91 4.3.18 OUTPUT_REF_BkPlcMc (from V3.0) .............................................................................. 92 4.3.19 ST_FunctionGeneratorFD_BkPlcMc (from V3.0.31)........................................................ 92 4.3.20 ST_FunctionGeneratorTB_BkPlcMc (from V3.0.31)........................................................
92 4.3.21 ST_TcMcAutoIdent (from V3.0.4) .................................................................................... 93 4.3.22 ST_TcHydAxParam (from V3.0) ...................................................................................... 93 4.3.23 ST_TcHydAxRtData (from V3.0)...................................................................................... 99 4.3.24 ST_TcMcAuxDataLabels (from V3.0) ............................................................................ 103 4.3.25 ST_TcPlcDeviceInput (from V3.0)..................................................................................
104 4.3.26 ST_TcPlcDeviceOutput (from V3.0)............................................................................... 106 4.3.27 ST_TcPlcMcLogBuffer (from V3.0) ................................................................................ 107 4.3.28 ST_TcPlcMcLogEntry (from V3.0) ................................................................................. 108 4.3.29 ST_TcPlcRegDataItem (from V3.0.7) ............................................................................ 108 4.3.30 ST_TcPlcRegDataTable (from V3.0.7) ..........................................................................
109 4.3.31 TRACK_REF_BkPlcMc (from V3.0)............................................................................... 109 4.4 System........................................................................................................................................ 109 4.4.1 Controller........................................................................................................................ 109 4.4.2 Drive............................................................................................................................... 125 4.4.3 Encoder..........................................................................................................................
135 4.4.4 FunctionGenerator ......................................................................................................... 159 4.4.5 TableFunctions............................................................................................................... 161 4.4.6 Generators ..................................................................................................................... 167 4.4.7 Runtime.......................................................................................................................... 174 4.4.8 Message logging............................................................................................................
184 4.4.9 Utilities............................................................................................................................ 187 4.5 Parameter ................................................................................................................................... 198 4.5.1 MC_AxAdsCommServer_BkPlcMc (from V3.0)............................................................. 198 4.5.2 MC_AxAdsPtrArrCommServer_BkPlcMc....................................................................... 199 4.5.3 MC_AxAdsReadDecoder_BkPlcMc (from V3.0)............................................................
200 4.5.4 MC_AxAdsWriteDecoder_BkPlcMc (from V3.0) ............................................................ 201 4.5.5 MC_AxParamAuxLabelsLoad_BkPlcMc (from V3.0)..................................................... 202 4.5.6 MC_AxParamLoad_BkPlcMc (from V3.0)...................................................................... 203 4.5.7 MC_AxParamSave_BkPlcMc (from V3.0)...................................................................... 204 4.5.8 MC_AxUtiReadCoeDriveTerm_BkPlcMc (from V3.0).................................................... 204 4.5.9 MC_AxUtiReadCoeEncTerm_BkPlcMc (from V3.0) ......................................................
206 4.5.10 MC_AxUtiReadRegDriveTerm_BkPlcMc (from V3.0).................................................... 207 4.5.11 MC_AxUtiReadRegEncTerm_BkPlcMc (from V3.0) ...................................................... 208 4.5.12 MC_AxUtiUpdateRegDriveTerm_BkPlcMc (from V3.0.7).............................................. 209 4.5.13 MC_AxUtiUpdateRegEncTerm_BkPlcMc (from V3.0.7) ................................................ 211 4.5.14 MC_AxUtiWriteCoeDriveTerm_BkPlcMc (from V3.0) .................................................... 212 4.5.15 MC_AxUtiWriteCoeEncTerm_BkPlcMc (from V3.0) ......................................................
213 4.5.16 MC_AxUtiWriteRegDriveTerm_BkPlcMc (from V3.0) .................................................... 215 4.5.17 MC_AxUtiWriteRegEncTerm_BkPlcMc (from V3.0) ...................................................... 216 5 Knowledge Base.................................................................................................................................... 218 PLC Library Hydraulics 4 Version: 1.4
Table of contents
Table of contents 5.1 FAQs (from V3.0)........................................................................................................................ 219 5.2 Global constants (from V3.0)...................................................................................................... 235 5.3 Valve........................................................................................................................................... 244 5.4 Configuration of an axis..............................................................................................................
246 5.4.1 FB_Init............................................................................................................................ 247 5.4.2 FB_Encoder ................................................................................................................... 247 5.4.3 FB_Runtime ................................................................................................................... 248 5.4.4 FB_Regler...................................................................................................................... 248 5.4.5 FB_Finish.......................................................................................................................
249 5.4.6 FB_Autoident ................................................................................................................. 250 5.4.7 FB_Drive ........................................................................................................................ 250 5.4.8 FB_AdsComServer ........................................................................................................ 250 5.4.9 FB_Logger ..................................................................................................................... 250 5.4.10 General settings.............................................................................................................
251 5.4.11 FB_Power ...................................................................................................................... 251 5.5 The PlcMcManager..................................................................................................................... 252 5.6 Sample programs (from V3.0) .................................................................................................... 255 5.7 Commissioning ...........................................................................................................................
260 5.7.1 Basic settings................................................................................................................. 260 5.7.2 Temporary zero compensation ...................................................................................... 261 5.7.3 Movement directions...................................................................................................... 261 5.7.4 Position measuring system ............................................................................................ 262 5.7.5 Characteristic curve measurement ................................................................................
262 5.7.6 Overlap........................................................................................................................... 263 5.7.7 Reference velocity/velocity ratio .................................................................................... 263 5.7.8 Referencing.................................................................................................................... 265 5.7.9 Dynamics/target approach ............................................................................................. 265 6 Appendix ................................................................................................................................................
267 6.1 Support and Service ................................................................................................................... 267 PLC Library Hydraulics 5 Version: 1.4