When using the analog input to set the S registers (S13,S14), the calculation is as follows: Sx = Analog Input * (K40 *5/6) *1000 / (pulse factor * speed factor) /1179 Pulse factor is the maximum resolution of the motor divided by the current set resolution. For example, by default the motor resolution is set to 1000 (see K37). This means that the pulse factor will be 50000/1000 = 50. Speed factor is set in K37 and is either 100, 10, or 1. By default the speed factor is 100. For example, if the analog is set to the maximum value of 1024, and k40 is programmed as 200: Sx = 1024*(200*5/6) *1000 / (50 * 100) / 1179 Sx = 28 |