Hey all. Im very new to this, and this is very likely my inexperience and something to do with how to read/write addresses and such. Haven’t done the training yet, but I absolutely am going to very soon. Just hope you all might be able to help me out first with this just so I can show progress to my bosses and customers.
I have a rtu slave device connected to a tcp gateway. gateway is connected to the ignition gateway, and all is communicating. I definitely have connection as with certain tag configurations I am able to see the data increase incrementally, and it goes away when I unplug the slave device.
I am simply trying receive date and time data in a single string so I can show a heartbeat. I have put screenshots below of the example from the device manual and my settings. Any help would be greatly appreciated.
as a new user i can only imbed 3 items, so i am going to reply to myself here with a little more info.
I can change the tag settings to the below, and I get the number shown, counting up.
I know I am missing something basic here. I have grok’d this to death. I just dont think I know enough of the language to know what question to ask.
ps.. even with the tag working, and incrementing as shown, I still get this error in my logs.
This device counts addresses from zero, and I have that configuration option selected in the device configuration as well.
If your device starts at zero, then you need to set the Zero/One Based Addressing setting in the Ignition device settings appropriately.
I'd also recommend you skip the address mapping configuration and just create Ignition OPC tags with OPC Item Paths that use the Modbus address syntax described in the user manual, e.g. [Minebea_1]1.HR0
(once you've configured the driver for 0-based addressing).
ok I was able to get it to work after taking your lead on it. I assume there is a way to read do this with a single tag Im just not doing it right? I only ask as there lots more data I have to get and I’ll have to write singular tags and expressions for all of them potentially.
If there's a pattern to the addresses you may be able to use UDTs. Some people write scripts to create the tags. Others just create them all manually.