CFBFP Posted October 2, 2014 Report Posted October 2, 2014 Dear all i can't read my datatable, I'm trying to read out a certain row but it doesn't come into my variables. I use the function "Data Tables Read Row" First I tried to call this function with a ladder normal open contact and now I put it directly at the left side, so it should continuously read-out my table 'Presets' and place it in the variables. In online monitoring mode this function is called (marked in red) but the variables from the preset table are not placed into my local variables. Can't find the fault. Anyone some suggestions for me what to check? tx! f.
Eyal Koren Posted October 2, 2014 Report Posted October 2, 2014 Hi CFBFP, From the attached screenshot, the first thing i noticed is that you are not separating your logic into nets. It is strongly recommended to write the ladder in separated nets for every rung. Try this method. If it still doesn't work please send the application to support@unitronics.com
CFBFP Posted October 2, 2014 Author Report Posted October 2, 2014 I'll try that way. However I do not know exactly when it is the moment to change to a new net. tx!
cantcliff Posted October 2, 2014 Report Posted October 2, 2014 Each rung (or net) should have a definite input and input requirement. Think of it as one set of inputs for one set of outputs for each rung on your ladder. Each net does a single task based on the input requirements and outputs.
CFBFP Posted October 2, 2014 Author Report Posted October 2, 2014 Thanks for the help. I tried to split out ladder/nets. However my problem was not solved. I really had to restart from scratch and I started with my problem of datatable reading as a first thing to examinate. Now it works. I continue to build up step by step to finally reach my old program. It is a lot of work, but it will be the shortest. I programmed to much at once without controlling step by step. I'm using Windows 8.1 and sometimes Uintronics shuts down. Maybe there are some issues during compiling? I really don't know. f.
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