Join us today!
twincat nc axis homed status value from statusword
Hi all,
We're trying to obtain the axis reference signal from a drive. We're using a non-Beckhoff drive (Schneider) with Beckhoff components. According to the Schneider manual, the reference information for the drive is located in the 16th bit of the status word, and we can view this bit's status under the PDO objects in the device tree.
The question is, how can we access that information? We’ve tried using MC_ReadStatus
and checking the AxisRef.Status.Homed
value, but it seems that this information isn’t available in those variables.
Is there a way to access the 16th bit of the status word in PLC logic using function blocks (FBs)? Or do we need to map the drive's status word to a PLC variable? Currently, it’s linked to the NC drive nstatus1
and nstatus2
values. Can we still link this variable to a PLC variable?
What is the best method to retrieve individual bit information from the status word?
Hello,
What is your network connecting your motor and the PLC ?
* yes , you can read the status via ads , Note you can find the ads address info in system manager variable
* Link to different multiple destination (NC & PLC & ...) is also possible , you need to press "Ctrl" while link
AxisRef.Status.Homed flag is related to Reference System setting(In Axis.Encoder)
> But I thnk the best is "not" use drive home reference function , using NC reference is more unify for all drives , You just need to know how to set up
What kind of feedback do you use? And how it behave numerically on the bus?
- 17 Forums
- 267 Topics
- 924 Posts
- 1 Online
- 736 Members