I use Beckhoff, but we are converting a machine from Beckhoff to Siemens.
I'm trying to use SCL, because all our code is ST in Beckhoff.
How the he(double hockey sticks) do I get the outputs of an FB in SCL?
I've done this and it works
Reduce_MoveAbsolute(Axis := "ReduceAxisChar_DB".Axis,
Execute := TRUE,
Position := "PForm_DB".Step.ReducePosition,
Velocity := "PForm_DB".Step.ReduceVelocity,
Acceleration :=1000,
Deceleration := 1000,
Jerk := 0,
Direction := 0,
Mode := 0,
DoneFlag :=0);
bBusy := Reduce_MoveAbsolute.Busy;
BUT I'd rather do this
Reduce_MoveAbsolute(Axis := "ReduceAxisChar_DB".Axis,
Execute := TRUE,
Position := "PForm_DB".Step.ReducePosition,
Velocity := "PForm_DB".Step.ReduceVelocity,
Acceleration :=1000,
Deceleration := 1000,
Jerk := 0,
Direction := 0,
Mode := 0,
DoneFlag :=0
Busy := bBusy);
I've tried Busy => bBusy, and various combinations.
In case it's confusing, the FB has "Busy" for an output parameter (boolean), my bit is "bBusy" which is a boolean.
I thought I was doing it as the document says but it doesn't work.
I'm trying to use SCL, because all our code is ST in Beckhoff.
How the he(double hockey sticks) do I get the outputs of an FB in SCL?
I've done this and it works
Reduce_MoveAbsolute(Axis := "ReduceAxisChar_DB".Axis,
Execute := TRUE,
Position := "PForm_DB".Step.ReducePosition,
Velocity := "PForm_DB".Step.ReduceVelocity,
Acceleration :=1000,
Deceleration := 1000,
Jerk := 0,
Direction := 0,
Mode := 0,
DoneFlag :=0);
bBusy := Reduce_MoveAbsolute.Busy;
BUT I'd rather do this
Reduce_MoveAbsolute(Axis := "ReduceAxisChar_DB".Axis,
Execute := TRUE,
Position := "PForm_DB".Step.ReducePosition,
Velocity := "PForm_DB".Step.ReduceVelocity,
Acceleration :=1000,
Deceleration := 1000,
Jerk := 0,
Direction := 0,
Mode := 0,
DoneFlag :=0
Busy := bBusy);
I've tried Busy => bBusy, and various combinations.
In case it's confusing, the FB has "Busy" for an output parameter (boolean), my bit is "bBusy" which is a boolean.
I thought I was doing it as the document says but it doesn't work.