Position counter

This function counts the number of motor revolutions. The current counter content (actual position) can be output as process data value via network to implement a simple position control in a higher-level Controller.
 
Preconditions
–
Connector X3.2 must be configured as encoder input. Configure function assignment 
 
–
The encoder input must be configured according to the connected encoder. Configure encoder input 
 
–
As an alternative, the number of motor revolutions from the motor model can be reconstructed. For this purpose, the motor control type "Sensorless control for synchronous motors (SLSM-PSM) [8]" must be selected and set in 0x2C00.  
 
–
The position control must be implemented in the controller.
 
 
Details
The signal source for the position counter is selected in 0x2C49:001. The position counter can count forwards and backwards. The current counter content (actual position) is displayed in 0x2C49:003. After the maximum or minimum value has been reached, an overflow takes place.
Reset position counter:
–
The position counter is reset when the supply voltage is switched on.
 
–
The position counter can be reset manually via the "Set position counter" 0x2631:054 function or the NetWordIN1 0x4008:001 data word. For a reset via NetWordIN1, the "Position counter reset [54]" function must be assigned to a bit of the data word. Depending on the selection in 0x2C49:002, the reset can be made either edge-controlled or status-controlled.
 
 
Parameter
Address
Name / setting range / [default setting]
Information
0x2631:054
Function list: Set position counter
–
Further possible settings: Trigger list 
 
Assignment of a trigger for the "Set position counter" function.
Trigger = FALSE-TRUE edge: Reset position counter manually.
Trigger = FALSE: no action.
Notes:
–
In 0x2C49:002 it can be selected whether the reset is to be effected edge-controlled (default setting) or status-controlled.
 
0
Not connected
No trigger assigned (trigger is constantly FALSE).
0x2C49:001
Position counter: Signal source
Selection of the signal source for the position counter.
0
Disabled
Position counter is deactivated.
1
Digital inputs DI3/DI4
The motor revolutions are counted that are provided by an HTL encoder connected to the digital inputs DI3/DI4.
–
A motor revolution always equals the increments/revolution set in 0x2C42:001 for the HTL encoder. This applies to all types of HTL encoders that can be set in 0x2630:011: "Encoder [0]", "Low resolution HTL encoder [15]”, and “Pulse-In... [16 ... 19]".
 
–
The counter reading is also updated when the power stage is switched off.
 
–
If an HTL encoder is used without detecting the direction of rotation, it is only counted forwards.
 
2
External position
5
Internal motor model
The motor revolutions reconstructed from the internal motor model of the sensorless control are counted.
–
The counter content will not be updated if the power section is switched off.
 
–
After restarting the power section, the counting of the last counter content is continued.
 
0x2C49:002
Position counter: Set position
Selection if the manual reset of the position counter is to be effected edge-controlled or status-controlled.
0
By rising edge
1
By signal state TRUE
0x2C49:003
Position counter: Actual position
–
Read only
 
Mappable parameter for providing the current counter content (actual position) via network.
Scaling (applies to every measuring method or encoder resolution):
–
Upper 16 bits: Counted revolutions (0 ... 65535, overflow possible)
 
–
Lower 16 bits: Current position within the revolution (0 ... 65535)
 
0x2C49:004
Position counter: External position
–
Read only
 
0x2C49:005
Position counter: Initial position
0x00000000 ... [0x00000000] ... 0xFFFFFFFF