Description
The "BM_FindNotchPosFARS" function carries out a notch position search (parameter 127.008.0.0) with the „fixed current feed angle and rotating shaft“; the axis must be freely movable; after measuring successfully the redetermined notch position is displayed.
The redetermined value already is valid in the RAM controller; a takeover into the controller flash can be made with the BM_DataSetHandling class.
Further
information referring to the notch position search is to be found in the “Parameter
manual of the basic unit bmaXX 5000” chapter 3.9.8
Parameter input |
Data type |
Description |
Execute |
BOOL |
Edge-sensitive version |
CurrentRise |
REAL |
Current rise [A/s] |
CurrentDrop |
REAL |
Current drop [A/s] |
TimeConstCurrent |
REAL |
Continuous current [s] |
CurrentRef |
REAL |
Current set value notch position search[%] |
Parameter Ausgang |
Datentyp |
Beschreibung |
Done |
BOOL |
Notch position search successful. |
Moving |
BOOL |
Notch position search is running. |
Busy |
BOOL |
Parameter Read/write active. |
CommandAborted |
BOOL |
Abort by another motion control command, BM_Stop or error stop. |
Error |
BOOL |
Parameter Read/write error; Error ID is valid |
ErrorID |
DWORD |
Communication Error ID Siemens error list |
Parameter input and output |
Data type |
Description |
Axis |
UDT |
BM Motion Control Axis Variable |
Description
Before activating the command "BM_FindNotchPosFARS" "BM_Power" must be switched off and the axis must be able to move freely.
The command "Execute = 1" switches on the Axis notch position search. By an edge-sensitive execution all of the input values are taken over and the command is started at the axis. A new command switching requires a change from FALSE to TRUE at the input "Execute" whereby this change can be carried out at the executing time of the command.
Movement command:
The edge-sensitive execution in switched-off BM_Power state. The execution of abort is aborted with BM_Stop, missing operational readiness or Errorstop. In the result message, only one of the output bits Done, Busy, CommandAborted is active
Edge-sensitive execution:
In order to carry out the command the Execute input can be TRUE during one cycle. Then the command is processed. The result is Done = 1 after the successful notch position search, the output parameter Busy, the Command Aborted Error and the Error Id are reset, if the input Execute = 0 (see diagram 1)
Diagram of an edge-sensitive execution:
Diagram 1:
State
control by BM_ReadStatus:
Off state: Standstill.
After state: -
Recommended task: OB1.
Note:
"BM_Power" and other function block must be switched off and the axis must be freely movable.
A command from "BM_FindNotchPosFARS" can not be activated before a command from another function block has been not successfully executed.
If an error occurs during the command execution, the error must be reset with “BM_Reset”. Function block command will be executed successfully at "BM" .AXIS [x] .DRIVE.BM_AXIS_STATUS.ParmRW_Active = 0.
Input Execute:
TRUE: Edge-sensitive execution, the input parameters and the start notch position search are taken over.
FALSE: No execution or resetting of the FC outputs of Error & Error ID.
Input CurrentRise:
Current rise in the A/s unit.
Minimum: 0.001 [A/s], maximum: 100.0 [A/s]
Default: 1.0 [A/s], if CurrentRise =0.0
Input CurrentDrop:
Current drop in the A/s unit.
Minimum: 0.001 [A/s], maximum: 100.0 [A/s]
Default: 5.0 [A/s], if CurrentDrop =0.0
Input TimeConstCurrent:
The parameter sets the time which is at least required of the constant current phase during notch position search.
Minimum: 0.01 [s] = 0.0[s], maximum: 10.0 [s]
Default: 1.0 [s], if TimeConstCurrent =0.0
Input CurrentRef:
Current of the notch position search. Standardization: 100% comply with the motor nominal current.
Minimum: 0.01 [%] = 0.0[%], maximum: 100.0 [%]
Default: 50.0 [%], if parameter CurrentRef=0.0
Output Done:
TRUE: Notch position search is executed. Drive state changes from Enable operation to Ready-to-switch-on.
FALSE = Not activated.
Output Moving:
TRUE: Notch position search is running.
FALSE: not activated.
Output Busy:
TRUE:
The service communication of the parameter Read/write active.
FALSE: Not activated.
Output CommandAborted:
TRUE: Abort due to another motion control command, BM_Stop command, error stop or a missing operating availability to BM_Power.
FALSE: Not activated.
Output Error:
TRUE: An error at the service communication of the parameter Read/write is available. Information to error ID is valid and error information, refer to S7 in the manual.
FALSE: No error activated.
Output ErrorID:
The information of service communication error (detailed information refer to S7 in the manual)
Input and output Axis:
Symbolic BM Motion Control axis variable of an UDT type.
While programming the data module template DDB5 (symbolic "BM") it is to be written with the following symbol text: "BM".AXIS[x] (x is drive axis number).