參考施耐德32伺服lxm32m profibus step7example_第1頁(yè)
參考施耐德32伺服lxm32m profibus step7example_第2頁(yè)
參考施耐德32伺服lxm32m profibus step7example_第3頁(yè)
參考施耐德32伺服lxm32m profibus step7example_第4頁(yè)
參考施耐德32伺服lxm32m profibus step7example_第5頁(yè)
已閱讀5頁(yè),還剩14頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、Lexium 32 ProfibusExample Step7Motion & Drives TrainingLexium 32 - ProfibusSummaryCentral documentHardware ConfigurationUDT1 LXM32_RefFC100 LXM32_InitFB1 LXM32_ControlFB2 LXM32_HomingFB3 LXM32_ProfilePositionFB4 LXM32_ProfileVelocityFB5 LXM32_ProfileTorqueFB6 LXM32_ElectronicGearFB7 LXM32_JogFB8 LXM

2、32_ReadParameterFB9 LXM32_WriteParameterFB10 LXM32_TouchProbeLXM32M Step7Hardware - Configuration“Drive Profile Lexium 1“LXM32 uses 26 Bytes Input data and 26 bytes Output dataLXM32M Step7 Profibus - dataThe LXM32 example uses the “Drive Profile Lexium 1”Slot 2.9 can be used for mapping optional dri

3、ve parameters depending on the application. LXM32M Step7 UDT1 LXM32_RefAll FCs/FBs need a common Axis reference data structure for each axis.This structure could be created in a global data block or in the static variables of a FB.LXM32M Step7 FC100 LXM32_InitThe function FC100 (LXM32_Init) has to b

4、e called once after PLC restart.Usually this is done in OB100.FC100 (LXM32_Init) assigns the input and output address to the LXM32_Ref data structureRestart cycle counter is increased All FBs will detect a PLC restartLXM32M Step7 FB1 LXM32_ControlInput Functions:Drive enable/disableSet QuickStopSet

5、Halt / Clear HALT / ContinueFault resetOutput Values:Drive statusActual positionActual velocityActual motor currentErrors / WarningsLXM32M Step7 FB1 LXM32_ControlFB1 is updating the values of motion status in the LXM32_Ref structure every plc cycleFB1 is updating the values of digital input status i

6、n the LXM32_Ref structure every plc cycleLXM32M Step7 FB2 LXM32_HomingRising edge on “i_xExecute” starts the reference movement.Depending on the homing method, some input parameters are not used.The homing is finished without an error when the output “q_xDone” is TRUE.Homing could be aborted by a Qu

7、ickStop (FB1 LXM32_Control). In this case the output “q_xError” will be set to TRUE.A detailed description of the homing parameters is available in the drive manual of LXM32.LXM32M Step7 FB3 LXM32_ProfilePositionRising edge on “i_xExecute”starts the movement.Rising edge on “i_xAbort”stops the moveme

8、nt.“i_inPTP_Type”:1 = Absolute movement2 = Additive movement3 = Realtive movementChanging target velocity, acceleration or deceleration values during an active movement take effect immediately.New target position / PTP_Type can be started with a new rising edge on “i_xExecute” during an active movem

9、ent. LXM32M Step7 FB4 LXM32_ProfileVelocity“i_xExecute” = TRUE starts the movement.“i_xAbort” stops the movement.Changing target velocity, acceleration or deceleration values during an active movement take effect immediately.Acceleration / Deceleration value is active if the Parameter RAMP_v_enable

10、(1622) is set to ProfileON ! This parameter has to be changed with “WriteParameter” or commissioning software.Only possible when the power stage is switched off.LXM32M Step7 FB4 LXM32_ProfileTorque“i_xExecute” = TRUE starts the movement.“i_xAbort” stops the movement.Changing target velocity or torqu

11、e slope values during an active movement take effect immediately.“di_RAMP_tq_slope” value is active if the Parameter RAMP_tq_enable (1624) is set to ProfileON ! This parameter has to be changed with “WriteParameter” or commissioning software.Only possible when the power stage is switched off.LXM32M

12、Step7 FB6 LXM32_ElectronicGear“i_xExecute” Start the operating mode.“i_xAbort” stops the movement.GEARreference (6948)1 / Position Synchronization Immediate 2 / Position Synchronization Compensated3 / Velocity SynchronizationGEARdir_enabl (9738)1=Positive direction2=Negative direction3=Both directio

13、nChanging GearNumerator, GearDenominator, Acceleration or Deceleration values during an active movement take effect immediately.Acceleration/Deceleration value is active if the mode “Velocity Synchronization” andParameter RAMP_v_enable (1624) is set to ProfileON ! LXM32M Step7 FB7 LXM32_JogForward/B

14、ackward/FastStart the operating mode.JOG_Method (10502)0=Continuous / 1=Step movement JOG_Step (10510)Distance for step movementJOG_time (10512)Wait time for step movementJOG_v_slow (10504)Velocity for slow movementJOG_v_fast (10506)Velocity for fast movementLXM32M Step7 FB8 LXM32_ReadParameterEnabl

15、eTRUE = Reading is executed cyclic as long as this input is set to true.ParameterAddressProfibus Parameter addressSee drive manual ReadValueIF the output VALID is set this output delivers the parameter value.ParameterLengthLength of the reading parameter in bytes. It is possible to call different in

16、stances of this FunctionBlock ! LXM32M Step7 FB9 LXM32_WriteParameterExecuteRising edge starts the write command onceParameterAddressProfibus Parameter addressSee drive manual ParameterLengthLength of the parameter in bytes. WriteValueParameter value to writeIt is possible to call different instances of this FunctionBlock ! LXM32M Step7 FB10 LXM32_TouchprobeExecuteRising edge starts the Touchprobe functionAbortAborts an active functionUnitChannel CAP1 or CAP2CapSourceEncoder1 or Encoder2TriggerLevelFalling or rising edgeSing

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論