Join us today!

Notifications
Clear all

twincat nc axis homed status value from statusword

2 Posts
2 Users
0 Reactions
34 Views
(@gerard)
Posts: 2
Active Member
Topic starter
 

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?

 
Posted : 25/10/2024 11:01 am
Topic Tags
 Alex
(@alex)
Posts: 30
Eminent Member
 

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

 
Posted : 28/10/2024 3:45 am
Share: