Sign in to follow this  
Followers 0
ballvietnam

Global data in unity pro 4.0

2 posts in this topic

Hello Everyone I am trying to exchange data between two Premium PLCs by using Global Data. in PLC1 I configure : in IP configuration tab : IP address: 192.168.1.51 in IP Global Data tab : Group address : 239.255.255.254 group name : group_1 in PLC1 I configure : in IP configuration tab : IP address: 192.168.1.52 in IP Global Data tab : Group address : 239.255.255.255 group name : group_1 and two PLCs have the same variable : name : speed Type : int Address : %MW100 Global data : PUB Group : Group_1 ID : 1 Is this correct? I run two PLC and try to change the valuve of %MW100 in each PLC but the valuve of %MW100 in other PLC can not change thank for your regarding

Share this post


Link to post
Share on other sites
KHONG TOT! You have two PLC: PLC1 and PLC2 both belonging to the same group1 (group IP must be the same for each) PLC1 : IP 192.168.1.51 Group IP 239.255.255.254 ID1 PLC2 : IP 192.168.1.52 Group IP 239.255.255.254 ID2 In such a structure, always, there is one PLC that send (PUB...lic) data to all other members (of the same group) and each member could receive (SUB...scribe) those data. So if PLC1 has a variable PUB the other PLC2 must have the same variable SUB and viceversa In the end: PLC1 Type : int Address : %MW100 Global data : PUB (sending to the network) Group : Group_1 ID : 1 (sent from PLC1) PLC2 Type : int Address : %MW100 Global data : SUB (receiving from the network) Group : Group_1 ID : 1 (received from PLC1) Anyway in your configuration (only two PLC's) I suggest to use the I/O Scanning service.. XIN CHAO

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0