S7 DBLG instruction

bellies

Member
Join Date
Feb 2006
Location
Dublin
Posts
7
Hello All,
New to S7 and would like to perform an action on every bit within a DB. i.e. use the DBLG return value as the loop counter value and cycle through bits. Can anyone please tell me what the return value of the DBLG instruction is as it is not clear from the S7 manuals. I'm presuming it's length in bytes but need clarification.

Thanks in advance

B
 
Also wondering what happens when DB is odd number of bits
for example when last address is 16.5 Does S7 round to next
byte value.

Also on another note what exactly happens when a S7 moves a Dint to an Int.
Thanks Again just trying to get my head round some things
 
DB's are always an even number of bytes. Here's what happens when you transfer a 32bit number to a 16 bit variable.

Code:
	  L	 DW#16#12345678
	  T	 #wBert
	  L	 #wBert	//wbert=5678
 

Similar Topics

Greetings fellow code monkeys! What I am trying to do is: Getting the total length of contents in a db. (not di) FUNCTION_BLOCK FB102 VAR_INPUT...
Replies
3
Views
2,883
I'm using a SLC typed write from the ControlLogix5572 to the MicroLogix 1400, with path: 2, (MicroLogix IP). The ControlLogix equipment has a...
Replies
0
Views
87
Does this instruction calculate values during a single scan, or does it require number of scans based on element count in the array? For Example...
Replies
3
Views
112
Hello All, Was hoping I could get a little help with Modicon ladder logic. This is the first time I have seen Modicon logic and currently trying...
Replies
6
Views
257
Hello all, I am currently trying to establish a message instruction to pass data from a 1756-L73 to a 1756-L71. My communication path from the...
Replies
8
Views
350
Back
Top Bottom