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 ?
- 17 Forums
- 265 Topics
- 932 Posts
- 1 Online
- 688 Members