Assigning parameters to SFC59

A

Thread Starter

Antrios

How to assign TRUE parameter for REQ input of SFC59 in LAD?

It is easy in STL. I just write REQ:=TRUE. I need to execute this function every cycle so I want to set this input to TRUE forever.

Thanks for help.
 
for siemens , in a program , you can use both LAD and STL, the second way, you can make a bit which is alway true , that is easy!
 
I must say it is not so easy. Only way I found is to define data block, and inside I can create bool variable and set its initial value to TRUE. I'm not sure if it is easy. Maybe there is easiest way which I don't know. Something like always_on contact. Please write if YOu know better (easier) ways.

Rookie.
 
D

Donald Pittendrigh \(home\)

Hi All

I entered the following on my PG :

CALL "RD_REC"
REQ :=TRUE
IOID :=MB4
LADDR :=MW4
RECNUM :=MB4
RET_VAL:=MW4
BUSY :=M4.0
RECORD :=P#M 4.0 BYTE 4


It works in STL but not in CSF or LAD.

Likewise this :

SET
= L 10.0
BLD 103
CALL "RD_REC"
REQ :=L10.0
IOID :=MB4
LADDR :=MW4
RECNUM :=MB4
RET_VAL:=MW4
BUSY :=M4.4
RECORD :=P#M 4.4 BYTE 4
NOP 0

Regards
Donald Pittendrigh
 
S

Shahid Waqas Chaudhry

A simpler way is to have some Marker assigned as TRUE/FALSE flags in the
start of your program. Define them in a network in OB1

// Always FALSE
A M0.0
AN M0.0
= M0.0
//Always TRUE
O M0.1
ON M0.1
= M0.1

and then you can use them in your program.

- Shahid
 
Top