最近我们公司新进了机器,S120中看老外用脚本,真是看不懂,下面的请大侠指教下,谁有脚本的说明书,分享下呀,不胜感激。
' ****************************************************************************************
' * Script for Sinamics S120 / CU320 with CBE20 *
' * Device specific script *
' * *
' * Copyright(c) Br點kner Maschinenbau GmbH, Germany *
' * All rights reserved *
' * *
' * *
' * Changes: *
' * *
' ****************************************************************************************
' ****************************************************************************************
' enter parameters for script execution here
' ****************************************************************************************
CU_String = "cu300h3sd21a100" ' control Unit
DV_String = "cu300h3sd21a100" ' device string
StdScript = "global\S120_CU320.vbs" ' standard script
DriveCfg(1) = "SpdServo" ' SpdServo / SpdVector / PosServo / PosVector / PosLinear / DcUnit / NotUsed
DriveCfg(2) = "SpdServo"
DriveCfg(3) = "SpdServo"
DriveCfg(4) = "NotUsed"
DriveName(1) = "StrCasDrvChr"
DriveName(2) = "StrMdoDrvPrh1"
DriveName(3) = "StrMdoDrvPrh2"
DriveName(4) = "NotUsed"
' ****************************************************************************************
APP.LogFile = ScriptPath & "log\" & DV_String & "\" & CU_String & ".txt"
APP.LogActive = True
Set oCU = PROJ.Devices(DV_String).SubObjects(CU_String)
ScriptVersionDev = 15 ' Version 1.5.X
SubCuScript