PanelView Plus serving data to a PC?
Posted 31 August 2010 - 09:48 PM
I have a customer with a PLC5/30. They want to get a PanelView Plus as their HMI. The PanelView Plus would communicate with the PLC5 through the CH0 DF1 port.
If possible, they would like to connect a PC to the PanelView Plus via ethernet (or by any other means if ethernet is not possible).
They would want this PC (which would be running some VBA code inside an Excel workbook), to be able to read tags values from the PanelView in real-time. When I say real-time, it doesn't matter if there is a slight delay due to the comm interface - I just mean that they want to the PC to be able to read current tag values from the PanelView, not historical data.
Can anyone tell me if the PanelView Plus has the ability to make current tag values available to a PC through ethernet or some other communication interface? If this is possible, can you give me an idea how this can be done? One possibility I thought of is if the PanelView Plus were able to act as an OPC server while the PC could act as an OPC client, but I have no idea if the PanelView Plus has this capability.
Any input will be greatly appreciated.
Thanks in advance,
Posted 01 September 2010 - 08:00 AM
Posted 01 September 2010 - 09:48 AM
Having the PV+ dish out data to an Excel file or VB app, I do not think is possible. The PV+ has the communication layer to work with the PLC, but I do not it has the capability to communicate with software to push data.
But the PLC could easily communicate with a data server. There are somewhat inexpensive data logging packages out there, to push data into Excel, Access or SQL databases. All of these will require communications to the PLC-5/30 (RS-232C or DH+) and a RSLinx license to support OPC (RSLinx-Pro or RSLinx-OEM).
There are cheap and expensive OPC Data Loggers; they communicate via OPC to the PLC and populate data into an Excel or Access file/database.
Posted 01 September 2010 - 11:12 AM
This is more of an advanced approach, so if you do not feel excited when reading this I would not recommend it.
Also, I would not expect update speeds faster than once per second (your performance speeds will be specific to the quantity of tag data that you are copying, and limited by the serial DF1 interface speed).
Quick overview of steps:
You can get a PVP to share data with another PVP through the Kepware modbus TCP/IP driver. In that case, one PVP is configured to be the master (Kepware modbus driver) and the other is the slave.
In your case the PC will need to have some Modbus TCP/IP software to be either a master or slave. If the PC is the master, enter that IP address as the device address in the Kepware modbus driver.
The second part is to create a Macro file in the PVP that copies the PLC5 DF1 tag data to the Kepware Modbus tags. Each line in the macro will simply copy PLC5 tag data to the correlating Kepware tag data.
Name that macro "Macro 1" and enter a similar expression into the Global Connections property "Remote Macro 1"
if (system\second%5)>=2 then 1 else 0
That will execute "Macro 1" once every 5 seconds
Posted 01 September 2010 - 03:17 PM
Posted 02 September 2010 - 05:47 PM
Get a Digi One IAP. Plug it into the serial port of the PLC-5 and configure it. Now your PLC-5 will appear to be an Ethernet processor. The PV+ and the PC can connect to the Ethernet port (with a switch) and you can simultaneously program and communicate to both from the PC side of things.
You also don't "lose" your serial port. The IAP has 2 serial ports and the second one can be configured to act as a "bridge" back to the PLC-5 so that you can still "plug into" the Channel 0 port for diagnostics for instance.
Only disadvantage here is you are limited to the speed of the serial port on the PLC-5.
The best option (assuming you don't switch to a different PLC) is to get an Ethernet coprocessor. This device MUST be plugged into the second slot right next to the PLC itself but gives you a full blown Ethernet port directly off the PLC. It's expensive but less than buying an enhanced PLC-5.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users