Step 7: Bit Move in FB

gdglisch

Member
Join Date
Sep 2011
Location
houston
Posts
14
Hello,

I am writing an FB in Siemens Step 7 and want to move some of the inputs (bits) into their corresponding bits of a control word that is being sent out to a drive. I am doing this in an FB so I do not want to use any M's or DB's. Does anybody have any suggestions or know how I can do this? Thanks in advance.
 
want to move some of the inputs (bits) into their corresponding bits of a control word
what datatype is the controlword? PQW? MW? DBW?

A better explanation will aid you faster to your answer.
 
I am trying to change individual bits in a word define inside of my FB. Then I will move this word to the defined output, which will be a PQW in the call.
 
I got that to work. Now I have the problem of getting a status word from the drive and breaking it down into bits that i can use. I want to take the status word into my function block, break it down into individual bits and output those bits in the FB. I thought that i could just move the piw into a structure but it will not let me do that. Any suggestions?
 

Similar Topics

Does anyone have experience with this type of logic? I am trying to get it to work but it does not increment my steps sequentially. It turns on...
Replies
6
Views
2,219
DEAR FRIENDS, I WANT TO KNOW THAT WHAT IS THE USE OF S100 BIT IN DELTA PLC PROGRAMMING. CAN ANYBODY GIVE ME ANSWER. THANK YOU :nerves:
Replies
2
Views
2,294
Hello all, I have one step 7 simatic program in which I noticed that one bit is constantly changing every two sec, but I cannot find any timers...
Replies
7
Views
3,299
Hey, I received my new PC @ work. What should I install: Win XP 32 or 64 bit ? The IT are telling me that 64bit is good, but they are not...
Replies
2
Views
6,325
Hello, I have some codes executed at the first scan. But I dont't know how to get the first scan bit in step 7. Is there a ready bit like this...
Replies
4
Views
13,182
Back
Top Bottom