S7lite ladder program

Join Date
May 2009
Location
Bacolod City
Posts
39
Hi guys, am a bit of a beginner, trying to learn plc programming ...in step 7 lite software, can you please give me an example of a ladder program...(analog input and analog output), thanks
 
Hi Ivo,
Thanks for the help, but the FC105 my way of understanding is for the analog input scaling, how would I write the program to output the analog input proportionately to the say for example control valve?
 
Thank you Ivo.... Have already tested the program and it work well.(4-20mA input equals 4-20mA output), but I cannot monitor the out in FC106 (PQW256 output) in my laptop or in the HMI. I have assigned the PQW256 as an integer and it doesn't show anything unlike in the FC105 out (PIW256)-which can be monitored. Please help.
Thanks
 
Normally PQW 256 is not assigned to the PIQ (proces image outputs)so you can not monitor it straightforward inside a VAT.

Try this:

L PQW256
T MW 100

and look at MW100 inside a VAT.
 
You cannot use the instruction L PQW256

If you want to monitor a PQW then transfer it to a MW first and then to the PQW address, you can then monitor the MW

e.g.

pqw009001.JPG
 
I would write my own FC as a wrapper for FC106 and include an extra output for monitoring purposes:

Code:
FUNCTION FC 1106 : WORD
TITLE =
VERSION : 0.1


VAR_INPUT
  IN : REAL ;    
  HI_LIM : REAL ;    
  LO_LIM : REAL ;    
  BIPOLAR : BOOL ;    
END_VAR
VAR_OUTPUT
  OUT : INT ;    
  MONITORED_OUT : INT ;    
END_VAR
VAR_TEMP
  iData : INT ;    
END_VAR
BEGIN
NETWORK
TITLE =

      CALL fc106 (
           IN                       := #IN,
           HI_LIM                   := #HI_LIM,
           LO_LIM                   := #LO_LIM,
           BIPOLAR                  := #BIPOLAR,
           RET_VAL                  := #RET_VAL,
           OUT                      := #iData);
      L     #iData; 
      T     #OUT; 
      T     #MONITORED_OUT; 
      SET   ; 
      SAVE  ; 

END_FUNCTION

pqw009002.JPG
 
L D[AR2,P#0.0]:

Thanks, indeed you are correct for the same reasons as I wanted to point out. Only I forgot that even this is impossible to do. Show me that testing/controling is always a part of the solution.

Edit: and now it hits me: I intended to use the method in post #7.
 
Last edited:

Similar Topics

Hello friends, Is there someone out here who wants to help me with converting my S7-300 program to S7Lite. I don't have the Step 7 software any...
Replies
5
Views
3,015
Hi all. Is this the simplest way to debounce inputs in Ladder (there are 2 points being debounced here)? The TOF drives the tag. I'm expecting...
Replies
15
Views
458
I have a machine which is undergoing upgradation. As part of the process two SEW drives are being replaced., existing Gen B with new Gen C. The...
Replies
3
Views
185
Does anyone have RSLogix 5000 ladder diagram program of tank leveling (factory IO). Fill valve, discharge valve, set point, level, etc? I looked...
Replies
2
Views
148
Hi, I have a program running which is, occasionally, giving me problems. Although I'm a ladder stalwart I've used ST and SFC in its construction...
Replies
12
Views
426
Back
Top Bottom