Cam Profile Master/Slave Axis Position for Output

Hello,

I am using a cam profile with mappMotion.

I want to give an output from an output module connected to X2X when the Master or Slave axis reaches a certain position.

I want to do this very precisely and quickly.

Which FB do you recommend me to use?

Do you recommend SPT for speed?

Thank you.

Hello @arif.kaya ,
this function block should cover your use case:
MC_DigitalCamSwitch
It uses SPT function blocks on the drive.
The fastest outputs would be on a digital output plug-in card in the drive.

1 Like

Thanks Martin,
So if I use this for a channel on an output module connected to X2X,
how can I achieve this as quickly and accurately as possible?

This function block can only set digital outputs on drive plug-in cards directly, not on X2X modules.
You have to connect the output “Value” to the X2X IO channel.
The signal is routed from the drive to the PLC and then to the X2X module.
If that is not fast enough, a drive plug-in card can be used.
The delay time can be compensated, so there is no velocity dependent deviation, when the axis is moving at constant velocity.
“TrackOptions.OnCompensation/.OffCompensation”
The drive firmware documentation has the info how to set the compensation times:
Compensation of the switching delay

1 Like

Another possibility is the ASMcDcsPrecisionDigitalCamSwitch fub from the AsMcDcs library.
B&R Online Help
Together with X20DS4389 card very precise timing signals can be realized.
In this case the position of the axis has to be sent to the plc with fub MC_BR_ReadCyclicPosition (McAxis library)
B&R Online Help

1 Like

The output signal can also be routed directly from Acopos to a digital output card when digital output card is placed in a powerlink bus coupler (X20BC0083). As I remember correctly the digital ouput card must be defined as packed.

1 Like

Thanks for the info Martin,
I installed the ‘8EAC0130.000-1’ card in the P3 Driver but I can’t physically do it right now.
Can I try this in simulation?

Drive IO plug-in cards are not simulated, but you can set the output of the digital cam switch to a parameter ID like so:


You can see the status of your digital signal on that parameter ID (either trace it with mapp Cockpit or read it with MC_BR_CyclicProcessParID_AcpAx) and on the FB output “Value”.

When you start with tests on the HW change the “Output” parameters in the feature accordingly.

1 Like

Hi @arif.kaya, is this topic solved? please marked the reply that helped you the most. Thanks.

Hi @kovarj,
Both @Martin.Schrott and @corne.geerts gave me the right answers.
I will try both methods.
Thank you very much.

1 Like

thanks for feedback. Maybe in the future you can add here what was your final solution :slight_smile: thanks

1 Like