ACOPOS P3 end switch

Hi,

At the moment I am commissioning the B&R system and ACOPOS P3 for axis control.

In my project I am using ACP10, and this library takes me the block MC_BR_SetHardwareInputs (end switch control). But it is don’t working.

All signals are correct, in my structure gGantryAxis I have correct edit signals of end switch, but in my structure gAxisX (for example, for standalone axes) I don’t see this signal. gAxis is a variable of ACP10AXIS_typ.

My ideas is absent. Can we help me?

Regarding,

Anton Paramonov

You have to add the ncFORCE option to the Init parameter Table of the Acopos:

In this case the reference and trigger 1 switch can be defined by the MC_BR_SetHardwareInputs.

Hi,

I am done it. But it is still not working

Maybe do you have any ideas?

Now I have an error “Both limit switches is closed”. I am inverse digital inputs in code. Maybe it is help me.

When forcing (+ncFORCE) is activated for an input the active level (ncACTIVE_HI/ncACTIVE_LO) is ignored.

The function block MC_BR_SetHardwareInputs sets the logical state of the input, e.g. “.PosHWSwitch” = TRUE … switch activated/closed.

Yes, I understood it, but how can I do it? My end switches still not working.

I understand which function to provide block MC_BR_SetHardwareInputs, but my axes don’t stop in test mode. I chose the “Parallel mode” for use code data of end switch for stop my axis.