S5 Programming - Sequencer

Jokri

Member
Join Date
Dec 2014
Location
Spain
Posts
4
By programming inside user sub-sequencer I have put PLC to stop.
How is made:
- I am having PB 1 from where I am calling FB 1 which is like switch to PB 161, 162, 163...
- From PB161, 162, 163... I am calling FB 70 - main sequencer
- FB 70 having parameter SBNR which means which SB to call - it is like this - from PB 161 call of FB 70 with parameter SBNR: 161 - is call of SB161
- inside of SB 161 in one of the step I have wrote:
C DB 204
L KF +0
T DW 38
...
then in the next step I have wrote:
C DB 204
L KF +1000
T DW 38
When started this SB PLC gone to the stop. I suppose, I don´t know something what I can not do inside of sub-sequencer.
Please, should someone help me to understand what is going on? Thank you.
 
Why you use SB - Sequence blocks.
SB - Sequence blocks are special program blocks that process sequence controls programing with Graph5.

Use FC instead SB.
 
Kind of PLC

Thank you Janez, Kalle,
This is 135 one.
I can not start to re-program it. Is old machine and all of the process is made by the sequences - by the switch going to dedicated sequence.
I already gone from the site and my college not working with S5 only made reverse from backup then I don´t know what was in the stack.
How Janez mention to work with FC maybe best way is to assign the flag in the step. By this flag in some of the function in the normal scan make decision to assign correct word (outside of the Graph).
I have been looking to S7 Graph (to compare how is now days) and there is not possible inside the step to make call of the DB. Only way is to call FB or FC and over there perform DB call.
Thank you both of you, best regards, J
 

Similar Topics

Hi there, I am a newbie I did some programming on Siemens LOGO and some troubleshooting on Siemens S7. Now I have to write a progamm for a...
Replies
3
Views
5,330
Hello All, I am stumped on how to convert a %MW to a %MF using Machine Expert Basic and a Modicon M221. The help files show a word to a double...
Replies
4
Views
122
Hi, I am trying to set up a plc. I've never done any programming with ladder logic previously. I'm trying to set up a a program to turn a device...
Replies
7
Views
243
Dear all, I have fx2n plc on my hand but I don't have the programming cable sc-09 and it would not be easy for me to get one. I need the cable...
Replies
3
Views
140
Hi all, i am the new controls guy at the plant and i have inherited a pc from the previous controls guy with Siemens tia portal version 16 and 17...
Replies
20
Views
959
Back
Top Bottom