This section gives an illustrative example of the Data Bridge feature. Settings may differ depending on your project’s configuration. |
Example: Exchanging PLC values using the data bridge function
In this section, you will register a tag-based model and transfer a value from PLC A to PLC B. Each PLC is connected by either serial or Ethernet, and both of them are communicating with the Xpanel.
a) Enter the device names as ‘PLC A’ and ‘PLC B’ in the [Tools] – [I/O Device] menu. Register PLC A as a serial device, and PLC B as an Ethernet device.
b) Create tags which are indicating points in each PLC. Enter the I/O addresses as ‘D100’ in ‘PLC A’ and ‘D200’ in ‘PLC B’.
c) Go to [Tools] – [Data Bridge] and add a data bridge model. Select model type as ‘Tag Base’ and ‘Sync.’ as ‘Always’. When the value of PLC A changes, the value of PLC B will be matched with it immediately.
d) Add a tag to synchronize the value. Enter the each tag name as ‘PLCA.D100’ in the original tag and ‘PLCB.D200’ in the target tag.
e) Launch the project in the Xpanel. You may see PLC A value is transferred to the PLC B via data bridge.