Join us today!

Notifications
Clear all

twincat nc axis homed status value from statusword

3 Posts
3 Users
0 Reactions
139 Views
Posts: 2
Topic starter
(@gerard)
Active Member
Joined: 3 months ago

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?

Reply
Topic Tags
2 Replies
Posts: 30
 Alex
(@alex)
Eminent Member
Joined: 2 years ago

Hello,
What is your network connecting your motor and the PLC ?

Reply
Posts: 1
(@advan)
New Member
Joined: 1 month ago

* 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?

Reply
Share: