News:

  • August 22, 2026, 10:26:51 AM

Login with username, password and session length

Author Topic: Wx to broadcast address  (Read 15111 times)

AustinT

  • Full Member
  • ***
  • Posts: 35
Wx to broadcast address
« on: January 23, 2020, 03:05:23 PM »
Is it possible to use a broadcast for the wx command ? 

RBPLC

  • Hero Member
  • *****
  • Posts: 586
Re: Wx to broadcast address
« Reply #1 on: January 23, 2020, 05:48:16 PM »
Could you use Peerlink?

ATU

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 2126
  • YKPAIHA
    • ATU, Inc.
Re: Wx to broadcast address
« Reply #2 on: January 23, 2020, 07:32:45 PM »

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3843
    • Host Engineering
Re: Wx to broadcast address
« Reply #3 on: January 23, 2020, 07:35:06 PM »
No.  As RBPLC mentioned, PEELINK is a good way to share data across multiple PLCs.  You can actually have an unlimited number of PEERLINK "subscribing" PLCs, and up to 16 "publishing" PLCs.

So, technically, you could have 1 PLC broadcasting 256 WORDs of data every 100ms to hundreds of PLCs "listening" to that "broadcast".

AustinT

  • Full Member
  • ***
  • Posts: 35
Re: Wx to broadcast address
« Reply #4 on: January 23, 2020, 07:35:53 PM »
Hi , no I tried that initially but I need to do conditions on setting up the peer link . Case 1- peer link with a configuration case b , a peer link with a different setup .  Since I can only have one peerlink it will not work .

AustinT

  • Full Member
  • ***
  • Posts: 35
Re: Wx to broadcast address
« Reply #5 on: January 23, 2020, 07:38:24 PM »
Are there any bits to change the configuration of peerlink during runtime ?

RBPLC

  • Hero Member
  • *****
  • Posts: 586
Re: Wx to broadcast address
« Reply #6 on: January 24, 2020, 05:54:41 AM »
What is meant by configurations? Could you set up logic in the Main program to change which values are written to PL memory for your different configurations?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6172
  • Yes Pinky, Do-more will control the world!
Re: Wx to broadcast address
« Reply #7 on: January 24, 2020, 07:34:42 AM »
You can broadcast from a UDP device. It?s not hard to roll your own protocol with PACKETOUT and PACKETIN.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

AustinT

  • Full Member
  • ***
  • Posts: 35
Re: Wx to broadcast address
« Reply #8 on: January 24, 2020, 08:33:19 AM »
What is meant by configurations? Could you set up logic in the Main program to change which values are written to PL memory for your different configurations?
I have 3 brx plc?s that I want to have the exact same program . The only thing that can be different is the IP address .  The lead plc will not always be the same one . Right now it is working by using wx and writing to all three ip addresses , one at a time. One of the wx instructions is blocked however in each plc because it compares the three ip addresses and blocks sending it to itself .  It?s working fine so I?ll probably leave it alone . I just wanted to see if there is a cleaner way to do it .

AustinT

  • Full Member
  • ***
  • Posts: 35
Re: Wx to broadcast address
« Reply #9 on: January 24, 2020, 08:35:34 AM »
You can broadcast from a UDP device. It?s not hard to roll your own protocol with PACKETOUT and PACKETIN.
Thanks , I?ll see if these instructions will help clean up my code