Indirect Address DB Siemens PLC

reisjao

Member
Join Date
Feb 2013
Location
Sorocaba
Posts
9
Hi,

I have a DB in my program with all the alarms of a machine, but the machine is divided in stations. So I want to check if any station is with an alarm set.

Exemple:
Station 1 is DB1 bytes 0 to 9; Station 2 is DB1 bytes 10 to 19; Station 3 DB1 bytes 20 to 29, etc.

I'm trying to make a block to check part of the DB. Something like this:

OPN #My_DB
L DBB [#Start_Byte]
Compare if == 0 ten (or more, if I have more bytes) times and return if true (or false, that doesn't matter).

My problem is that I don't know how to indirect address the bytes or words of the DB (this: DBB [#Start_Byte]).

How can I do it?
 

Similar Topics

Hi everyone, I hope you can help me. Im working with get the production parts of all hours-day using STL. My idea is to use an array [0..23] of...
Replies
9
Views
3,840
I have an indirect PLC5 code conversion I can not figure out how to convert to CLX Anyone have a solution Thanks
Replies
11
Views
4,144
In an old PLC5 I see an output like this B37 -()- [N19:21] If I remember correctly that says to set the bit of word 37 thats equal to the value...
Replies
13
Views
6,936
Good day all. I have an alarm that has been triggered and I can't figure out what is triggering it. When I go to the alarm table it shows an...
Replies
4
Views
2,153
Back
Top Bottom