Logix Designer 5000 DDE Poke in Binary?

LeCeMeon

Member
Join Date
Jan 2021
Location
Montreal
Posts
1
Hello all, first time posting here.

I am writing a VBA routine to write tag values in Logix Designer 5000 V30 using DDE poke. The tags in want to write in are shown in binary style in Logix Designer because they make more sense that way. Is it possible to use DDE Poke using binary instead of decimal format, or is decimal the only way to do it?

Thank you.
 
I just write the integer value to the PLC tag. Since the PLC tag itself sets the style there isn't anything you should need to consider in VBA.

For example, if I want the PLC tag to have a value of:
2#0100_1001_0010_0011

My Excel doc as columns configured as binary to match the binary format of the PLC. I can set the bits, then a formula in another column determines the integer value, example:

0100100100100011 | 18723

I just write 18723 to the tag.
 

Similar Topics

Does anyone know how to set the background colors of instuction blocks (TON, MOV, etc)?
Replies
1
Views
130
For some reason, when I do a search (Find in Routines, Text Only) in Logix Designer (v30, v32, or v33), I can press F4 and it will step through...
Replies
1
Views
811
Has anybody found a clever way, or made an plug-in, for organizing tags in Logix 5000? I like to use named constants, rather than hard-coded...
Replies
3
Views
1,715
This is s stupid thing but it drives me crazy. 5000 seems to open new lad windows to the far left every time. I tend to like to have my Tags...
Replies
3
Views
1,173
After installing Studio 5000 Logix Designer 33.01.01 , we got some errors. See attached and below. Is it serious? Install failed (1)...
Replies
1
Views
2,081
Back
Top Bottom