Download Motion Control PMC
Transcript
14 Function library primo.lib SetReferenceAcceleration PMCprimo-Command: RC (Set reference error adjustment acceleration) Function library: Referencing Description: The adjustment of a reference error results in a new setpoint position for the slave axis. PMCprimo can determine the acceleration ramp for obtaining the adjustment velocity by the aid of 2 the function block. The parameter is indicated in increments / second . The parameter is to be set at the slave axis. The value 0 means a jump of the compensation velocity. Input variables: bExecute (BOOL) usiNode (USINT) usiChannel (USINT) udiValue (UDINT) The value is written in case of a change from 0 to 1 0 resets the function block and the output variables are set to False or 0 The node number in the linked system, 0 if only unit or Host The axis number from 1 to n (depending on the system) The value from 0 to 2.000.000 increments/s² Output variables: bDone (BOOL) Value has been written (True) or it is still under operation (False) bError (BOOL) True: an error has occurred; False: no error iErrorNumber (INT) Indicates the exact error cause (see GetError page 203) Connected functions: SetReferenceCorrectionVelocity Examples: Example in IL: Declaration: INST: SetReferenceAcceleration; bVarBOOL1: BOOL; bVarBOOL2: BOOL; Example in IL: CAL LD ST INST(bExecute := bVarBOOL1,usiNode := 0, usiChannel := 1, udiValue := 500000) INST.bDone bVarBOOL2 Example in ST: INST(bExecute := bVarBOOL1, usiNode := 0, usiChannel := 1, udiValue := 500000); bVarBOOL2:=Inst.bDone; Example in FBD: User Manual PMCprimo SoftPLC Page 257