Initialize Variables in TI 505

jhuggart

Member
Join Date
Jul 2007
Location
Birmingham, AL
Posts
21
Hello all,

I need to know how to initialize variables in a TI-505. After the first time the program is used the variable values will change, but I need to have initial conditions programmed in for testing so that the values are at least close to correct.

The application is a hydraulic cylinder that will have four variable positions depending upon the size of the pipe running underneath. I will only be able to test on one pipe size, so the cylinder needs to be programmed to be close to the correct position for other pipe sizes the first time a different size is run.

Thanks in advance.
 
Last edited:
Fairly simple, program a pushbutton to a one shot (os block) then a movw command to move original presets to the working registers. Could work better if your variables are in numeric order so you can just specify how many words to move in one command.
 
The TI-505 range covered several CPUs. The 545 and 555 have K-memory for data as well as the standard V-memory that all the range share. The K-memory is intended for constant data (konstant? you'd almost think they knew they were going to be bought by a bunch of Germans!) and is treated as read-only within all the program instructions. You can't accidently write to it as part of the code - it won't accept a K address as the result of a calculation or move. You can only change it from a new memory download, or from a HMI/SCADA connection.

If you have a 545 or 555 it may worth considering this as an safeguard for storage of standard process values and re-initialise your working data as WireGuy suggested using the MOVW instruction from K- to V-

regards

Ken.
 
The 565's also have K memory.
You can change the value of a K memory online while in run mode.
In TiSoft, go the chart feature, then select change value, write in the K location and the value then hit the write key.
 

Similar Topics

When you download a DB, the values get overwritten by what is in the "actual" column in offline DB. Does this happen at the start of the PLC...
Replies
6
Views
142
"Failed to Initialize the service {3F883B87-2208-11D4-B0E7-001083022E04}" Along with "Failed to load HMI Server Service" Hello, I am getting...
Replies
2
Views
749
Hey all, I have a local STRING tag inside of an AOI. I want to initialize it with a value INSIDE of the AOI. For example, @ First scan...
Replies
9
Views
1,641
Hello Everyone! New guy here posting first time. I'm kind of lost with this, when I open my excel file I got this error message. Any one that can...
Replies
0
Views
1,338
Hello, PLC rookie here working with an AB CompactLogix LI6ER in RSlogix 5000. So far I've only used structured text. I'm working on an...
Replies
9
Views
2,750
Back
Top Bottom