FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
05-14-2024 09:07 AM
i would like to set a new "logical position" to the axe without actually moving it, i have tried from nodered to use both the data layer function set-pos-abs with :msg.payload = {
Solved! Go to Solution.
05-14-2024 01:03 PM - edited 05-14-2024 01:05 PM
Assuming you have a virtual axis (i.e. an axis to which you have not assigned an axis profile), you can use command ctrl-based-homing to affect an immediate position change. For example, use the msg.payload below to set the axis position to 180 units. Axis power required.
{
"type": "object",
"value": {
"homingParam": {
"newRefPos": 180,
"travelDisLim": 0,
"homingDir": "+",
"refType": "STOPPED_POS",
"dynForward": {
"vel": 1,
"acc": 1,
"dec": 1,
"jrkAcc": 0,
"jrkDec": 0
},
"dynBackward": {
"vel": 1,
"acc": 1,
"dec": 1,
"jrkAcc": 0,
"jrkDec": 0
},
"refMode": "SET_POS_DEVICE"
}
}
}
Sample Node-RED flow attached. ctrlX CORE 2.4.x.