ct8356 Posted November 21, 2014 Report Posted November 21, 2014 I have a list of 100 faults for my machine. Each fault has an integer variable in the symbol table, containing an integer that matches its position in the list. Say I then want to add a fault in at position 12, I would then have to renumber all the following faults. Is there a built in way to do this automatically? Alternatively, if you have any other suggestions for achieving a similar thing, I would love hear them.
IO_Rack Posted November 21, 2014 Report Posted November 21, 2014 The easiest method is to use an external speadsheet program like Excel. You do not have to import or export but can simply copy and paste. First copy a few symbols from the symbol table then paste them into your spreadsheet. From there you follow the format required by the CX Programmer symbol table. 1
IO_Rack Posted November 21, 2014 Report Posted November 21, 2014 One word of caution... You are allowed multiple symbols for the same address. You may want to delete the symbols that you are replacing first.
Michael Walsh Posted November 21, 2014 Report Posted November 21, 2014 You can also use the Change All option in the Edit pull down menu. It will allow you to shift a range of consecutive addresses to another range. For instance: Say that you want to insert a bit at W5.04 and move what was at W5.04 - W5.10 to W5.05 - W5.11. You could do this with the Change All (Batch Replace in PLC Option). Go to Edit, choose Change all. Then, double click on the top line of the box that has the dashes in it. Enter W5.04 as the Start Address, W5.10 as the End Address and W5.05 as the New Start Address as shown below. Then press OK to close the top window and then Replace to execute the Batch Replace. Then just go back and add in a symbol and code for W5.04. 1
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