Simple RSLogix State Solution

R

Thread Starter

Roy

Can you help. I am trying to set an integer value from several discretes to change a tag to 0,1,2,3 in RSLogix Function Block so that I can use the state display in RSView. All the Math and Select functions use Real data type. There must be an elegent solution without having to convert from Real to Integer. I thank you in advance
Roy
 
T

Trevor Ousey \(list\)

Maybe I am missing something, but just create the tag as a DINT (or INT) instead of a REAL, and just use MOV instructions.
 
Trevor,

I knew there was an easy solution, just couldn't remember. I don't use AB on a regular basis.

BTW anyone out there using RSView ever tried to delete all the sample projects? It causes RSView to crash. For some strange reason one of the samples (baggage I think) seems to be an integral part of the software.

Thanks,
Roy
 
Trevor,

The only problem is FBD laungage doesn't have a MOV instruction and you can't write a tag from 2 blocks as you can in Ladder.

What's so simple in ladder is very dificult in FBD. All I need to do is manipulate bits 0, 1 & 2.

Looks like I may end up with a hybrid after all.

Roy
 
T

Trevor Ousey

That feature is a bit of a trap isn't it with the sample projects? I was thinking that maybe if you do a custom installation and deselect the sample
projects that it may be okay.

Cheers,
Trevor
 
T

Trevor Ousey

Roy,

Try using the SEL select function instead of a MOV in FBD. You can use a constant in the input reference instead of a tag.

Cheers,
Trevor
 
Top