S7 300 Basics and stuck

geniusintraining

Lifetime Supporting Member + Moderator
Join Date
Jun 2005
Location
SC
Posts
8,281
OK I am not very good with the 300, as a mater of fact I suck... but that said I still can not figure out why my outputs are working

Code:
      A     I      0.1
      AN    I      0.2
      L     MB     0
      T     QB     0
      L     MB     1
      L     1
      +I    
      T     MB     1
      T     QB     1

Simple little project, I have a 313 CPU and SM374 combination I/O (making a cheap S7 300 trainer) the I/O card has the dip switches to simulate inputs and the LEDs are my outputs

Top 8 on the card are outputs and the bottom 8 are inputs

I am just wanting the lights (LEDs) to flash and to test the I/Os... with the above OB1 I get the LEDs to flash but would of thought that they would stop once input 1 is off or input 2 is on

When I click on the monitor icon I see the inputs turning on and off (going true) but the outputs never stop flashing

Thanks for your help :)
 
Load and Transfer will be executed ragardless of the RLO , so maybe try something like this ?

A I 0.1
AN I 0.2
A(
L MB 0
T QB 0
L MB 1
L 1
+I
T MB 1
T QB 1
)
 
Load, transfers, math and quite a few other instructions are done without regards to the RLO.

This is a simple rule with few exceptions:

If you don't want to execute the logic and it isn't bit-logic, use one of the various jumps.


The sooner you learn it, the less grey hair you'll get. (from working with siemens :D )
 
...so maybe try something like this ?

Thank you for the suggestion but it did not work


Kalle said:
I would use a jump here:

Hi Kalle, worked great, thank you!

Jeebs said:
the less grey hair you'll get.

I pulled that out a long time ago :)


JesperMP said:
Noone will give you a medal for programming in STL.

Hmmmm then how do you explain this 🍻

GOLD for STL.jpg
 
Hmmmm then how do you explain this 🍻
attachment.php


I think they are fake.

Seriously, the kind of code you listed in the 1st post would fit LAD perfectly.
To my opinion, STL should be relegated to being the last resort.
 
I would not level it to last resort. But for jobs it suits well. Most can be done more effectively with SCL tough.

But, learning it is easiest by first learning trough lad->stl conversion and then continuing with that.
 

Similar Topics

Hello I have simple home automation made with Siemens S7-300 series. It consist of CPU 315-2 DP, Digital inputs (321),outputs (322), relays and...
Replies
1
Views
2,351
Hello all, We are producing a stand-alone product with its own control system, using a siemens 315-2 PN/DP cpu. The only interface to the...
Replies
2
Views
1,755
Hi, I'm setting up a modbus master on an S7-300. It seems to work in OB1 but not when I use it in OB35. Does anyone have any ideas why? Could...
Replies
10
Views
113
So basically i have 2 queries : 1. I have a program file of S7-300 PLC which i want to migrate in RSLogix500.In short i want to convert my simatic...
Replies
15
Views
260
Hi i using Kinetik 300 2097 driver control by EIP with using move absolute and incremental for motion , but i want to add same driver and motor as...
Replies
0
Views
64
Back
Top Bottom