Jump to content

Recommended Posts

Posted

Why is it, when I execute this instruction with parameter D set to 0, that I get an error code -31, Number of lines in file is 0., and no file is created?

According to the help file, setting this to 0, should write entire data table.

I'm using ver. 1.21.51

Posted

I'm checking this issue for you.

I think it is a "bug" in the help, but I'm also checking if maybe it's just not working correctly in the PLC, or this feature was not implemented.

You can however use the number of rows from the table itself, for example: Table1.Number of rows

 

  • Like 1
Posted

I ran into this a few weeks ago, I just set a tag with the amount of rows in the table as a work around.  Jut changed it after Saragani's reference to the "built in" tag for number or rows in a table. That way if it ever increases in size I won't have to change the number in 2 places. 

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.