00:03
Hello, in this video we're going to go over the steps required to communicate
00:08
with a Modbus TCP device using Ignition. I'm going to be using this groov EPIC
00:14
Learning Center. It's perfect for learning more about groov EPIC or doing
00:18
a proof-of-concept project. I'm also going to be using this SATEC P 130
00:22
power meter as my Modbus TCP device. It's measuring the voltage and frequency of
00:28
the mains power here in the studio and our goal is to display that data in the
00:33
Ignition quick client. To get started you'll need the IP address and device ID
00:38
of your Modbus device and the hostname of your EPIC processor. You'll need the
00:44
Modbus device registers and this is usually found in a manual or
00:47
supplementary manual for the device. Lastly you'll need both devices on the
00:53
same network as your laptop. Go ahead and open a browser on your computer and go
00:59
to HTTPS colon slash slash the hostname of your epic processor.
01:05
Login. From the homepage
01:09
page select ignition. The first thing we need to do is decide if we're going to
01:14
run an ignition edge or the full ignition gateway for the case of this
01:18
video either choice is equally valid for help on choosing visit opto22.com for a
01:25
blog outlining the differences.
01:30
Now once you make your choice be sure and click on save on the top right so
01:34
that the gateway starts up.
01:41
0nce you have the gateway page ready to go login with your credentials or the
01:46
default of admin and password
01:51
from the top menu select configure
01:56
Then on the left side the subcategory of OPC UA server select devices.
02:05
We'll need to add our Modbus/tcp device so click on the create new device button.
02:11
From the list of devices select modbus/tcp.
02:17
and, then scroll down and click on next starting from the top we first give our
02:23
device a name optional description and most importantly the IP address of the
02:31
device. in the case of our SciTech we need to
02:35
Adjust one of the advanced properties so select that option to show them.
02:41
We know from our SATEC Modbus manual that the address range starts from zero.
02:46
So we need to take the check mark out of the base one addressing. scroll all the
02:53
way down on this page and click on the Save Changes button. You should notice
02:58
that your device status goes from disconnected to connect it pretty
03:02
quickly. And, if not you need to check your IP
03:05
address port and network options. To configure the register address click on
03:11
more and then select addresses from the drop-down list on this page. We need to
03:17
click on add row now. It looks bit overwhelming but let's just go through
03:23
them one at a time. Here prefix is the name of the register contents. In my case
03:28
I'm going to first read volts. So I'll enter the word volts start and end are
03:34
the number of addresses you intend on getting. In my case I want just the one
03:39
voltage register so it will start and end at zero But, let's just say I was
03:45
getting three-phase volts there I might enter zero and two to get the three
03:51
registers with each phase voltage step is if you're going to be combining two
03:56
16-bit registers into one 32-bit register unit ID is your Modbus TCP
04:03
device unit ID check your device configuration to get that in my case I
04:10
know it is unit 1 Modbus type has lots of options but it will tie back to your
04:17
device manual in my case from the say tech manual I know that the raw counts
04:22
for the voltage are an unsigned integer 16-bit register again from the device
04:29
manual. I know that the voltage address is 256.
04:33
Now radix determines what format addresses in the device are labeled.
04:38
Common values are 10 for decimal or 16 for hexadecimal let's quickly add a row
04:45
now for frequency Hertz for the unit's getting one
04:51
register unit ID of one. It's also a 16-bit unsigned integer
04:58
and it's address is 279. Now we can click Save and we're done with the
05:04
configuration. To check for our data we can use the built-in quick client under
05:11
OPC connections click on quick client. Drill your way down to your device by
05:18
expanding the little pluses. And the two tags we just added will show up. Click on
05:23
the small R to read the data in RAW counts. From here it's up to your process
05:30
requirements. You could be building a screen in Ignition Designer or sending
05:35
the data via MQTT to another client. And, in each case there would be a different
05:40
method to scale the raw counts to engineering units. For more information
05:45
check out training dr. 22 com thanks for watching cheers mate