S5 Data Block

teh

Supporting Member
Join Date
Nov 2002
Posts
140
What is the function of S5 Data Block Preheader ?

How should i to created the new data block in S5?

I Have used to program for S7..

But have no idea for S5.

What is the different betwwen S7 and S5 data block?

Do i need to assign each individual address just like s7?

rgd
 
How you create your DB depends of the S5-version that you use.

At this moment I do not have installed S5-software anymore but if I remember this correct for one of the latest versions you need to open the second menu on the left and then you have to choose 'create DB'.

The header contains information about the type of data-word, like 'KF', 'KH' ect. and also comment. This stays on your harddisk and is not transfert to the plc.

S5-DB's are always global DB's. You can only open one DB at a time. If you want to use the DB, first you need to adres the DB. I always used the german version. For this the STL-instruction is 'A DBx', for the later versions you can also use a LAD-instruction like with S7.

After this you need to 'load' and 'transfer'. There is no MOVE-instruction, only a 'L'- and 'T'-instruction. Example

A DB1 //adres DB1
L IW 0 //load input-word 0
T DW0 //transfer to dataword 0

L IB0 //load inputbyte 0
T DR1 //transfer to Rightbyte of Dataword1
L IB5 //load inputbyte 5
T DL1 //transfer to Leftbyte of Dataword1

Datawords are adressed with word-adresses. If you want to adres a databyte you need to use 'DRx' or 'DLx'. This is Dataword-rightbyte and dataword-leftbyte.

You can not adress seperate bits of a dataword. Once a DB is adressed it stays adressed untill you adress a different DB or if the block in witch the DB is adressed has ended.
 
Each DB has datawords, they have seperate adresses like

DW0
DW1
DW2
DW3

DW0 and DW1 are seperate datawords and have no information in common like MW's have.

MW0 and MW1 have MB1 in common.

DW0 and DW1 have nothing in common.They contain totaly different information.
 

Similar Topics

Afternoon, I have a DB in TIA Portal V16 that is optimised. I cannot change this. There is an array inside that block which consists of 3000...
Replies
9
Views
1,140
Hello all, PLC-programming noob here. I have multiple clients accessing some data on my Siemens S7 1211C PLC; some OPC clients and some direct...
Replies
30
Views
8,318
Hey people, I have been using GET_NAME , GET_IM_DATA and ModuleStatus FB to get an info from Modules inside my program, but ever since and...
Replies
4
Views
2,550
Hi, just wondering if I could get some advice when setting up function blocks (Currently using Siemens S7) using a STRUCT data format. Say I was...
Replies
11
Views
3,016
Hi, Ok bear with me, I have an Array of Real in a DB ranging from 0 to 10. In ladder I want when count pulse = 100 move count into Array 0...
Replies
1
Views
2,079
Back
Top Bottom