Bool to DINT

Ones_Zeros

Member
Join Date
Feb 2014
Location
at work
Posts
367
Hello
I have two Bool data type tags located in the "Program Tags" under the Main Program routine. These tags are internal memory tags.

How would be the best way to create these same tags and configure them in the "Controller Tags" so these tags can be Messaged over to another PLC.
The Bool tags would need to be converted or copied to a DINT so they can be MSG.

I appreciate the help

ProgramTags.JPG
 
Simply create a controller-scoped DINT, then in your program add a rung for each bit that uses an XIC of the bool to an OTE of an individual bit in the DINT. Then MSG the DINT.
 
I think i follow you
Do you mind to please post an example?

Since its the OTE bit that i need to be a DINT and the OTE bit lives in the "Program Tags" and the DINT will be in the "Controller Tags" so that I can MSG it over to a different PLC I want to make sure I understand

thanks again
 
Last edited:
The individual DINT bit values are controlled by the BOOLs which you use as XIC (as long as you don't write to the DINT anywhere else).

ScopeExample.png
 

Similar Topics

I work at a cheese factory and we recently ran into a problem where in an older controller they where able to use a REAL Data type in OTU and XIC...
Replies
13
Views
2,596
Hello guys hope y’all healthy during this time, Im looking for help in a project im trying to finish. I need to get a bool (ote) when a dint...
Replies
6
Views
1,789
I need to iterate though the bits in a DINT, but it seems you can't indirectly address a DINT at the bit level..... So my next thought was...
Replies
9
Views
3,434
I'm not a ladder or AB guy and the people asking me are using both, so this has me stumped. Long story short, they have several arrays of...
Replies
11
Views
5,340
tried to use a COP length of 32 to copy a DINT to a BOOL[32] Does not work Tried a move also but of course that did not work CLX L83 Tried a BTD...
Replies
5
Views
3,645
Back
Top Bottom