LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can i read consecutive words from rslinx using one opc request?

I SET UP AN APPLICATION THAT WILL READ 16 BIT WORD FROM MY AB SLC5/05. BUT I AM TRING TO READ CONSECUTIVE WORDS. I.E. N7:0 AND N7:1. CAN I SETUP THE TAG AS [PLC_NAME]N7:0-N7:0
0 Kudos
Message 1 of 2
(2,856 Views)


Hi John,

What you're wanting to do depends entirely on the OPC Server, RSLInx in this case. You will have to check if RSLinx allows you to define a single Item that in reality is looking at two consecutive registers on the PLC.

If such items can be configured, the OPC Client will just read the data as a single Tag. I am guessing you're using DSC. You browse to this Item in RSLinx from the TCE and create a Tag for it.

If RSLinx doesn't support this, then one crude way would be to read the two items individually into two tags and then build a single value in your diagram and write it back to a Memory Tag to get a single Tag.

Hope this helps,

Khalid


0 Kudos
Message 2 of 2
(2,856 Views)