LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multipexed channels in MODBUS with memory tag?

Hi

I have setup where an analog input module multiplexes it's four channels into one MODBUS address. I do this with the following procedure:
- channel one is written to a certain MODBUS address (e.g. 30016)
- then I write a number (e.g. 12) to an other certain MODBUS address (e.g. 40001)
- channel two is now written to the first (30016) address
- I write a second (e.g. 16) number to 40001 MODBUS address
- channel three is now written to the first (30016) address
- and so on...

I am using LabVIEW DSC an I am wondering if I could solve the problem somehow with a memory tag.
I can do it by hand already (write tag / read tag) but I need to have those four channels seperated in the database.


thanks in advance

Wolfram
0 Kudos
Message 1 of 2
(2,833 Views)
".

Create four Memory tags, one for each channel. Wire these channels' values to the respective Memory Tags using the Write Tag VI. Also, enable logging on these Tags so you have the data in the database.


Then cycle through these Memory Tags and write them out to your Modbus 30016 Tag.


Hope this helps.


Khalid 🙂


."
0 Kudos
Message 2 of 2
(2,833 Views)