How to convert from Alley B to Step 7

google08

Member
Join Date
Jun 2011
Location
Kiruna
Posts
51
I am just beginning to learn PLC i have this ladder
http://imageshack.us/f/233/ladderw.jpg/

i take me about 30sek to write it down and it worked, i just wonder how to do the same thing in Step 7 (easy mode PLZ)

i read the manual that u have to create OB1 then FB1 and

declare IN and OUT and STAT then DB1

then Vat the Symbols and Call From OB1.. then going in

Vat the u can change the value omg its just go on and go on,

Its ther a easier way to do it? change the Value of a Counter
 
There is of course, an easier way.
First of all you can put all your program into OB1 if you are just feeling your way around.
Break the program up into blocks if it is a large program, or as you get to know your way around the program.
You can declare a variable as DB***.DBW** an use it in that format

for example DB101.DBW2 in the following:
 
If you look at the comparator there are 2 data types used here.
MW100 would be the same as B3:100 at word level
DB101.DBW2 would be like using N7:101

s7 sample.jpg
 
I am just beginning to learn PLC i have this ladder
http://imageshack.us/f/233/ladderw.jpg/

i take me about 30sek to write it down and it worked, i just wonder how to do the same thing in Step 7 (easy mode PLZ)

i read the manual that u have to create OB1 then FB1 and

declare IN and OUT and STAT then DB1

OB1 is the central block calling distribution block, similar to the Main Routine in AB ControlLogix, where you call the main program.

You can create a FB or a FC for the logic, an FC does not require an instance DB. FB's require instance DB's because they use the DB as local memory (saves on using M flags).

then Vat the Symbols and Call From OB1.. then going in

Vat the u can change the value omg its just go on and go on,

Its ther a easier way to do it? change the Value of a Counter

A VAT is a data monitoring screen, it is not a program. This is far superior than what AB has on offer. You can create many VAT tables and group together information you want to monitor or change and these can be saved for future use.



You example shows that on certain status you are changing the counter preset automatically, the VAT is a manual observation and change screen, your comparing different things here. You can do just as the AB and conditionally move new values ito the counter preset.
 
You can do a like for like copy paste in OB1.
The only exception would be that you'd need to use a Count Down counter.
(ofc you'd need to use S7 addressing)

Nothing there requires a FB, or a VAT, or symbols.
 

Similar Topics

Hi i tried to convert this program http://imageshack.us/f/843/logixproladder.jpg/ 2 way traffic light from Alley to S7 but i cant seem to find...
Replies
3
Views
1,560
Hello all, I'm currently working on a servo motor linear positioning system (ball screw). I'm all set up regarding communication between my HMI...
Replies
1
Views
90
I have an application using an incremental encoder and then I convert it to degree (0-360) using calculation program. For a while, the calculation...
Replies
7
Views
242
Hi all. Me again still learning Rockwell. So I'll be polling an INT data array from a Modbus SE power meter with a L82 (with a Modbus ProSoft in...
Replies
56
Views
1,384
Hello, could someone kindly convert the attached RSP files that are currently used for SLC 5 PLC into PDF please
Replies
6
Views
528
Back
Top Bottom