Tip:
Highlight text to annotate it
X
This video will show how to setup a WAGO Bluetooth wireless radio.
We'll start by looking at the master node, we have the power supply here (24 VDC), and
a 750-880 PLC connected with Ethernet. with two IO modules, we have a four channel
digital in, a four channel digital out and the Bluetooth Module 750-644 connected
with an SMA connection to an antenna.
The IP Address for the Master node is 192.168.1.3 On the Remote node, similarly, we have a 750-881,
with a two channel digital out module, and the bluetooth module connected with the antenna.
The Remote nodes IP Address is 192.168.1.4 We're going to start by going into the IO
Check software, and we are going to look at the 880, which
is the master node. Going to click 'identify', select the module
for the Bluetooth, and we are going to change the Bluetooth module,
uh, to be the 'master', and change the 'name' to be master as well.
Just going to resize the window here, and start another instance of IO Check 3.
and this time we are going to connect to the 750-881 which is the remote node.
and again we are going to click 'identify', click the Bluetooth module, go into the settings,
and this time we are going to name the module 'Node-1'.
and click 'Write'. now click on the 'PI Mapping', and adjust
slot 1 to be 12 bytes. and click 'Write'
and then go back into the settings on the master, and here we want to adjust slot 1
to be also 12 bytes. and we can adjust other slots, we can have
up to 7 remote nodes, in this example we are just going to do the
one node, but this radio is a point to multipoint design,
and you basically just adjust the number of bytes you want to transfer to each node using
this configuration tool. Now we are going to pair up the master with
the remote node. So if you go to net forming and do a search
for WAGO 750 devices, you will see the node one that we just named.
Move that over to the 'realtime devices', and select 'yes' from the drop down for Bind.
and click 'Write'. and we're going to do that similarly for the
Remote node, under Net Forming, only this time we going
to see the Master show up, and we want to, uh, add that to the 'realtime
devices' and select yes from the drop down, and click 'Write' and we want to click 'Flash',
which flashes that to the firmware in the device.
Then we want to go into the 'Communications (Realtime)' Mode for both the Master and the
Remote. And there is actually online diagnostics for
this. So, as you can see for slot one, we have,
uh, connection completed here, and the signal strength is good, so this is
an easy way to make sure that the previous steps have been completed properly.
Now we're going to work on the actual application. We're going to go into Codesys and program
the master first, which is again the 750-880. enable web visualizations, and we're going
to program this example in Ladder Diagram. We'll start by going into our PLC configuration
and adding the modules that we looked at earlier. We have a four channel digital in, a four
channel digital out, and then the Bluetooth module.
and you want to make sure you select the 48 byte, which is the default, uh,
packet size for the Bluetooth module. and you can see the address there for the
Bluetooth module at IB0 and QB0, thats important when we are creating our data
array, for the, uh, communications. so, here are my input and output data arrays,
of size 48 bytes. and I'm going to create a variable called
'Node_1_Seconds' we're going to bring a clock back from the
remote node into the master to monitor it. and we're going to bring this in at IB4, thats
one of the elements, the fifth element in the input data array.
and I'm also going to add a Remote_DO_On, and thats just an internal variable that I'm
going to use in my program and thats gonna actually be transmitted out
the Digital Out to the remote node to turn on the first digital output on.
So in my ladder, I'm just going to create two rungs here.
um, one is tying the internal remote DO on, into the first array element in Byte 4.
and we're also going to do a remote reset, which is going to reset that clock in the
Remote node back to zero, so we can, uh, gauge how quickly our communications
is happening. uh, so, again we are just going to put that
into the, uh, second element of that, uh, output data Byte 4.
To facilitate our testing, I'm just going to create a visualization here, uh, 'PLC_VISU'
Some of this is somewhat advanced, uh, I have some other videos you can look at if your
unfamiliar with setting up visualizations here
I'm just creating a couple objects, tagging them to the variables I have in my global
variable list, So, this will be the digital output control,
and here we're going to put in the node 1 seconds that we're going to be monitoring,
just hitting F2 here to bring up the list, pick list.
just change the colors a little bit. Alright.
A little documentation. alright, I'm just going to cut & paste this
now, uh, thats my digital output control, uh, this
new tag will be for the reset function, and tag that
to the remote reset variable.
OK, so now we have a little interface to control our Remote node.
Going to create a new project for the 881, which is the Remote node.
again, we are going to do this in Ladder. start by setting up the PLC configuration,
we have a two channel digital output, and the 48 byte Bluetooth module
again, IB0 QB0 for our in and out on the Bluetooth module.
and I've cut & pasted,uh, some variables from a project I already created,
you can take a look at it if you want to freeze frame, but
its very similar to the master node, just have, uh
some variables tied to the bluetooth address, as well as the, uh, DO for the first channel
to turn the light on. and we're just going to tag the data coming
in on that same bit, in, uh, the byte coming in from Bluetooth module from the Master
and then we're going to do the reset byte thats coming in, where going to tag that to
the second, uh, i guess the clock reset.
We need to generate the clock, I'm just going to create a simple, uh timer on with a counter
up to generate my clock signal. You know we have
a realtime clock that we could tie into, but for this example, I'm just looking for something
to be transmitted back to the Master. again, if you're unfamiliar with the timer
on, or CTU, I have some tutorials on my youtube channel, that kind of demonstrate how to do
this. Create a new rung here, we need to convert
the C1_Count, which is going to be counting up to 60, but its a word and we need to convert
this to Byte which is how the Bluetooth module is, uh, setup.
just a quick test here in the simulation mode, you can see that it is indexing the counter.
and now we just need to go offline, and add another rung,
and tie in our Master reset for the clock. and that will put the count_1 back to zero.
OK, we're going to download that to the Remote PLC now,
go back to the 880 and download that to the Master,
and you can see that we are getting data from our clock already,
we can go into the 'monitor mode' on IO Check 3 for our remote, and just verify that our
output is turning on, and it is.
and you can see the remote reset does reset the, uh, seconds on the clock back to zero.
and we can verify that again, by going online with the remote node,
and monitoring the C1_Count tag, and you can see its at,
26, 36, and now its back at zero. Alright, so now that we've tested on the bench
its time to do a field test. In this example we're just going to go 100
meters, but we are rated to one kilometer, um,
so you can see here our Master node, and there in the distance is the Remote node.
and this is less than ideal conditions, you really want your antennas to be, uh, mounted
properly. uh, but this does show that we are able to
control the Remote node at 100 meters. and then going back into the diagnostics,
on the Master, we can see and monitor what our signal strength
is, and this is really important when you're doing
field work to be able to troubleshoot, um, communication issues, because if its not communication
you need to know why. and this concludes the bluetooth demonstration,
I hope you've enjoyed the video, thank you.