cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

PLC Tag Control via CSV

MF_10959947
3-Visitor

PLC Tag Control via CSV

Hey there, I am very new to the PTC software platform and am trying to find some good advice/starting point for a project that I have. 

 

I am looking to set an Allen Bradley PLC tag that is setup as a device in KEPServer via Thingworx. 

 

Our customer has an MES that needs a stay alive heartbeat and currently we are only able to get the status when the MES is halted via an email. One of our application specialists has setup some rules that take the email of a halt and place a .CSV in a file location on the server where the MES is ran.

 

We were looking into using Parsley as a way to parse this .CSV and attempt to use this to set the tags on a configured AB PLC via KepServer. I am trying to understand the best way to begin this.

 

Any recommendations or resources that would help me understand how to setup events to read in this CSV and bind this to the PLC tag would be greatly appreciated.

1 REPLY 1

@MF_10959947  The native Thingworx way would be,

1. You cna place the CSV file into a file repository, if the file is being placed to some other placee like a network share, you can use symlink to map the drive to a file repositorym which wil let ThingWorx to be able to read the file.

2. You can use a timer, with file read in a subsription which will read the CSV file, parse the file and write to props, mapped to Kepware/PLC tags. This would eb ineffficient though as timer will run unnecessaily. Better way would be you can call a service (using REST) from the system that is creating the .csv file, when it does so and then in that you can implemetn the csv parse and PLC write logic.

 

Hope this would help. Thanks!

Top Tags