Problems with Boolean or DINT array and OPC

hardaysknight

Lifetime Supporting Member
Join Date
Dec 2015
Location
Southeast USA
Posts
107
The software: RSLogix5000 + Graphworx32 by Iconics + Iconics Unified Data Browser + Applicom OPC Server

I need to have my HMI software (Graphworx) flash a square whenever a bit from an array latches on in RSLogix 5000. The trouble is I can either use a boolean array (which means I have to use a bunch of unlatch bits), or a DINT. I want to use a DINT, but I'm only able to see the whole DINT in OPC and not individual bits from the array. I'd prefer to be able to use something like a MOV bit to reset the whole array when the machines pumps turn off.

I really hope I made sense.
 
You have to add the bit level yourself.

See example below.

x= {{RSLinx OPC Server\[PLC080_NBT]Base_C.Gen_DINT[0].1}}

RSLinx OPC Server will be your applicom OPC.

PLC080_NBT is the PLC name.

Base_C.Gen_Dint[0] is the PLC tag

Hope this helps.

Cheers

Mark
 
You have to add the bit level yourself.

See example below.

x= {{RSLinx OPC Server\[PLC080_NBT]Base_C.Gen_DINT[0].1}}

RSLinx OPC Server will be your applicom OPC.

PLC080_NBT is the PLC name.

Base_C.Gen_Dint[0] is the PLC tag

Hope this helps.

Cheers

Mark

I tried that earlier but it still did not work. So far I'm just using a DINT[16] and used 16 individual DINTs instead of using a single array. I'm using a FLL to reset the entire DINT[16] array.
 
OK.

This should work.

x= bittest({{RSLinx OPC Server\[PLC_080]Alarms_NF_08}},12)

RS Linx OPC Server is the OPC server.
PLC_080 is the PLC name
Alarms_NF_08 is the tag, pointing to bit 12.

I have got this running on a system here and it works. You have to make sure the syntax is correct.

Cheers

Mark
 
OK.

This should work.

x= bittest({{RSLinx OPC Server\[PLC_080]Alarms_NF_08}},12)

RS Linx OPC Server is the OPC server.
PLC_080 is the PLC name
Alarms_NF_08 is the tag, pointing to bit 12.

I have got this running on a system here and it works. You have to make sure the syntax is correct.

Cheers

Mark

Thanks! I'll give this a try next week.
 

Similar Topics

Hello. I appreciate the insights here and the willingness to share. I've got a lot of Rockwell experience, but my Siemens experience is...
Replies
6
Views
128
Currently a student, so somewhat new to this. But working with an AB 2080-LC50-24QWB, CCW version 21.01.00. CCW will connect okay to the Micro850...
Replies
9
Views
243
Hi Everyone, I have a customer that needs a CQM1H (CPU51) replaced. They purchased the processor new-old-stock from a source they found online...
Replies
3
Views
320
Hello all. I am trying to create a project to download to my CPU312 (312-1AE13-0AB0) and I can't get it to add this device. The device and article...
Replies
21
Views
1,320
Hi Guys, I am a new member and this is my first post! I have a little PLC experience but it is mostly with siemens logo and using ladder...
Replies
4
Views
839
Back
Top Bottom