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,019
Hello, I am going over some old code from days gone by. I would like the expert to confirm my findings to see if I got it correct. 1. B64:22/3...
Replies
7
Views
164
Hello, I´m having a problem trying to program in Ladder. An output should be trigged by two possible contacts. Take a look on the printscreen...
Replies
5
Views
163
I got my PanelView Plus 7 working with a Micrologix 1500. How would I connect my laptop to the PanelView to view the ladder logic while operating...
Replies
6
Views
182
please help me . I have to make this ladder diagram and I can’t figure it out :(
Replies
12
Views
377
Back
Top Bottom