background image

 

Function Blocks PSx-3__-PN 

 
 
 
 

15 

 

  Manual run to larger values, finishing at the negative range limit. 

 

Additionally the input “Release” has to be on resp. set. 

 

 

CAUTION! 

When deasserting the input “ManualRunToSmallerValues”, additionally the 
release input has to be deasserted. Otherwise the drive will move to the 
target position (FB input “Position”). 

 

Active 
Run command or run is active 

  Type: BOOL 

  Direction: OUTPUT 

This output is asserted, if: 

  the release bit is set from 0 to 1 (rising edge) 

  the release is already present and the target position is changing 

 

the bit “drive is running” in the status word of the drive is set (e.g. when the drive is 

readjusting its position) 

This output is deasserted, if: 

 

at the end of a run the bit “drive is running” in the status word of the drive is no longer 

set 

  a communication error occurs 

 

InPosition 
Target position reached 

  Type: BOOL 

  Direction: OUTPUT 

This output is a copy of the status bit “target position reached”. If a communication error 
occurs, it will be deasserted. 

 

Actual position 
Actual value of the position 

  Type: DINT 

  Direction: OUTPUT 

This value is a copy of the actual position. If a communication error occurs, the value will be 
set to 0. 

 

Error 
Error while executing the FB or error in drive 

  Type: BOOL 

  Direction: OUTPUT 

The error bit also might be set during a move of the drive (e.g. drag error). 

 

ErrorID 
Error code 

  Type: WORD 

  Direction: OUTPUT 

The error bit also might be set during a move of the drive (e.g. drag error). In case of no error, 
the value is set to 0. 
 
 

Summary of Contents for PS-3 Series

Page 1: ...ROFINET interface halstrup walcher GmbH Stegener Stra e 10 D 79199 Kirchzarten Phone 49 0 76 61 39 63 0 Fax 49 0 76 61 39 63 99 E Mail info halstrup walcher de Internet www halstrup walcher de Documen...

Page 2: ...ocks 8 5 1 Opening the library 8 5 2 Copying of function blocks into the user project 9 5 3 Generating instance data blocks 10 5 4 Generating global data 10 5 5 Commonalities of all function blocks 10...

Page 3: ...he instruction manual and in particular the safety precautions contained therein must be followed carefully Contact the manufacturer if you do not understand any part of this instruction manual The ma...

Page 4: ...ury up to and including death if the corresponding instructions are not followed CAUTION This warns you of a potential hazard that could lead to significant property damage if corresponding instructio...

Page 5: ...al state Private STRUCT Function blocks Data structure for internal use Only in the versions for the TIA Portal DB_LIB_IN OUT DT_LIB_IN OUT Function blocks Data structure for internal use In the versi...

Page 6: ...unction blocks Each variable is present two times so two positioning systems may be controlled Example In case the data component is taken over into the project it is advisable to delete the variables...

Page 7: ...er communication timeout 1000 ms 16 xx2x Parameter invalid parameter number 16 xx3x Parameter value is read only 16 xx4x Parameter lower or upper limit exceeded 16 xx5x Parameter faulty sub index 16 x...

Page 8: ...library and copying the desired function blocks The following librarys are available halstrup walcher for Step 7 Classic V5 5 library_PSx3xxPN_TIA13SP1_300 for CPU S7 300 im TIA Portal V13 SP1 librar...

Page 9: ...of the library independently of the actually used function blocks MC_ and the number of drives in any case have to copied into the project When using the library version for Step 7 Classic V5 5 Copy...

Page 10: ...over see chapter 3 5 3 Generating instance data blocks Per axis and per desired function block an instance data block has be generated 5 4 Generating global data Per axis one global variable of the ty...

Page 11: ...ing a run In case the input Execute of MC_Parametrization or MC_ PosParametrization is set the function block MC_Move cannot be activated setting of Release results in error 16 1100 Always only one of...

Page 12: ...type FB111 MC_Error e g DB1111 symbolic name PSE_1_FB111 DB1112 symbolic name PSE_2_FB111 DB1113 symbolic name PSE_3_FB111 three instance data blocks of the type FB112 MC_ReadParameter e g DB1121 sym...

Page 13: ...rogram that is called cyclically e g in the OB1 and immediately be linked with their respective instance data blocks To the input Drive we connect the variable of the type DRIVE_DATA which is provided...

Page 14: ...t position is sent this target position is approached immediately If the release bit is still set after the end of a run and the target position is changed the drive immediately approaches to that pos...

Page 15: ...ts position This output is deasserted if at the end of a run the bit drive is running in the status word of the drive is no longer set a communication error occurs InPosition Target position reached T...

Page 16: ...x1xx FB internal error 16 x2xx Invalid PD input address 16 x3xx Invalid PD output address 16 x4xx Error while reading PD 16 x5xx Error while writing PD 16 xxx2 Under or overvoltage motor supply 16 xx...

Page 17: ...n Step 7 Classic V5 5 View in Step 7 TIA V13 V14 Enable The outputs Error ErrorID and ErrorDescription permanently are updated by the drive as long as Enable is set If Enable is deasserted these outpu...

Page 18: ...r overvoltage motor supply 16 xxx4 Temperature exceeded 16 xxx5 Absolute measuring system error 16 xxx8 Incorrect target value 16 xxx9 Under or overvoltage during run 16 xxx6 Block or overcurrent erro...

Page 19: ...ecified default value ParameterNumber Parameter number of the parameter to be read Type INT Initial value 0 Direction INPUT SubIndex Array subindex of the parameter Type INT Initial value 0 Direction...

Page 20: ...4 Type WORD Default value 0 Direction OUTPUT Drive errors are not considered when reading a parameter Value Actual value of the parameter which has been read Type DINT Default value 0 Direction OUTPU...

Page 21: ...irection INPUT Value Value to be written to the parameter Type DINT Initial value 0 Direction INPUT Active Bit is set as long as the writing process is active Type BOOL Default value FALSE Direction O...

Page 22: ...Function Blocks PSx 3__ PN 22 5 12 MC_Parametrization FB114 With this FB all parameters of the drive can be written...

Page 23: ...Function Blocks PSx 3__ PN 23...

Page 24: ...Function Blocks PSx 3__ PN 24 View in Step 7 Classic V5 5...

Page 25: ...Function Blocks PSx 3__ PN 25...

Page 26: ...Function Blocks PSx 3__ PN 26...

Page 27: ...he FB Thus the values of each parameter are set to the delivery state initially without saving Optionally at the end additionally the written values might be saved permanently To do this the input Sav...

Page 28: ...extracted of the instruction manual of the PSx 3__ PN SaveSettings Saving the settings permanently Type BOOL Initial value FALSE Direction INPUT Active Bit is set as long as the parametrization proces...

Page 29: ...ation ErrorParameter Parameter number that caused the error in case of an error Type INT Default value 0 Direction OUTPUT If no error occurred this value is 0 5 13 MC_PositionParametrization FB115 Wit...

Page 30: ...Turn Actual value Par 3 SetPoint If SetPoint UpperLimit Upper mapping end Par 41 SetPoint 3 x StepsPerTurn sonst Upper mapping end Par 41 UpperLimit 3 x StepsPerTurn Upper limit Par 42 UpperLimit Lowe...

Page 31: ...Also no saving of the values is carried out if the input SaveSettings is set Execute Start of a parametrization process Type BOOL Initial value FALSE Direction INPUT Description When issuing a rising...

Page 32: ...hed successfully or an error occurred Done Bit is set as soon as the parametrization has been finished successfully Type BOOL Default value FALSE Direction OUTPUT The bit is being deasserted when star...

Reviews: