2/28/2018 10:05 AM | |
Joined: 9/16/2013 Last visit: 3/12/2024 Posts: 199 Rating: (23) |
if you would like to know the position of your motor moejog is not the answer. You also need some positioning Function blocks. Looke here, maybe it helps: https://support.industry.siemens.com/cs/ae/en/view/109743270 |
3/1/2018 8:13 AM | |
Joined: 10/11/2006 Last visit: 4/18/2024 Posts: 5819 Rating: (787)
|
You can read the position via direct access to the Technology Object (TO). To see which variables are available in the TO, you should open the Configuration of the TO, click on the tab "Parameter view" on the top right of the editor and select "Data structure" in the Drop down on the top left. You can see the fields marked in the screenshot. All these variables can directly be read in the PLC code in every programming language. To read the positon setpoint you have to acces <TO_Name>.position, the actual position read from the drive you can access via <TO_Name>.ActualPosition. In SCL the read of the position of my TO "Belt_A" from the screenshot to a variable myPosition would work this code line: #myPosition := "Belt_A".Position; What "Gordon Shumway" wrote is not correct. If you have a positoning or synchronous axis, all commands work based on the position. Some PLCOpen commands like MC_MoveJog have the input "positionControlled" to switch to velocity controlled where the position setpoint is not taken into account. Position controlled mode for some commands even work if the axis is not homed.
|
With best regards, |
|
This contribution was helpful to1 thankful Users |
3/1/2018 9:29 AM | |
Posts: 137 Rating: (0) |
|
Last edited by: machine00 at: 3/1/2018 9:38:28 AM |
|