S7 scl

rblunt

Member
Join Date
Nov 2013
Location
Canada
Posts
35
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.
 
That would be F1 in Siemens :).

What are you using? Simatic Manager or TIA? What PLC?
 
Reading fail.
I was afraid I missed something. Thanks.
It's a 315T-3 PN/DP, and you have to use SIMATIC Manager, Technology PLCs can not be programmed with TIA at this point.
I wish I was more conversant in Siemens, but I'm making my way through it, I still prefer my TwinCAT :( no offense Siemens peeps.


That user name is awesome L D[AR2,P#0.0].
 
Last edited:

Similar Topics

HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
81
Hi, I have an intermediate-advance knowledge of programming with TIA Porta in Ladder, would you recommend me to start learning SCL for it to...
Replies
11
Views
559
Hello nice to meet you, im new in here, I'm currently trying to convert code written in STL for a S7-400 to SCL for an S7-1500, because when i run...
Replies
5
Views
317
Hi everyone, I am new to this amazing world of PLC, well... I mean, in practice, since I already knew electronics, programming languages, IT, and...
Replies
7
Views
652
Hi all, This is my first post; I am new to PLC Controls stuff and English is not my native language, so I apologize in advance if something is...
Replies
4
Views
512
Back
Top Bottom