Ataxie Posted May 15, 2019 Report Posted May 15, 2019 Hello, I am looking for a way to record the events occurring in the program, for example: Employee X changes the position of the height of the robot. Desired result: Timestamp; Variable; Current value Previous value; User In order to export it to a csv file by ftp / mqtt / db / ... (this point is OK) I have at disposal: an NJ501-1320 an NA5-15w101s The problem would be how to treat a structure that can contain x variable of undefined type, which can also be substructure. (Recipe.robot1.position [3] .z) I had imagined to transfer the structure in 2 array in order to compare them, and to highlight the data having been modified, except that I did not find adequate solutions. I also did not discover how to get the name of a variable from a structure, and save it in a string have I been clear enough? (the only actual way i've found to do so is to get the data by opc and founding something that can do it that way) Thank you for your help
Crossbow Posted May 28, 2019 Report Posted May 28, 2019 Since you have no idea what data type the variable is going to be, you're really limited. My recommendation would be to turn all the data into strings and add those strings together, then save that into an array of strings.
Ataxie Posted May 28, 2019 Author Report Posted May 28, 2019 I'd already thought about that but a probleme was still there ... how can i manage to get the variable name and not only the value. I've finally found a solution, using the OPC-DA protocole and KepServerEx. After that, exporting all the data on a SQL server. But thanks for your reply we can delete or close this if nobody want to fill more info
Jay Anthony Posted May 28, 2019 Report Posted May 28, 2019 We always leave them open. Someone else will benefit from the discussion.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now