Function Blocks in STL

KentH

Member
Join Date
Nov 2003
Posts
2
Hello all,

I am a student, and fire has destroyed some of my notes. boo hoo. Anyway, life goes on and i was wondering if anyone could give me an example of how to program a simple stop start Function Block in STL with 3 inputs (strt, stop, ovld) and one output (motr). I am thinking that perhaps my syntax is just wrong, as i can declare all the I/O's properly(i think). It will not allow my to program the logic required. anyway, all help greatly appreciated.

I am using s5 for windows, connected(at college) to a siemens PLC.

here is what i have so far
;
NAME: STARTER
DECL: STRT IBI
DECL: STOP IBI
DECL: MOTR QBI
DECL: OVLD IBI

:
BE

thank you in advance.
Kent H
 
KentH,

What do you mean with OVLD? Overload?

NAME: STARTER
DECL: STRT IBI
DECL: STOP IBI
DECL: MOTR QBI
DECL: OVLD IBI

:U(
:O STRT
:O MOTR
:)
:UN STOP
:UN OVLD
:= MOTR
BE

Perhaps something like this, by the way I've never heard such a silly excuse. And next time try to do your homework yourself, this is a one time help!!

Rudi
 
thanks for the reply.

i found out i have to put a = in front of every operand.
eg
O =STRT
ON =MOTR
= =MOTR


the excuse may sound silly, but my car was stolen and burnt with some of my books in it.
 

Similar Topics

Good morning crew! Ok my logic works but I am missing something. When the start button is pushed it should like the red light for 4sec then shut...
Replies
13
Views
419
Hallo, I have Tia Portal V16 and I'm upgrading an older machine. That machine has a component running on rs232. The machine has still the old...
Replies
7
Views
951
Hi Folks I have made a function block that has the EN input enabled. (FBD language) In want to run some code at the top of the function block as...
Replies
9
Views
1,735
Hello. For a FactoryTalk View SE application, I recently upsized the PC monitor to a 46 inch. Now after changing the resolution to make...
Replies
4
Views
1,165
Hi, I'm getting a bunch of these warnings when I build the program in Connected Components Workbench. The program is legacy code. The program...
Replies
5
Views
2,369
Back
Top Bottom